From baa96118a8c4ebb2e8cf566b33cac54e0e072359 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 28 Dec 2023 08:57:47 -0800 Subject: [PATCH 01/13] feat(AWSConnect): update models to latest (#5144) --- AWSConnect/AWSConnectModel.h | 1350 +++++++++++++- AWSConnect/AWSConnectModel.m | 1379 +++++++++++++- AWSConnect/AWSConnectResources.m | 1642 ++++++++++++++++- AWSConnect/AWSConnectService.h | 382 ++++ AWSConnect/AWSConnectService.m | 363 ++++ .../AWSConnectNSSecureCodingTests.m | 250 +++ AWSConnectUnitTests/AWSGeneralConnectTests.m | 778 +++++++- 7 files changed, 6005 insertions(+), 139 deletions(-) diff --git a/AWSConnect/AWSConnectModel.h b/AWSConnect/AWSConnectModel.h index 2ea0847cf4f..8778aa63e56 100644 --- a/AWSConnect/AWSConnectModel.h +++ b/AWSConnect/AWSConnectModel.h @@ -24,6 +24,7 @@ FOUNDATION_EXPORT NSString *const AWSConnectErrorDomain; typedef NS_ENUM(NSInteger, AWSConnectErrorType) { AWSConnectErrorUnknown, AWSConnectErrorAccessDenied, + AWSConnectErrorConflict, AWSConnectErrorContactFlowNotPublished, AWSConnectErrorContactNotFound, AWSConnectErrorDestinationNotAllowed, @@ -55,6 +56,9 @@ typedef NS_ENUM(NSInteger, AWSConnectActionType) { AWSConnectActionTypeAssignContactCategory, AWSConnectActionTypeGenerateEventbridgeEvent, AWSConnectActionTypeSendNotification, + AWSConnectActionTypeCreateCase, + AWSConnectActionTypeUpdateCase, + AWSConnectActionTypeEndAssociatedTasks, }; typedef NS_ENUM(NSInteger, AWSConnectAgentAvailabilityTimer) { @@ -249,6 +253,8 @@ typedef NS_ENUM(NSInteger, AWSConnectEventSourceName) { AWSConnectEventSourceNameOnSalesforceCaseCreate, AWSConnectEventSourceNameOnContactEvaluationSubmit, AWSConnectEventSourceNameOnMetricDataUpdate, + AWSConnectEventSourceNameOnCaseCreate, + AWSConnectEventSourceNameOnCaseUpdate, }; typedef NS_ENUM(NSInteger, AWSConnectFailureReasonCode) { @@ -275,6 +281,7 @@ typedef NS_ENUM(NSInteger, AWSConnectGrouping) { AWSConnectGroupingQueue, AWSConnectGroupingChannel, AWSConnectGroupingRoutingProfile, + AWSConnectGroupingRoutingStepExpression, }; typedef NS_ENUM(NSInteger, AWSConnectHierarchyGroupMatchType) { @@ -814,6 +821,20 @@ typedef NS_ENUM(NSInteger, AWSConnectRulePublishStatus) { AWSConnectRulePublishStatusPublished, }; +typedef NS_ENUM(NSInteger, AWSConnectSearchContactsMatchType) { + AWSConnectSearchContactsMatchTypeUnknown, + AWSConnectSearchContactsMatchTypeMatchAll, + AWSConnectSearchContactsMatchTypeMatchAny, +}; + +typedef NS_ENUM(NSInteger, AWSConnectSearchContactsTimeRangeType) { + AWSConnectSearchContactsTimeRangeTypeUnknown, + AWSConnectSearchContactsTimeRangeTypeInitiationTimestamp, + AWSConnectSearchContactsTimeRangeTypeScheduledTimestamp, + AWSConnectSearchContactsTimeRangeTypeConnectedToAgentTimestamp, + AWSConnectSearchContactsTimeRangeTypeDisconnectTimestamp, +}; + typedef NS_ENUM(NSInteger, AWSConnectSearchableQueueType) { AWSConnectSearchableQueueTypeUnknown, AWSConnectSearchableQueueTypeStandard, @@ -831,10 +852,21 @@ typedef NS_ENUM(NSInteger, AWSConnectSortOrder) { AWSConnectSortOrderDescending, }; +typedef NS_ENUM(NSInteger, AWSConnectSortableFieldName) { + AWSConnectSortableFieldNameUnknown, + AWSConnectSortableFieldNameInitiationTimestamp, + AWSConnectSortableFieldNameScheduledTimestamp, + AWSConnectSortableFieldNameConnectedToAgentTimestamp, + AWSConnectSortableFieldNameDisconnectTimestamp, + AWSConnectSortableFieldNameInitiationMethod, + AWSConnectSortableFieldNameChannel, +}; + typedef NS_ENUM(NSInteger, AWSConnectSourceType) { AWSConnectSourceTypeUnknown, AWSConnectSourceTypeSalesforce, AWSConnectSourceTypeZendesk, + AWSConnectSourceTypeCases, }; typedef NS_ENUM(NSInteger, AWSConnectStatistic) { @@ -980,6 +1012,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectActivateEvaluationFormResponse; @class AWSConnectAgentConfig; @class AWSConnectAgentContactReference; +@class AWSConnectAgentHierarchyGroups; @class AWSConnectAgentInfo; @class AWSConnectAgentStatus; @class AWSConnectAgentStatusReference; @@ -1008,6 +1041,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectAssociateSecurityKeyResponse; @class AWSConnectAssociateTrafficDistributionGroupUserRequest; @class AWSConnectAssociateTrafficDistributionGroupUserResponse; +@class AWSConnectAssociateUserProficienciesRequest; @class AWSConnectAttachmentReference; @class AWSConnectAttendee; @class AWSConnectAttribute; @@ -1031,15 +1065,20 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectClaimedPhoneNumberSummary; @class AWSConnectConnectionData; @class AWSConnectContact; +@class AWSConnectContactAnalysis; @class AWSConnectContactDataRequest; @class AWSConnectContactFilter; @class AWSConnectContactFlow; @class AWSConnectContactFlowModule; @class AWSConnectContactFlowModuleSummary; @class AWSConnectContactFlowSummary; +@class AWSConnectContactSearchSummary; +@class AWSConnectContactSearchSummaryAgentInfo; +@class AWSConnectContactSearchSummaryQueueInfo; @class AWSConnectControlPlaneTagFilter; @class AWSConnectCreateAgentStatusRequest; @class AWSConnectCreateAgentStatusResponse; +@class AWSConnectCreateCaseActionDefinition; @class AWSConnectCreateContactFlowModuleRequest; @class AWSConnectCreateContactFlowModuleResponse; @class AWSConnectCreateContactFlowRequest; @@ -1056,6 +1095,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectCreateParticipantResponse; @class AWSConnectCreatePersistentContactAssociationRequest; @class AWSConnectCreatePersistentContactAssociationResponse; +@class AWSConnectCreatePredefinedAttributeRequest; @class AWSConnectCreatePromptRequest; @class AWSConnectCreatePromptResponse; @class AWSConnectCreateQueueRequest; @@ -1103,6 +1143,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectDeleteHoursOfOperationRequest; @class AWSConnectDeleteInstanceRequest; @class AWSConnectDeleteIntegrationAssociationRequest; +@class AWSConnectDeletePredefinedAttributeRequest; @class AWSConnectDeletePromptRequest; @class AWSConnectDeleteQueueRequest; @class AWSConnectDeleteQuickConnectRequest; @@ -1144,6 +1185,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectDescribeInstanceStorageConfigResponse; @class AWSConnectDescribePhoneNumberRequest; @class AWSConnectDescribePhoneNumberResponse; +@class AWSConnectDescribePredefinedAttributeRequest; +@class AWSConnectDescribePredefinedAttributeResponse; @class AWSConnectDescribePromptRequest; @class AWSConnectDescribePromptResponse; @class AWSConnectDescribeQueueRequest; @@ -1183,12 +1226,15 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectDisassociateSecurityKeyRequest; @class AWSConnectDisassociateTrafficDistributionGroupUserRequest; @class AWSConnectDisassociateTrafficDistributionGroupUserResponse; +@class AWSConnectDisassociateUserProficienciesRequest; @class AWSConnectDisconnectReason; @class AWSConnectDismissUserContactRequest; @class AWSConnectDismissUserContactResponse; @class AWSConnectDistribution; @class AWSConnectEmailReference; +@class AWSConnectEmptyFieldValue; @class AWSConnectEncryptionConfig; +@class AWSConnectEndAssociatedTasksActionDefinition; @class AWSConnectEndpoint; @class AWSConnectErrorResult; @class AWSConnectEvaluation; @@ -1217,6 +1263,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectEvaluationSummary; @class AWSConnectEventBridgeActionDefinition; @class AWSConnectFailedRequest; +@class AWSConnectFieldValue; +@class AWSConnectFieldValueUnion; @class AWSConnectFilterV2; @class AWSConnectFilters; @class AWSConnectFlowAssociationSummary; @@ -1317,6 +1365,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectListPhoneNumbersSummary; @class AWSConnectListPhoneNumbersV2Request; @class AWSConnectListPhoneNumbersV2Response; +@class AWSConnectListPredefinedAttributesRequest; +@class AWSConnectListPredefinedAttributesResponse; @class AWSConnectListPromptsRequest; @class AWSConnectListPromptsResponse; @class AWSConnectListQueueQuickConnectsRequest; @@ -1353,6 +1403,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectListUseCasesResponse; @class AWSConnectListUserHierarchyGroupsRequest; @class AWSConnectListUserHierarchyGroupsResponse; +@class AWSConnectListUserProficienciesRequest; +@class AWSConnectListUserProficienciesResponse; @class AWSConnectListUsersRequest; @class AWSConnectListUsersResponse; @class AWSConnectListViewVersionsRequest; @@ -1381,10 +1433,16 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectParticipantTimerConfiguration; @class AWSConnectParticipantTimerValue; @class AWSConnectParticipantTokenCredentials; +@class AWSConnectPauseContactRequest; +@class AWSConnectPauseContactResponse; @class AWSConnectPersistentChat; @class AWSConnectPhoneNumberQuickConnectConfig; @class AWSConnectPhoneNumberStatus; @class AWSConnectPhoneNumberSummary; +@class AWSConnectPredefinedAttribute; +@class AWSConnectPredefinedAttributeSearchCriteria; +@class AWSConnectPredefinedAttributeSummary; +@class AWSConnectPredefinedAttributeValues; @class AWSConnectProblemDetail; @class AWSConnectPrompt; @class AWSConnectPromptSearchCriteria; @@ -1430,6 +1488,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectResourceTagsSearchCriteria; @class AWSConnectResumeContactRecordingRequest; @class AWSConnectResumeContactRecordingResponse; +@class AWSConnectResumeContactRequest; +@class AWSConnectResumeContactResponse; @class AWSConnectRoutingProfile; @class AWSConnectRoutingProfileQueueConfig; @class AWSConnectRoutingProfileQueueConfigSummary; @@ -1445,8 +1505,14 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectS3Config; @class AWSConnectSearchAvailablePhoneNumbersRequest; @class AWSConnectSearchAvailablePhoneNumbersResponse; +@class AWSConnectSearchContactsRequest; +@class AWSConnectSearchContactsResponse; +@class AWSConnectSearchContactsTimeRange; +@class AWSConnectSearchCriteria; @class AWSConnectSearchHoursOfOperationsRequest; @class AWSConnectSearchHoursOfOperationsResponse; +@class AWSConnectSearchPredefinedAttributesRequest; +@class AWSConnectSearchPredefinedAttributesResponse; @class AWSConnectSearchPromptsRequest; @class AWSConnectSearchPromptsResponse; @class AWSConnectSearchQueuesRequest; @@ -1463,6 +1529,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectSearchUsersResponse; @class AWSConnectSearchVocabulariesRequest; @class AWSConnectSearchVocabulariesResponse; +@class AWSConnectSearchableContactAttributes; +@class AWSConnectSearchableContactAttributesCriteria; @class AWSConnectSecurityKey; @class AWSConnectSecurityProfile; @class AWSConnectSecurityProfileSearchCriteria; @@ -1476,6 +1544,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectSignInConfig; @class AWSConnectSignInDistribution; @class AWSConnectSingleSelectQuestionRuleCategoryAutomation; +@class AWSConnectSort; @class AWSConnectStartChatContactRequest; @class AWSConnectStartChatContactResponse; @class AWSConnectStartContactEvaluationRequest; @@ -1504,6 +1573,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectSuspendContactRecordingRequest; @class AWSConnectSuspendContactRecordingResponse; @class AWSConnectTagCondition; +@class AWSConnectTagContactRequest; +@class AWSConnectTagContactResponse; @class AWSConnectTagResourceRequest; @class AWSConnectTagSearchCondition; @class AWSConnectTagSet; @@ -1520,10 +1591,15 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectTrafficDistributionGroup; @class AWSConnectTrafficDistributionGroupSummary; @class AWSConnectTrafficDistributionGroupUserSummary; +@class AWSConnectTranscript; +@class AWSConnectTranscriptCriteria; @class AWSConnectTransferContactRequest; @class AWSConnectTransferContactResponse; +@class AWSConnectUntagContactRequest; +@class AWSConnectUntagContactResponse; @class AWSConnectUntagResourceRequest; @class AWSConnectUpdateAgentStatusRequest; +@class AWSConnectUpdateCaseActionDefinition; @class AWSConnectUpdateContactAttributesRequest; @class AWSConnectUpdateContactAttributesResponse; @class AWSConnectUpdateContactEvaluationRequest; @@ -1540,6 +1616,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectUpdateContactFlowNameResponse; @class AWSConnectUpdateContactRequest; @class AWSConnectUpdateContactResponse; +@class AWSConnectUpdateContactRoutingDataRequest; +@class AWSConnectUpdateContactRoutingDataResponse; @class AWSConnectUpdateContactScheduleRequest; @class AWSConnectUpdateContactScheduleResponse; @class AWSConnectUpdateEvaluationFormRequest; @@ -1553,6 +1631,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectUpdatePhoneNumberMetadataRequest; @class AWSConnectUpdatePhoneNumberRequest; @class AWSConnectUpdatePhoneNumberResponse; +@class AWSConnectUpdatePredefinedAttributeRequest; @class AWSConnectUpdatePromptRequest; @class AWSConnectUpdatePromptResponse; @class AWSConnectUpdateQueueHoursOfOperationRequest; @@ -1578,6 +1657,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectUpdateUserHierarchyStructureRequest; @class AWSConnectUpdateUserIdentityInfoRequest; @class AWSConnectUpdateUserPhoneConfigRequest; +@class AWSConnectUpdateUserProficienciesRequest; @class AWSConnectUpdateUserRoutingProfileRequest; @class AWSConnectUpdateUserSecurityProfilesRequest; @class AWSConnectUpdateViewContentRequest; @@ -1592,6 +1672,8 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @class AWSConnectUserIdentityInfo; @class AWSConnectUserIdentityInfoLite; @class AWSConnectUserPhoneConfig; +@class AWSConnectUserProficiency; +@class AWSConnectUserProficiencyDisassociate; @class AWSConnectUserQuickConnectConfig; @class AWSConnectUserReference; @class AWSConnectUserSearchCriteria; @@ -1725,12 +1807,50 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

A structure that defines agent hierarchy group levels which can be used to filter search results. Important: Agent hierarchy group level information in search result is a snapshot, it does not represent current agent hierarchy who handled the contact.

+ */ +@interface AWSConnectAgentHierarchyGroups : AWSModel + + +/** +

The identifiers for level 1 hierarchy groups.

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

The identifiers for level 2 hierarchy groups.

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

The identifiers for level 3 hierarchy groups.

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

The identifiers for level 4 hierarchy groups.

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

The identifiers for level 5 hierarchy groups.

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

Information about the agent who accepted the contact.

*/ @interface AWSConnectAgentInfo : AWSModel +/** +

Agent pause duration for a contact in seconds.

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

The timestamp when the contact was connected to the agent.

*/ @@ -1790,7 +1910,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectAgentStatusState state; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -2312,6 +2432,29 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @interface AWSConnectAssociateTrafficDistributionGroupUserResponse : AWSModel +@end + +/** + + */ +@interface AWSConnectAssociateUserProficienciesRequest : AWSRequest + + +/** +

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN of the instance).

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

The identifier of the user account.

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

The proficiencies to associate with the user.

+ */ +@property (nonatomic, strong) NSArray * _Nullable userProficiencies; + @end /** @@ -2679,7 +2822,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable phoneNumberDescription; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -2760,7 +2903,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable sourcePhoneNumberArn; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -2840,6 +2983,16 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSDate * _Nullable initiationTimestamp; +/** +

The timestamp when the contact was last paused.

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

The timestamp when the contact was last resumed.

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

The timestamp when contact was last updated.

*/ @@ -2860,6 +3013,16 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) AWSConnectQueueInfo * _Nullable queueInfo; +/** +

An integer that represents the queue priority to be applied to the contact (lower priorities are routed preferentially). Cannot be specified if the QueueTimeAdjustmentSeconds is specified. Must be statically defined, must be larger than zero, and a valid integer value. Default Value is 5.

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

An integer that represents the queue time adjust to be applied to the contact, in seconds (longer / larger queue time are routed preferentially). Cannot be specified if the QueuePriority is specified. Must be statically defined and a valid integer value.

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

The contactId that is related to this contact.

*/ @@ -2870,6 +3033,21 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSDate * _Nullable scheduledTimestamp; +/** +

Tags associated with the contact. This contains both Amazon Web Services generated and user-defined tags.

+ */ +@property (nonatomic, strong) NSDictionary * _Nullable tags; + +/** +

Total pause count for a contact.

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

Total pause duration for a contact in seconds.

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

Information about Amazon Connect Wisdom.

*/ @@ -2877,6 +3055,19 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

A structure that defines filters can be used to search within outputs analyzed by Amazon Connect Contact Lens in a contact.

+ */ +@interface AWSConnectContactAnalysis : AWSModel + + +/** +

A structure that defines filters can be used to search with text within an Amazon Connect Contact Lens analyzed transcript.

+ */ +@property (nonatomic, strong) AWSConnectTranscript * _Nullable transcript; + +@end + /**

Request object with information to create a contact.

*/ @@ -2965,7 +3156,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectContactFlowState state; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3018,7 +3209,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectContactFlowModuleStatus status; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3085,6 +3276,105 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

Information of returned contact.

+ */ +@interface AWSConnectContactSearchSummary : AWSModel + + +/** +

Information about the agent who accepted the contact.

+ */ +@property (nonatomic, strong) AWSConnectContactSearchSummaryAgentInfo * _Nullable agentInfo; + +/** +

The Amazon Resource Name (ARN) of the contact

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

How the contact reached your contact center.

+ */ +@property (nonatomic, assign) AWSConnectChannel channel; + +/** +

The timestamp when the customer endpoint disconnected from Amazon Connect.

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

The identifier of the contact summary.

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

If this contact is related to other contacts, this is the ID of the initial contact.

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

Indicates how the contact was initiated.

+ */ +@property (nonatomic, assign) AWSConnectContactInitiationMethod initiationMethod; + +/** +

The date and time this contact was initiated, in UTC time. For INBOUND, this is when the contact arrived. For OUTBOUND, this is when the agent began dialing. For CALLBACK, this is when the callback contact was created. For TRANSFER and QUEUE_TRANSFER, this is when the transfer was initiated. For API, this is when the request arrived. For EXTERNAL_OUTBOUND, this is when the agent started dialing the external participant. For MONITOR, this is when the supervisor started listening to a contact.

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

If this contact is not the first contact, this is the ID of the previous contact.

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

If this contact was queued, this contains information about the queue.

+ */ +@property (nonatomic, strong) AWSConnectContactSearchSummaryQueueInfo * _Nullable queueInfo; + +/** +

The timestamp, in Unix epoch time format, at which to start running the inbound flow.

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

Information about the agent who accepted the contact.

+ */ +@interface AWSConnectContactSearchSummaryAgentInfo : AWSModel + + +/** +

The timestamp when the contact was connected to the agent.

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

The identifier of the agent who accepted the contact.

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

If this contact was queued, this contains information about the queue.

+ */ +@interface AWSConnectContactSearchSummaryQueueInfo : AWSModel + + +/** +

The timestamp when the contact was added to the queue.

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

The unique identifier for the queue.

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

An object that can be used to specify Tag conditions inside the SearchFilter. This accepts an OR of AND (List of List) input where:

  • Top level list specifies conditions that need to be applied with OR operator

  • Inner list specifies conditions that need to be applied with AND operator.

*/ @@ -3140,7 +3430,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectAgentStatusState state; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3164,6 +3454,25 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

The CreateCase action definition.

+ Required parameters: [Fields, TemplateId] + */ +@interface AWSConnectCreateCaseActionDefinition : AWSModel + + +/** +

An array of objects with Field ID and Value data.

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

A unique identifier of a template.

+ */ +@property (nonatomic, strong) NSString * _Nullable templateId; + +@end + /** */ @@ -3196,7 +3505,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable name; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3247,7 +3556,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable name; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3359,7 +3668,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable name; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3486,7 +3795,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectSourceType sourceType; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3602,6 +3911,29 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectCreatePredefinedAttributeRequest : AWSRequest + + +/** +

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The name of the predefined attribute.

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

The values of the predefined attribute.

+ */ +@property (nonatomic, strong) AWSConnectPredefinedAttributeValues * _Nullable values; + +@end + /** */ @@ -3629,7 +3961,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable s3Uri; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3695,7 +4027,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSArray * _Nullable quickConnectIds; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3746,7 +4078,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) AWSConnectQuickConnectConfig * _Nullable quickConnectConfig; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3812,7 +4144,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSArray * _Nullable queueConfigs; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -3939,7 +4271,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSArray * _Nullable tagRestrictedResources; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -4061,7 +4393,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable name; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -4102,7 +4434,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable integrationAssociationId; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -4153,7 +4485,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable parentGroupId; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -4224,7 +4556,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSArray * _Nullable securityProfileIds; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -4377,7 +4709,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectVocabularyLanguageCode languageCode; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -4760,6 +5092,24 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectDeletePredefinedAttributeRequest : AWSRequest + + +/** +

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The name of the predefined attribute.

+ */ +@property (nonatomic, strong) NSString * _Nullable name; + +@end + /** */ @@ -5418,6 +5768,37 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectDescribePredefinedAttributeRequest : AWSRequest + + +/** +

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The name of the predefined attribute.

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

Information about the predefined attribute.

+ */ +@property (nonatomic, strong) AWSConnectPredefinedAttribute * _Nullable predefinedAttribute; + +@end + /** */ @@ -5801,6 +6182,11 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) AWSConnectRoutingProfileReference * _Nullable routingProfile; +/** +

The expression of a step in a routing criteria.

+ */ +@property (nonatomic, strong) NSString * _Nullable routingStepExpression; + @end /** @@ -6076,26 +6462,49 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end /** -

Contains details about why a contact was disconnected. Only Amazon Connect outbound campaigns can provide this field.

+ */ -@interface AWSConnectDisconnectReason : AWSModel +@interface AWSConnectDisassociateUserProficienciesRequest : AWSRequest /** -

A code that indicates how the contact was terminated.

+

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the user account.

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

The proficiencies to disassociate from the user.

*/ -@interface AWSConnectDismissUserContactRequest : AWSRequest +@property (nonatomic, strong) NSArray * _Nullable userProficiencies; +@end /** -

The identifier of the contact.

+

Contains details about why a contact was disconnected. Only Amazon Connect outbound campaigns can provide this field.

+ */ +@interface AWSConnectDisconnectReason : AWSModel + + +/** +

A code that indicates how the contact was terminated.

+ */ +@property (nonatomic, strong) NSString * _Nullable code; + +@end + +/** + + */ +@interface AWSConnectDismissUserContactRequest : AWSRequest + + +/** +

The identifier of the contact.

*/ @property (nonatomic, strong) NSString * _Nullable contactId; @@ -6154,6 +6563,14 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSString * _Nullable value; +@end + +/** +

An empty value.

+ */ +@interface AWSConnectEmptyFieldValue : AWSModel + + @end /** @@ -6173,6 +6590,14 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSString * _Nullable keyId; +@end + +/** +

End associated tasks related to a case.

+ */ +@interface AWSConnectEndAssociatedTasksActionDefinition : AWSModel + + @end /** @@ -6264,7 +6689,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectEvaluationStatus status; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -6392,7 +6817,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectEvaluationFormVersionStatus status; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -7010,6 +7435,53 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

Object for case field values.

+ Required parameters: [Id, Value] + */ +@interface AWSConnectFieldValue : AWSModel + + +/** +

Unique identifier of a field.

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

Union of potential field value types.

+ */ +@property (nonatomic, strong) AWSConnectFieldValueUnion * _Nullable value; + +@end + +/** +

Object to store union of Field values.

+ */ +@interface AWSConnectFieldValueUnion : AWSModel + + +/** +

A Boolean number value type.

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

a Double number value type.

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

An empty value.

+ */ +@property (nonatomic, strong) AWSConnectEmptyFieldValue * _Nullable emptyValue; + +/** +

String value type.

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

Contains the filter to apply when retrieving metrics with the GetMetricDataV2 API.

*/ @@ -7049,6 +7521,11 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSArray * _Nullable routingProfiles; +/** +

A list of expressions as a filter, in which an expression is an object of a step in a routing criteria.

+ */ +@property (nonatomic, strong) NSArray * _Nullable routingStepExpressions; + @end /** @@ -7412,7 +7889,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @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.

ABANDONMENT_RATE

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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_ANSWER_RATE

Unit: Percent

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

AGENT_NON_ADHERENT_TIME

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, Feature, contact/segmentAttributes/connect:Subtype

AVG_AFTER_CONTACT_WORK_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_HANDLE_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_HOLDS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_INTERACTION_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_QUEUE_ANSWER_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

Feature is a valid filter but not a valid grouping.

AVG_RESOLUTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_ABANDONED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

CONTACTS_CREATED

Unit: Count

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_ON_HOLD_AGENT_DISCONNECT

Unit: Count

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

CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT

Unit: Count

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

CONTACTS_PUT_ON_HOLD

Unit: Count

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

CONTACTS_TRANSFERRED_OUT_EXTERNAL

Unit: Count

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

CONTACTS_TRANSFERRED_OUT_INTERNAL

Unit: Percent

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, contact/segmentAttributes/connect:Subtype

CONTACTS_RESOLVED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

MAX_QUEUED_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_NON_TALK_TIME

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME_AGENT

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME_CUSTOMER

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

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_AFTER_CONTACT_WORK_TIME

Unit: Seconds

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

SUM_CONNECTING_TIME_AGENT

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. This metric only supports the following filter keys 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.

SUM_CONTACT_FLOW_TIME

Unit: Seconds

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

SUM_CONTACT_TIME_AGENT

Unit: Seconds

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

SUM_CONTACTS_ANSWERED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

SUM_ERROR_STATUS_TIME_AGENT

Unit: Seconds

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

SUM_HANDLE_TIME

Unit: Seconds

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

SUM_HOLD_TIME

Unit: Count

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

SUM_IDLE_TIME_AGENT

Unit: Seconds

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

SUM_INTERACTION_AND_HOLD_TIME

Unit: Seconds

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

SUM_INTERACTION_TIME

Unit: Seconds

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

SUM_NON_PRODUCTIVE_TIME_AGENT

Unit: Seconds

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

SUM_ONLINE_TIME_AGENT

Unit: Seconds

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

SUM_RETRY_CALLBACK_ATTEMPTS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

+

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, Feature, contact/segmentAttributes/connect:Subtype

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_ANSWER_RATE

Unit: Percent

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

AGENT_NON_ADHERENT_TIME

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, Feature, contact/segmentAttributes/connect:Subtype

AVG_ACTIVE_TIME

Unit: Seconds

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

AVG_AFTER_CONTACT_WORK_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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_AGENT_PAUSE_TIME

Unit: Seconds

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, contact/segmentAttributes/connect:Subtype

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, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_HANDLE_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_HOLDS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_INTERACTION_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_QUEUE_ANSWER_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

Feature is a valid filter but not a valid grouping.

AVG_RESOLUTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_ABANDONED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

CONTACTS_CREATED

Unit: Count

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_ON_HOLD_AGENT_DISCONNECT

Unit: Count

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

CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT

Unit: Count

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

CONTACTS_PUT_ON_HOLD

Unit: Count

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

CONTACTS_TRANSFERRED_OUT_EXTERNAL

Unit: Count

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

CONTACTS_TRANSFERRED_OUT_INTERNAL

Unit: Percent

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, contact/segmentAttributes/connect:Subtype

CONTACTS_RESOLVED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

MAX_QUEUED_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_NON_TALK_TIME

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME_AGENT

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME_CUSTOMER

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

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_AFTER_CONTACT_WORK_TIME

Unit: Seconds

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

SUM_CONNECTING_TIME_AGENT

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. This metric only supports the following filter keys 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.

SUM_CONTACT_FLOW_TIME

Unit: Seconds

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

SUM_CONTACT_TIME_AGENT

Unit: Seconds

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

SUM_CONTACTS_ANSWERED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

SUM_ERROR_STATUS_TIME_AGENT

Unit: Seconds

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

SUM_HANDLE_TIME

Unit: Seconds

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

SUM_HOLD_TIME

Unit: Count

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

SUM_IDLE_TIME_AGENT

Unit: Seconds

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

SUM_INTERACTION_AND_HOLD_TIME

Unit: Seconds

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

SUM_INTERACTION_TIME

Unit: Seconds

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

SUM_NON_PRODUCTIVE_TIME_AGENT

Unit: Seconds

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

SUM_ONLINE_TIME_AGENT

Unit: Seconds

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

SUM_RETRY_CALLBACK_ATTEMPTS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

*/ @property (nonatomic, strong) NSArray * _Nullable metrics; @@ -7582,7 +8059,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectTaskTemplateStatus status; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -7676,7 +8153,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable name; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -8036,7 +8513,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable name; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -8186,7 +8663,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable sourcePhoneNumberArn; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -9568,6 +10045,47 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectListPredefinedAttributesRequest : AWSRequest + + +/** +

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

+ */ +@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. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

If there are additional results, this is the token for the next set of results.

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

Summary of the predefined attributes.

+ */ +@property (nonatomic, strong) NSArray * _Nullable predefinedAttributeSummaryList; + +@end + /** */ @@ -10412,6 +10930,62 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectListUserProficienciesRequest : AWSRequest + + +/** +

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

+ */ +@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. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

The identifier of the user account.

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

The region in which a user's proficiencies were last modified.

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

The last time that the user's proficiencies are were modified.

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

If there are additional results, this is the token for the next set of results.

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

Information about the user proficiencies.

+ */ +@property (nonatomic, strong) NSArray * _Nullable userProficiencyList; + +@end + /** */ @@ -10844,7 +11418,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSArray * _Nullable userIds; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }. Amazon Connect users with the specified tags will be notified.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }. Amazon Connect users with the specified tags will be notified.

*/ @property (nonatomic, strong) NSDictionary * _Nullable userTags; @@ -11008,6 +11582,37 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSString * _Nullable participantToken; +@end + +/** + + */ +@interface AWSConnectPauseContactRequest : AWSRequest + + +/** +

The identifier of the flow.

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

The identifier of the contact.

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

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

+ */ +@property (nonatomic, strong) NSString * _Nullable instanceId; + +@end + +/** + + */ +@interface AWSConnectPauseContactResponse : AWSModel + + @end /** @@ -11093,6 +11698,93 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

Information about a predefined attribute.

+ */ +@interface AWSConnectPredefinedAttribute : AWSModel + + +/** +

Last modified region.

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

Last modified time.

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

The name of the predefined attribute.

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

The values of the predefined attribute.

+ */ +@property (nonatomic, strong) AWSConnectPredefinedAttributeValues * _Nullable values; + +@end + +/** +

The search criteria to be used to return predefined attributes.

+ */ +@interface AWSConnectPredefinedAttributeSearchCriteria : AWSModel + + +/** +

A list of conditions which would be applied together with an AND condition.

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

A list of conditions which would be applied together with an OR condition.

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

A leaf node condition which can be used to specify a string condition.

The currently supported values for FieldName are name and description.

+ */ +@property (nonatomic, strong) AWSConnectStringCondition * _Nullable stringCondition; + +@end + +/** +

Summary of a predefined attribute.

+ */ +@interface AWSConnectPredefinedAttributeSummary : AWSModel + + +/** +

Last modified region.

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

Last modified time.

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

The name of the predefined attribute.

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

Information about values of a predefined attribute.

+ */ +@interface AWSConnectPredefinedAttributeValues : AWSModel + + +/** +

Predefined attribute values of type string list.

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

Information about a problem detail.

*/ @@ -11143,7 +11835,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable promptId; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -11330,7 +12022,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectQueueStatus status; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -11512,7 +12204,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable quickConnectId; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -12164,23 +12856,54 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end /** -

Contains information about a routing profile.

+ */ -@interface AWSConnectRoutingProfile : AWSModel +@interface AWSConnectResumeContactRequest : AWSRequest /** -

Whether agents with this routing profile will have their routing order calculated based on time since their last inbound contact or longest idle time.

+

The identifier of the flow.

*/ -@property (nonatomic, assign) AWSConnectAgentAvailabilityTimer agentAvailabilityTimer; +@property (nonatomic, strong) NSString * _Nullable contactFlowId; /** -

The identifier of the default outbound queue for this routing profile.

+

The identifier of the contact.

*/ -@property (nonatomic, strong) NSString * _Nullable defaultOutboundQueueId; +@property (nonatomic, strong) NSString * _Nullable contactId; /** -

The description of the routing profile.

+

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

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

Contains information about a routing profile.

+ */ +@interface AWSConnectRoutingProfile : AWSModel + + +/** +

Whether agents with this routing profile will have their routing order calculated based on time since their last inbound contact or longest idle time.

+ */ +@property (nonatomic, assign) AWSConnectAgentAvailabilityTimer agentAvailabilityTimer; + +/** +

The identifier of the default outbound queue for this routing profile.

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

The description of the routing profile.

*/ @property (nonatomic, strong) NSString * _Nullable detail; @@ -12235,7 +12958,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable routingProfileId; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -12463,7 +13186,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable ruleId; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -12491,6 +13214,16 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) AWSConnectAssignContactCategoryActionDefinition * _Nullable assignContactCategoryAction; +/** +

Information about the create case action.

Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnPostChatAnalysisAvailable.

+ */ +@property (nonatomic, strong) AWSConnectCreateCaseActionDefinition * _Nullable createCaseAction; + +/** +

Information about the end associated tasks action.

Supported only for TriggerEventSource values: OnCaseUpdate.

+ */ +@property (nonatomic, strong) AWSConnectEndAssociatedTasksActionDefinition * _Nullable endAssociatedTasksAction; + /**

Information about the EventBridge action.

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

*/ @@ -12506,6 +13239,11 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) AWSConnectTaskActionDefinition * _Nullable taskAction; +/** +

Information about the update case action.

Supported only for TriggerEventSource values: OnCaseCreate | OnCaseUpdate.

+ */ +@property (nonatomic, strong) AWSConnectUpdateCaseActionDefinition * _Nullable updateCaseAction; + @end /** @@ -12661,6 +13399,134 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectSearchContactsRequest : AWSRequest + + +/** +

The identifier of Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance

+ */ +@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. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

The search criteria to be used to return contacts.

+ */ +@property (nonatomic, strong) AWSConnectSearchCriteria * _Nullable searchCriteria; + +/** +

Specifies a field to sort by and a sort order

+ */ +@property (nonatomic, strong) AWSConnectSort * _Nullable sort; + +/** +

Time range that you want to search results

+ */ +@property (nonatomic, strong) AWSConnectSearchContactsTimeRange * _Nullable timeRange; + +@end + +/** + + */ +@interface AWSConnectSearchContactsResponse : AWSModel + + +/** +

Information about the contacts.

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

If there are additional results, this is the token for the next set of results.

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

The total number of contacts which matched your search query.

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

A structure of time range that you want to search results

+ Required parameters: [Type, StartTime, EndTime] + */ +@interface AWSConnectSearchContactsTimeRange : AWSModel + + +/** +

The end time of the time range.

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

The start time of the time range.

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

The type of timestamp to search

+ */ +@property (nonatomic, assign) AWSConnectSearchContactsTimeRangeType types; + +@end + +/** +

A structure of search criteria to be used to return contacts

+ */ +@interface AWSConnectSearchCriteria : AWSModel + + +/** +

The agent hierarchy groups

+ */ +@property (nonatomic, strong) AWSConnectAgentHierarchyGroups * _Nullable agentHierarchyGroups; + +/** +

The array of agent ids

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

The array of channels

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

The ContactAnalysis object used in search criteria

+ */ +@property (nonatomic, strong) AWSConnectContactAnalysis * _Nullable contactAnalysis; + +/** +

The array of initiaton methods

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

The array of queue ids.

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

The SearchableContactAttributes object used in search criteria

+ */ +@property (nonatomic, strong) AWSConnectSearchableContactAttributes * _Nullable searchableContactAttributes; + +@end + /** */ @@ -12717,6 +13583,57 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectSearchPredefinedAttributesRequest : AWSRequest + + +/** +

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

+ */ +@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. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

The search criteria to be used to return predefined attributes.

+ */ +@property (nonatomic, strong) AWSConnectPredefinedAttributeSearchCriteria * _Nullable searchCriteria; + +@end + +/** + + */ +@interface AWSConnectSearchPredefinedAttributesResponse : AWSModel + + +/** +

The approximate number of predefined attributes which matched your search query.

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

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

Predefined attributes matched by the search criteria.

+ */ +@property (nonatomic, strong) NSArray * _Nullable predefinedAttributes; + +@end + /** */ @@ -13160,6 +14077,44 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

A structure that defines searchable contact attributes which can be used to filter search results.

+ Required parameters: [Criteria] + */ +@interface AWSConnectSearchableContactAttributes : AWSModel + + +/** +

The array of searhale contact attribute criteria

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

The match type of multiple searchable contact attributes criteria.

+ */ +@property (nonatomic, assign) AWSConnectSearchContactsMatchType matchType; + +@end + +/** +

The criteria of searchable contact attributes.

+ Required parameters: [Key, Values] + */ +@interface AWSConnectSearchableContactAttributesCriteria : AWSModel + + +/** +

The searchable contact attribute key

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

The array of contact attribute values used to filter search results.

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

Configuration information of the security key.

*/ @@ -13235,7 +14190,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSArray * _Nullable tagRestrictedResources; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -13258,7 +14213,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSArray * _Nullable orConditions; /** -

A leaf node condition which can be used to specify a string condition.

+

A leaf node condition which can be used to specify a string condition.

The currently supported values for FieldName are name and description.

*/ @property (nonatomic, strong) AWSConnectStringCondition * _Nullable stringCondition; @@ -13296,7 +14251,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable securityProfileName; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -13503,6 +14458,25 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

A structure that defines the sort by and a sort order

+ Required parameters: [FieldName, Order] + */ +@interface AWSConnectSort : AWSModel + + +/** +

The name of the field on which to sort.

+ */ +@property (nonatomic, assign) AWSConnectSortableFieldName fieldName; + +/** +

An ascending or descending sort.

+ */ +@property (nonatomic, assign) AWSConnectSortOrder order; + +@end + /** */ @@ -13748,6 +14722,11 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSString * _Nullable contactFlowId; +/** +

A description of the voice contact that is shown to an agent in the Contact Control Panel (CCP).

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

The phone number of the customer, in E.164 format.

*/ @@ -13758,11 +14737,26 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSString * _Nullable instanceId; +/** +

The name of a voice contact that is shown to an agent in the Contact Control Panel (CCP).

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

The queue for the call. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue defined in the flow is used. If you do not specify a queue, you must specify a source phone number.

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

A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Contacts can have the following reference types at the time of creation: URL | NUMBER | STRING | DATE | EMAIL. ATTACHMENT is not a supported reference type during voice contact creation.

+ */ +@property (nonatomic, strong) NSDictionary * _Nullable references; + +/** +

The contactId that is related to this contact. Linking voice, task, or chat by using RelatedContactID copies over contact attributes from the related contact to the new contact. All updates to user-defined attributes in the new contact are limited to the individual contact ID. There are no limits to the number of contacts that can be linked by using RelatedContactId.

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

The phone number associated with the Amazon Connect instance, in E.164 format. If you do not specify a source phone number, you must specify a queue.

*/ @@ -14044,7 +15038,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end /** -

A leaf node condition which can be used to specify a string condition.

+

A leaf node condition which can be used to specify a string condition.

The currently supported values for FieldName are name and description.

*/ @interface AWSConnectStringCondition : AWSModel @@ -14195,6 +15189,37 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSString * _Nullable tagValue; +@end + +/** + + */ +@interface AWSConnectTagContactRequest : AWSRequest + + +/** +

The identifier of the contact in this instance of Amazon Connect.

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

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The tags to be assigned to the contact resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

Authorization is not supported by this tag.

+ */ +@property (nonatomic, strong) NSDictionary * _Nullable tags; + +@end + +/** + + */ +@interface AWSConnectTagContactResponse : AWSModel + + @end /** @@ -14209,7 +15234,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSString * _Nullable resourceArn; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -14521,7 +15546,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectTrafficDistributionGroupStatus status; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -14578,6 +15603,49 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

The transcript object used to search results.

+ Required parameters: [Criteria] + */ +@interface AWSConnectTranscript : AWSModel + + +/** +

The array of transcript search criteria

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

The match type of multiple transcript criteira

+ */ +@property (nonatomic, assign) AWSConnectSearchContactsMatchType matchType; + +@end + +/** +

The transcript criteria used to search

+ Required parameters: [ParticipantRole, SearchText, MatchType] + */ +@interface AWSConnectTranscriptCriteria : AWSModel + + +/** +

The match type of search texts in a transcript criteria.

+ */ +@property (nonatomic, assign) AWSConnectSearchContactsMatchType matchType; + +/** +

The participant role in a transcript

+ */ +@property (nonatomic, assign) AWSConnectParticipantRole participantRole; + +/** +

The words or phrases used to search within a transcript.

+ */ +@property (nonatomic, strong) NSArray * _Nullable searchText; + +@end + /** */ @@ -14632,6 +15700,37 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { */ @property (nonatomic, strong) NSString * _Nullable contactId; +@end + +/** + + */ +@interface AWSConnectUntagContactRequest : AWSRequest + + +/** +

The identifier of the contact in this instance of Amazon Connect.

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

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

A list of tag keys. Existing tags on the contact whose keys are members of this list will be removed.

+ */ +@property (nonatomic, strong) NSArray * _Nullable tagKeys; + +@end + +/** + + */ +@interface AWSConnectUntagContactResponse : AWSModel + + @end /** @@ -14695,6 +15794,20 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

The UpdateCase action definition.

+ Required parameters: [Fields] + */ +@interface AWSConnectUpdateCaseActionDefinition : AWSModel + + +/** +

An array of objects with Field ID and Value data.

+ */ +@property (nonatomic, strong) NSArray * _Nullable fields; + +@end + /** */ @@ -14991,6 +16104,42 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @interface AWSConnectUpdateContactResponse : AWSModel +@end + +/** + + */ +@interface AWSConnectUpdateContactRoutingDataRequest : AWSRequest + + +/** +

The identifier of the contact in this instance of Amazon Connect.

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

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

Priority of the contact in the queue. The default priority for new contacts is 5. You can raise the priority of a contact compared to other contacts in the queue by assigning them a higher priority, such as 1 or 2.

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

The number of seconds to add or subtract from the contact's routing age. Contacts are routed to agents on a first-come, first-serve basis. This means that changing their amount of time in queue compared to others also changes their position in queue.

+ */ +@property (nonatomic, strong) NSNumber * _Nullable queueTimeAdjustmentSeconds; + +@end + +/** + + */ +@interface AWSConnectUpdateContactRoutingDataResponse : AWSModel + + @end /** @@ -15302,6 +16451,29 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectUpdatePredefinedAttributeRequest : AWSRequest + + +/** +

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The name of the predefined attribute.

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

The values of the predefined attribute.

+ */ +@property (nonatomic, strong) AWSConnectPredefinedAttributeValues * _Nullable values; + +@end + /** */ @@ -15992,6 +17164,29 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** + + */ +@interface AWSConnectUpdateUserProficienciesRequest : AWSRequest + + +/** +

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the user account.

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

The proficiencies to be updated for the user. Proficiencies must first be associated to the user. You can do this using AssociateUserProficiencies API.

+ */ +@property (nonatomic, strong) NSArray * _Nullable userProficiencies; + +@end + /** */ @@ -16390,6 +17585,49 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @end +/** +

Information about proficiency of a user.

+ Required parameters: [AttributeName, AttributeValue, Level] + */ +@interface AWSConnectUserProficiency : AWSModel + + +/** +

The name of user's proficiency. You must use name of predefined attribute present in the Amazon Connect instance.

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

The value of user's proficiency. You must use value of predefined attribute present in the Amazon Connect instance.

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

The level of the proficiency. The valid values are 1, 2, 3, 4 and 5.

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

Information about proficiency to be disassociated from the user.

+ Required parameters: [AttributeName, AttributeValue] + */ +@interface AWSConnectUserProficiencyDisassociate : AWSModel + + +/** +

The name of user's proficiency.

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

The value of user's proficiency.

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

Contains information about the quick connect configuration settings for a user. The contact flow must be of type Transfer to Agent.

Required parameters: [UserId, ContactFlowId] @@ -16515,7 +17753,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, strong) NSArray * _Nullable securityProfileIds; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; @@ -16802,7 +18040,7 @@ typedef NS_ENUM(NSInteger, AWSConnectVoiceRecordingTrack) { @property (nonatomic, assign) AWSConnectVocabularyState state; /** -

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

+

The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.

*/ @property (nonatomic, strong) NSDictionary * _Nullable tags; diff --git a/AWSConnect/AWSConnectModel.m b/AWSConnect/AWSConnectModel.m index 36addb0f1a3..2700eec3b4f 100644 --- a/AWSConnect/AWSConnectModel.m +++ b/AWSConnect/AWSConnectModel.m @@ -44,6 +44,15 @@ + (NSValueTransformer *)actionTypeJSONTransformer { if ([value caseInsensitiveCompare:@"SEND_NOTIFICATION"] == NSOrderedSame) { return @(AWSConnectActionTypeSendNotification); } + if ([value caseInsensitiveCompare:@"CREATE_CASE"] == NSOrderedSame) { + return @(AWSConnectActionTypeCreateCase); + } + if ([value caseInsensitiveCompare:@"UPDATE_CASE"] == NSOrderedSame) { + return @(AWSConnectActionTypeUpdateCase); + } + if ([value caseInsensitiveCompare:@"END_ASSOCIATED_TASKS"] == NSOrderedSame) { + return @(AWSConnectActionTypeEndAssociatedTasks); + } return @(AWSConnectActionTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -55,6 +64,12 @@ + (NSValueTransformer *)actionTypeJSONTransformer { return @"GENERATE_EVENTBRIDGE_EVENT"; case AWSConnectActionTypeSendNotification: return @"SEND_NOTIFICATION"; + case AWSConnectActionTypeCreateCase: + return @"CREATE_CASE"; + case AWSConnectActionTypeUpdateCase: + return @"UPDATE_CASE"; + case AWSConnectActionTypeEndAssociatedTasks: + return @"END_ASSOCIATED_TASKS"; default: return nil; } @@ -291,6 +306,24 @@ + (NSValueTransformer *)stateStartTimestampJSONTransformer { @end +@implementation AWSConnectAgentHierarchyGroups + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"l1Ids" : @"L1Ids", + @"l2Ids" : @"L2Ids", + @"l3Ids" : @"L3Ids", + @"l4Ids" : @"L4Ids", + @"l5Ids" : @"L5Ids", + }; +} + +@end + @implementation AWSConnectAgentInfo + (BOOL)supportsSecureCoding { @@ -299,6 +332,7 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ + @"agentPauseDurationInSeconds" : @"AgentPauseDurationInSeconds", @"connectedToAgentTimestamp" : @"ConnectedToAgentTimestamp", @"identifier" : @"Id", }; @@ -1044,6 +1078,26 @@ + (BOOL)supportsSecureCoding { @end +@implementation AWSConnectAssociateUserProficienciesRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"userId" : @"UserId", + @"userProficiencies" : @"UserProficiencies", + }; +} + ++ (NSValueTransformer *)userProficienciesJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectUserProficiency class]]; +} + +@end + @implementation AWSConnectAttachmentReference + (BOOL)supportsSecureCoding { @@ -4079,12 +4133,19 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"initialContactId" : @"InitialContactId", @"initiationMethod" : @"InitiationMethod", @"initiationTimestamp" : @"InitiationTimestamp", + @"lastPausedTimestamp" : @"LastPausedTimestamp", + @"lastResumedTimestamp" : @"LastResumedTimestamp", @"lastUpdateTimestamp" : @"LastUpdateTimestamp", @"name" : @"Name", @"previousContactId" : @"PreviousContactId", @"queueInfo" : @"QueueInfo", + @"queuePriority" : @"QueuePriority", + @"queueTimeAdjustmentSeconds" : @"QueueTimeAdjustmentSeconds", @"relatedContactId" : @"RelatedContactId", @"scheduledTimestamp" : @"ScheduledTimestamp", + @"tags" : @"Tags", + @"totalPauseCount" : @"TotalPauseCount", + @"totalPauseDurationInSeconds" : @"TotalPauseDurationInSeconds", @"wisdomInfo" : @"WisdomInfo", }; } @@ -4191,6 +4252,22 @@ + (NSValueTransformer *)initiationTimestampJSONTransformer { }]; } ++ (NSValueTransformer *)lastPausedTimestampJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + ++ (NSValueTransformer *)lastResumedTimestampJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + + (NSValueTransformer *)lastUpdateTimestampJSONTransformer { return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; @@ -4217,6 +4294,24 @@ + (NSValueTransformer *)wisdomInfoJSONTransformer { @end +@implementation AWSConnectContactAnalysis + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"transcript" : @"Transcript", + }; +} + ++ (NSValueTransformer *)transcriptJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectTranscript class]]; +} + +@end + @implementation AWSConnectContactDataRequest + (BOOL)supportsSecureCoding { @@ -4556,6 +4651,190 @@ + (NSValueTransformer *)contactFlowTypeJSONTransformer { @end +@implementation AWSConnectContactSearchSummary + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"agentInfo" : @"AgentInfo", + @"arn" : @"Arn", + @"channel" : @"Channel", + @"disconnectTimestamp" : @"DisconnectTimestamp", + @"identifier" : @"Id", + @"initialContactId" : @"InitialContactId", + @"initiationMethod" : @"InitiationMethod", + @"initiationTimestamp" : @"InitiationTimestamp", + @"previousContactId" : @"PreviousContactId", + @"queueInfo" : @"QueueInfo", + @"scheduledTimestamp" : @"ScheduledTimestamp", + }; +} + ++ (NSValueTransformer *)agentInfoJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectContactSearchSummaryAgentInfo class]]; +} + ++ (NSValueTransformer *)channelJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"VOICE"] == NSOrderedSame) { + return @(AWSConnectChannelVoice); + } + if ([value caseInsensitiveCompare:@"CHAT"] == NSOrderedSame) { + return @(AWSConnectChannelChat); + } + if ([value caseInsensitiveCompare:@"TASK"] == NSOrderedSame) { + return @(AWSConnectChannelTask); + } + return @(AWSConnectChannelUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectChannelVoice: + return @"VOICE"; + case AWSConnectChannelChat: + return @"CHAT"; + case AWSConnectChannelTask: + return @"TASK"; + default: + return nil; + } + }]; +} + ++ (NSValueTransformer *)disconnectTimestampJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + ++ (NSValueTransformer *)initiationMethodJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"INBOUND"] == NSOrderedSame) { + return @(AWSConnectContactInitiationMethodInbound); + } + if ([value caseInsensitiveCompare:@"OUTBOUND"] == NSOrderedSame) { + return @(AWSConnectContactInitiationMethodOutbound); + } + if ([value caseInsensitiveCompare:@"TRANSFER"] == NSOrderedSame) { + return @(AWSConnectContactInitiationMethodTransfer); + } + if ([value caseInsensitiveCompare:@"QUEUE_TRANSFER"] == NSOrderedSame) { + return @(AWSConnectContactInitiationMethodQueueTransfer); + } + if ([value caseInsensitiveCompare:@"CALLBACK"] == NSOrderedSame) { + return @(AWSConnectContactInitiationMethodCallback); + } + if ([value caseInsensitiveCompare:@"API"] == NSOrderedSame) { + return @(AWSConnectContactInitiationMethodApi); + } + if ([value caseInsensitiveCompare:@"DISCONNECT"] == NSOrderedSame) { + return @(AWSConnectContactInitiationMethodDisconnect); + } + if ([value caseInsensitiveCompare:@"MONITOR"] == NSOrderedSame) { + return @(AWSConnectContactInitiationMethodMonitor); + } + if ([value caseInsensitiveCompare:@"EXTERNAL_OUTBOUND"] == NSOrderedSame) { + return @(AWSConnectContactInitiationMethodExternalOutbound); + } + return @(AWSConnectContactInitiationMethodUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectContactInitiationMethodInbound: + return @"INBOUND"; + case AWSConnectContactInitiationMethodOutbound: + return @"OUTBOUND"; + case AWSConnectContactInitiationMethodTransfer: + return @"TRANSFER"; + case AWSConnectContactInitiationMethodQueueTransfer: + return @"QUEUE_TRANSFER"; + case AWSConnectContactInitiationMethodCallback: + return @"CALLBACK"; + case AWSConnectContactInitiationMethodApi: + return @"API"; + case AWSConnectContactInitiationMethodDisconnect: + return @"DISCONNECT"; + case AWSConnectContactInitiationMethodMonitor: + return @"MONITOR"; + case AWSConnectContactInitiationMethodExternalOutbound: + return @"EXTERNAL_OUTBOUND"; + default: + return nil; + } + }]; +} + ++ (NSValueTransformer *)initiationTimestampJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + ++ (NSValueTransformer *)queueInfoJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectContactSearchSummaryQueueInfo class]]; +} + ++ (NSValueTransformer *)scheduledTimestampJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + +@end + +@implementation AWSConnectContactSearchSummaryAgentInfo + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"connectedToAgentTimestamp" : @"ConnectedToAgentTimestamp", + @"identifier" : @"Id", + }; +} + ++ (NSValueTransformer *)connectedToAgentTimestampJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + +@end + +@implementation AWSConnectContactSearchSummaryQueueInfo + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"enqueueTimestamp" : @"EnqueueTimestamp", + @"identifier" : @"Id", + }; +} + ++ (NSValueTransformer *)enqueueTimestampJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + +@end + @implementation AWSConnectControlPlaneTagFilter + (BOOL)supportsSecureCoding { @@ -4635,7 +4914,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end -@implementation AWSConnectCreateContactFlowModuleRequest +@implementation AWSConnectCreateCaseActionDefinition + (BOOL)supportsSecureCoding { return YES; @@ -4643,18 +4922,18 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ - @"clientToken" : @"ClientToken", - @"content" : @"Content", - @"detail" : @"Description", - @"instanceId" : @"InstanceId", - @"name" : @"Name", - @"tags" : @"Tags", + @"fields" : @"Fields", + @"templateId" : @"TemplateId", }; } ++ (NSValueTransformer *)fieldsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectFieldValue class]]; +} + @end -@implementation AWSConnectCreateContactFlowModuleResponse +@implementation AWSConnectCreateContactFlowModuleRequest + (BOOL)supportsSecureCoding { return YES; @@ -4662,8 +4941,27 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ - @"arn" : @"Arn", - @"identifier" : @"Id", + @"clientToken" : @"ClientToken", + @"content" : @"Content", + @"detail" : @"Description", + @"instanceId" : @"InstanceId", + @"name" : @"Name", + @"tags" : @"Tags", + }; +} + +@end + +@implementation AWSConnectCreateContactFlowModuleResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"arn" : @"Arn", + @"identifier" : @"Id", }; } @@ -4982,6 +5280,9 @@ + (NSValueTransformer *)sourceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"ZENDESK"] == NSOrderedSame) { return @(AWSConnectSourceTypeZendesk); } + if ([value caseInsensitiveCompare:@"CASES"] == NSOrderedSame) { + return @(AWSConnectSourceTypeCases); + } return @(AWSConnectSourceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -4989,6 +5290,8 @@ + (NSValueTransformer *)sourceTypeJSONTransformer { return @"SALESFORCE"; case AWSConnectSourceTypeZendesk: return @"ZENDESK"; + case AWSConnectSourceTypeCases: + return @"CASES"; default: return nil; } @@ -5105,6 +5408,26 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSConnectCreatePredefinedAttributeRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"name" : @"Name", + @"values" : @"Values", + }; +} + ++ (NSValueTransformer *)valuesJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectPredefinedAttributeValues class]]; +} + +@end + @implementation AWSConnectCreatePromptRequest + (BOOL)supportsSecureCoding { @@ -6558,6 +6881,21 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSConnectDeletePredefinedAttributeRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"name" : @"Name", + }; +} + +@end + @implementation AWSConnectDeletePromptRequest + (BOOL)supportsSecureCoding { @@ -7338,6 +7676,39 @@ + (NSValueTransformer *)claimedPhoneNumberSummaryJSONTransformer { @end +@implementation AWSConnectDescribePredefinedAttributeRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"name" : @"Name", + }; +} + +@end + +@implementation AWSConnectDescribePredefinedAttributeResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"predefinedAttribute" : @"PredefinedAttribute", + }; +} + ++ (NSValueTransformer *)predefinedAttributeJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectPredefinedAttribute class]]; +} + +@end + @implementation AWSConnectDescribePromptRequest + (BOOL)supportsSecureCoding { @@ -7743,6 +8114,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"channel" : @"Channel", @"queue" : @"Queue", @"routingProfile" : @"RoutingProfile", + @"routingStepExpression" : @"RoutingStepExpression", }; } @@ -8075,6 +8447,26 @@ + (BOOL)supportsSecureCoding { @end +@implementation AWSConnectDisassociateUserProficienciesRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"userId" : @"UserId", + @"userProficiencies" : @"UserProficiencies", + }; +} + ++ (NSValueTransformer *)userProficienciesJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectUserProficiencyDisassociate class]]; +} + +@end + @implementation AWSConnectDisconnectReason + (BOOL)supportsSecureCoding { @@ -8143,6 +8535,14 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSConnectEmptyFieldValue + ++ (BOOL)supportsSecureCoding { + return YES; +} + +@end + @implementation AWSConnectEncryptionConfig + (BOOL)supportsSecureCoding { @@ -8174,6 +8574,14 @@ + (NSValueTransformer *)encryptionTypeJSONTransformer { @end +@implementation AWSConnectEndAssociatedTasksActionDefinition + ++ (BOOL)supportsSecureCoding { + return YES; +} + +@end + @implementation AWSConnectEndpoint + (BOOL)supportsSecureCoding { @@ -9121,6 +9529,46 @@ + (NSValueTransformer *)failureReasonCodeJSONTransformer { @end +@implementation AWSConnectFieldValue + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"identifier" : @"Id", + @"value" : @"Value", + }; +} + ++ (NSValueTransformer *)valueJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectFieldValueUnion class]]; +} + +@end + +@implementation AWSConnectFieldValueUnion + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"booleanValue" : @"BooleanValue", + @"doubleValue" : @"DoubleValue", + @"emptyValue" : @"EmptyValue", + @"stringValue" : @"StringValue", + }; +} + ++ (NSValueTransformer *)emptyValueJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectEmptyFieldValue class]]; +} + +@end + @implementation AWSConnectFilterV2 + (BOOL)supportsSecureCoding { @@ -9147,6 +9595,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"channels" : @"Channels", @"queues" : @"Queues", @"routingProfiles" : @"RoutingProfiles", + @"routingStepExpressions" : @"RoutingStepExpressions", }; } @@ -10833,6 +11282,9 @@ + (NSValueTransformer *)sourceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"ZENDESK"] == NSOrderedSame) { return @(AWSConnectSourceTypeZendesk); } + if ([value caseInsensitiveCompare:@"CASES"] == NSOrderedSame) { + return @(AWSConnectSourceTypeCases); + } return @(AWSConnectSourceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -10840,6 +11292,8 @@ + (NSValueTransformer *)sourceTypeJSONTransformer { return @"SALESFORCE"; case AWSConnectSourceTypeZendesk: return @"ZENDESK"; + case AWSConnectSourceTypeCases: + return @"CASES"; default: return nil; } @@ -13331,6 +13785,41 @@ + (NSValueTransformer *)listPhoneNumbersSummaryListJSONTransformer { @end +@implementation AWSConnectListPredefinedAttributesRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"maxResults" : @"MaxResults", + @"nextToken" : @"NextToken", + }; +} + +@end + +@implementation AWSConnectListPredefinedAttributesResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"nextToken" : @"NextToken", + @"predefinedAttributeSummaryList" : @"PredefinedAttributeSummaryList", + }; +} + ++ (NSValueTransformer *)predefinedAttributeSummaryListJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectPredefinedAttributeSummary class]]; +} + +@end + @implementation AWSConnectListPromptsRequest + (BOOL)supportsSecureCoding { @@ -13718,6 +14207,12 @@ + (NSValueTransformer *)eventSourceNameJSONTransformer { if ([value caseInsensitiveCompare:@"OnMetricDataUpdate"] == NSOrderedSame) { return @(AWSConnectEventSourceNameOnMetricDataUpdate); } + if ([value caseInsensitiveCompare:@"OnCaseCreate"] == NSOrderedSame) { + return @(AWSConnectEventSourceNameOnCaseCreate); + } + if ([value caseInsensitiveCompare:@"OnCaseUpdate"] == NSOrderedSame) { + return @(AWSConnectEventSourceNameOnCaseUpdate); + } return @(AWSConnectEventSourceNameUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -13739,6 +14234,10 @@ + (NSValueTransformer *)eventSourceNameJSONTransformer { return @"OnContactEvaluationSubmit"; case AWSConnectEventSourceNameOnMetricDataUpdate: return @"OnMetricDataUpdate"; + case AWSConnectEventSourceNameOnCaseCreate: + return @"OnCaseCreate"; + case AWSConnectEventSourceNameOnCaseUpdate: + return @"OnCaseUpdate"; default: return nil; } @@ -14172,6 +14671,52 @@ + (NSValueTransformer *)userHierarchyGroupSummaryListJSONTransformer { @end +@implementation AWSConnectListUserProficienciesRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"maxResults" : @"MaxResults", + @"nextToken" : @"NextToken", + @"userId" : @"UserId", + }; +} + +@end + +@implementation AWSConnectListUserProficienciesResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"lastModifiedRegion" : @"LastModifiedRegion", + @"lastModifiedTime" : @"LastModifiedTime", + @"nextToken" : @"NextToken", + @"userProficiencyList" : @"UserProficiencyList", + }; +} + ++ (NSValueTransformer *)lastModifiedTimeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + ++ (NSValueTransformer *)userProficiencyListJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectUserProficiency class]]; +} + +@end + @implementation AWSConnectListUsersRequest + (BOOL)supportsSecureCoding { @@ -14930,6 +15475,30 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSConnectPauseContactRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"contactFlowId" : @"ContactFlowId", + @"contactId" : @"ContactId", + @"instanceId" : @"InstanceId", + }; +} + +@end + +@implementation AWSConnectPauseContactResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + +@end + @implementation AWSConnectPersistentChat + (BOOL)supportsSecureCoding { @@ -16281,7 +16850,7 @@ + (NSValueTransformer *)phoneNumberTypeJSONTransformer { @end -@implementation AWSConnectProblemDetail +@implementation AWSConnectPredefinedAttribute + (BOOL)supportsSecureCoding { return YES; @@ -16289,13 +16858,28 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ - @"message" : @"message", + @"lastModifiedRegion" : @"LastModifiedRegion", + @"lastModifiedTime" : @"LastModifiedTime", + @"name" : @"Name", + @"values" : @"Values", }; } ++ (NSValueTransformer *)lastModifiedTimeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + ++ (NSValueTransformer *)valuesJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectPredefinedAttributeValues class]]; +} + @end -@implementation AWSConnectPrompt +@implementation AWSConnectPredefinedAttributeSearchCriteria + (BOOL)supportsSecureCoding { return YES; @@ -16303,8 +16887,88 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ - @"detail" : @"Description", - @"lastModifiedRegion" : @"LastModifiedRegion", + @"andConditions" : @"AndConditions", + @"orConditions" : @"OrConditions", + @"stringCondition" : @"StringCondition", + }; +} + ++ (NSValueTransformer *)andConditionsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectPredefinedAttributeSearchCriteria class]]; +} + ++ (NSValueTransformer *)orConditionsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectPredefinedAttributeSearchCriteria class]]; +} + ++ (NSValueTransformer *)stringConditionJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectStringCondition class]]; +} + +@end + +@implementation AWSConnectPredefinedAttributeSummary + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"lastModifiedRegion" : @"LastModifiedRegion", + @"lastModifiedTime" : @"LastModifiedTime", + @"name" : @"Name", + }; +} + ++ (NSValueTransformer *)lastModifiedTimeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + +@end + +@implementation AWSConnectPredefinedAttributeValues + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"stringList" : @"StringList", + }; +} + +@end + +@implementation AWSConnectProblemDetail + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"message" : @"message", + }; +} + +@end + +@implementation AWSConnectPrompt + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"detail" : @"Description", + @"lastModifiedRegion" : @"LastModifiedRegion", @"lastModifiedTime" : @"LastModifiedTime", @"name" : @"Name", @"promptARN" : @"PromptARN", @@ -17576,6 +18240,30 @@ + (BOOL)supportsSecureCoding { @end +@implementation AWSConnectResumeContactRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"contactFlowId" : @"ContactFlowId", + @"contactId" : @"ContactId", + @"instanceId" : @"InstanceId", + }; +} + +@end + +@implementation AWSConnectResumeContactResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + +@end + @implementation AWSConnectRoutingProfile + (BOOL)supportsSecureCoding { @@ -17908,9 +18596,12 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ @"actionType" : @"ActionType", @"assignContactCategoryAction" : @"AssignContactCategoryAction", + @"createCaseAction" : @"CreateCaseAction", + @"endAssociatedTasksAction" : @"EndAssociatedTasksAction", @"eventBridgeAction" : @"EventBridgeAction", @"sendNotificationAction" : @"SendNotificationAction", @"taskAction" : @"TaskAction", + @"updateCaseAction" : @"UpdateCaseAction", }; } @@ -17928,6 +18619,15 @@ + (NSValueTransformer *)actionTypeJSONTransformer { if ([value caseInsensitiveCompare:@"SEND_NOTIFICATION"] == NSOrderedSame) { return @(AWSConnectActionTypeSendNotification); } + if ([value caseInsensitiveCompare:@"CREATE_CASE"] == NSOrderedSame) { + return @(AWSConnectActionTypeCreateCase); + } + if ([value caseInsensitiveCompare:@"UPDATE_CASE"] == NSOrderedSame) { + return @(AWSConnectActionTypeUpdateCase); + } + if ([value caseInsensitiveCompare:@"END_ASSOCIATED_TASKS"] == NSOrderedSame) { + return @(AWSConnectActionTypeEndAssociatedTasks); + } return @(AWSConnectActionTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -17939,6 +18639,12 @@ + (NSValueTransformer *)actionTypeJSONTransformer { return @"GENERATE_EVENTBRIDGE_EVENT"; case AWSConnectActionTypeSendNotification: return @"SEND_NOTIFICATION"; + case AWSConnectActionTypeCreateCase: + return @"CREATE_CASE"; + case AWSConnectActionTypeUpdateCase: + return @"UPDATE_CASE"; + case AWSConnectActionTypeEndAssociatedTasks: + return @"END_ASSOCIATED_TASKS"; default: return nil; } @@ -17949,6 +18655,14 @@ + (NSValueTransformer *)assignContactCategoryActionJSONTransformer { return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectAssignContactCategoryActionDefinition class]]; } ++ (NSValueTransformer *)createCaseActionJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectCreateCaseActionDefinition class]]; +} + ++ (NSValueTransformer *)endAssociatedTasksActionJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectEndAssociatedTasksActionDefinition class]]; +} + + (NSValueTransformer *)eventBridgeActionJSONTransformer { return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectEventBridgeActionDefinition class]]; } @@ -17961,6 +18675,10 @@ + (NSValueTransformer *)taskActionJSONTransformer { return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectTaskActionDefinition class]]; } ++ (NSValueTransformer *)updateCaseActionJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectUpdateCaseActionDefinition class]]; +} + @end @implementation AWSConnectRuleSummary @@ -18023,6 +18741,12 @@ + (NSValueTransformer *)eventSourceNameJSONTransformer { if ([value caseInsensitiveCompare:@"OnMetricDataUpdate"] == NSOrderedSame) { return @(AWSConnectEventSourceNameOnMetricDataUpdate); } + if ([value caseInsensitiveCompare:@"OnCaseCreate"] == NSOrderedSame) { + return @(AWSConnectEventSourceNameOnCaseCreate); + } + if ([value caseInsensitiveCompare:@"OnCaseUpdate"] == NSOrderedSame) { + return @(AWSConnectEventSourceNameOnCaseUpdate); + } return @(AWSConnectEventSourceNameUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -18044,6 +18768,10 @@ + (NSValueTransformer *)eventSourceNameJSONTransformer { return @"OnContactEvaluationSubmit"; case AWSConnectEventSourceNameOnMetricDataUpdate: return @"OnMetricDataUpdate"; + case AWSConnectEventSourceNameOnCaseCreate: + return @"OnCaseCreate"; + case AWSConnectEventSourceNameOnCaseUpdate: + return @"OnCaseUpdate"; default: return nil; } @@ -18123,6 +18851,12 @@ + (NSValueTransformer *)eventSourceNameJSONTransformer { if ([value caseInsensitiveCompare:@"OnMetricDataUpdate"] == NSOrderedSame) { return @(AWSConnectEventSourceNameOnMetricDataUpdate); } + if ([value caseInsensitiveCompare:@"OnCaseCreate"] == NSOrderedSame) { + return @(AWSConnectEventSourceNameOnCaseCreate); + } + if ([value caseInsensitiveCompare:@"OnCaseUpdate"] == NSOrderedSame) { + return @(AWSConnectEventSourceNameOnCaseUpdate); + } return @(AWSConnectEventSourceNameUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -18144,6 +18878,10 @@ + (NSValueTransformer *)eventSourceNameJSONTransformer { return @"OnContactEvaluationSubmit"; case AWSConnectEventSourceNameOnMetricDataUpdate: return @"OnMetricDataUpdate"; + case AWSConnectEventSourceNameOnCaseCreate: + return @"OnCaseCreate"; + case AWSConnectEventSourceNameOnCaseUpdate: + return @"OnCaseUpdate"; default: return nil; } @@ -19453,6 +20191,152 @@ + (NSValueTransformer *)availableNumbersListJSONTransformer { @end +@implementation AWSConnectSearchContactsRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"maxResults" : @"MaxResults", + @"nextToken" : @"NextToken", + @"searchCriteria" : @"SearchCriteria", + @"sort" : @"Sort", + @"timeRange" : @"TimeRange", + }; +} + ++ (NSValueTransformer *)searchCriteriaJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectSearchCriteria class]]; +} + ++ (NSValueTransformer *)sortJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectSort class]]; +} + ++ (NSValueTransformer *)timeRangeJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectSearchContactsTimeRange class]]; +} + +@end + +@implementation AWSConnectSearchContactsResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"contacts" : @"Contacts", + @"nextToken" : @"NextToken", + @"totalCount" : @"TotalCount", + }; +} + ++ (NSValueTransformer *)contactsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectContactSearchSummary class]]; +} + +@end + +@implementation AWSConnectSearchContactsTimeRange + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"endTime" : @"EndTime", + @"startTime" : @"StartTime", + @"types" : @"Type", + }; +} + ++ (NSValueTransformer *)endTimeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + ++ (NSValueTransformer *)startTimeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + ++ (NSValueTransformer *)typesJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"INITIATION_TIMESTAMP"] == NSOrderedSame) { + return @(AWSConnectSearchContactsTimeRangeTypeInitiationTimestamp); + } + if ([value caseInsensitiveCompare:@"SCHEDULED_TIMESTAMP"] == NSOrderedSame) { + return @(AWSConnectSearchContactsTimeRangeTypeScheduledTimestamp); + } + if ([value caseInsensitiveCompare:@"CONNECTED_TO_AGENT_TIMESTAMP"] == NSOrderedSame) { + return @(AWSConnectSearchContactsTimeRangeTypeConnectedToAgentTimestamp); + } + if ([value caseInsensitiveCompare:@"DISCONNECT_TIMESTAMP"] == NSOrderedSame) { + return @(AWSConnectSearchContactsTimeRangeTypeDisconnectTimestamp); + } + return @(AWSConnectSearchContactsTimeRangeTypeUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectSearchContactsTimeRangeTypeInitiationTimestamp: + return @"INITIATION_TIMESTAMP"; + case AWSConnectSearchContactsTimeRangeTypeScheduledTimestamp: + return @"SCHEDULED_TIMESTAMP"; + case AWSConnectSearchContactsTimeRangeTypeConnectedToAgentTimestamp: + return @"CONNECTED_TO_AGENT_TIMESTAMP"; + case AWSConnectSearchContactsTimeRangeTypeDisconnectTimestamp: + return @"DISCONNECT_TIMESTAMP"; + default: + return nil; + } + }]; +} + +@end + +@implementation AWSConnectSearchCriteria + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"agentHierarchyGroups" : @"AgentHierarchyGroups", + @"agentIds" : @"AgentIds", + @"channels" : @"Channels", + @"contactAnalysis" : @"ContactAnalysis", + @"initiationMethods" : @"InitiationMethods", + @"queueIds" : @"QueueIds", + @"searchableContactAttributes" : @"SearchableContactAttributes", + }; +} + ++ (NSValueTransformer *)agentHierarchyGroupsJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectAgentHierarchyGroups class]]; +} + ++ (NSValueTransformer *)contactAnalysisJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectContactAnalysis class]]; +} + ++ (NSValueTransformer *)searchableContactAttributesJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectSearchableContactAttributes class]]; +} + +@end + @implementation AWSConnectSearchHoursOfOperationsRequest + (BOOL)supportsSecureCoding { @@ -19499,6 +20383,47 @@ + (NSValueTransformer *)hoursOfOperationsJSONTransformer { @end +@implementation AWSConnectSearchPredefinedAttributesRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"maxResults" : @"MaxResults", + @"nextToken" : @"NextToken", + @"searchCriteria" : @"SearchCriteria", + }; +} + ++ (NSValueTransformer *)searchCriteriaJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectPredefinedAttributeSearchCriteria class]]; +} + +@end + +@implementation AWSConnectSearchPredefinedAttributesResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"approximateTotalCount" : @"ApproximateTotalCount", + @"nextToken" : @"NextToken", + @"predefinedAttributes" : @"PredefinedAttributes", + }; +} + ++ (NSValueTransformer *)predefinedAttributesJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectPredefinedAttribute class]]; +} + +@end + @implementation AWSConnectSearchPromptsRequest + (BOOL)supportsSecureCoding { @@ -20011,7 +20936,7 @@ + (NSValueTransformer *)vocabularySummaryListJSONTransformer { @end -@implementation AWSConnectSecurityKey +@implementation AWSConnectSearchableContactAttributes + (BOOL)supportsSecureCoding { return YES; @@ -20019,13 +20944,68 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ - @"associationId" : @"AssociationId", - @"creationTime" : @"CreationTime", - @"key" : @"Key", + @"criteria" : @"Criteria", + @"matchType" : @"MatchType", }; } -+ (NSValueTransformer *)creationTimeJSONTransformer { ++ (NSValueTransformer *)criteriaJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectSearchableContactAttributesCriteria class]]; +} + ++ (NSValueTransformer *)matchTypeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"MATCH_ALL"] == NSOrderedSame) { + return @(AWSConnectSearchContactsMatchTypeMatchAll); + } + if ([value caseInsensitiveCompare:@"MATCH_ANY"] == NSOrderedSame) { + return @(AWSConnectSearchContactsMatchTypeMatchAny); + } + return @(AWSConnectSearchContactsMatchTypeUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectSearchContactsMatchTypeMatchAll: + return @"MATCH_ALL"; + case AWSConnectSearchContactsMatchTypeMatchAny: + return @"MATCH_ANY"; + default: + return nil; + } + }]; +} + +@end + +@implementation AWSConnectSearchableContactAttributesCriteria + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"key" : @"Key", + @"values" : @"Values", + }; +} + +@end + +@implementation AWSConnectSecurityKey + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"associationId" : @"AssociationId", + @"creationTime" : @"CreationTime", + @"key" : @"Key", + }; +} + ++ (NSValueTransformer *)creationTimeJSONTransformer { return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; } reverseBlock:^id(NSDate *date) { @@ -20336,6 +21316,83 @@ + (NSValueTransformer *)conditionJSONTransformer { @end +@implementation AWSConnectSort + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"fieldName" : @"FieldName", + @"order" : @"Order", + }; +} + ++ (NSValueTransformer *)fieldNameJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"INITIATION_TIMESTAMP"] == NSOrderedSame) { + return @(AWSConnectSortableFieldNameInitiationTimestamp); + } + if ([value caseInsensitiveCompare:@"SCHEDULED_TIMESTAMP"] == NSOrderedSame) { + return @(AWSConnectSortableFieldNameScheduledTimestamp); + } + if ([value caseInsensitiveCompare:@"CONNECTED_TO_AGENT_TIMESTAMP"] == NSOrderedSame) { + return @(AWSConnectSortableFieldNameConnectedToAgentTimestamp); + } + if ([value caseInsensitiveCompare:@"DISCONNECT_TIMESTAMP"] == NSOrderedSame) { + return @(AWSConnectSortableFieldNameDisconnectTimestamp); + } + if ([value caseInsensitiveCompare:@"INITIATION_METHOD"] == NSOrderedSame) { + return @(AWSConnectSortableFieldNameInitiationMethod); + } + if ([value caseInsensitiveCompare:@"CHANNEL"] == NSOrderedSame) { + return @(AWSConnectSortableFieldNameChannel); + } + return @(AWSConnectSortableFieldNameUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectSortableFieldNameInitiationTimestamp: + return @"INITIATION_TIMESTAMP"; + case AWSConnectSortableFieldNameScheduledTimestamp: + return @"SCHEDULED_TIMESTAMP"; + case AWSConnectSortableFieldNameConnectedToAgentTimestamp: + return @"CONNECTED_TO_AGENT_TIMESTAMP"; + case AWSConnectSortableFieldNameDisconnectTimestamp: + return @"DISCONNECT_TIMESTAMP"; + case AWSConnectSortableFieldNameInitiationMethod: + return @"INITIATION_METHOD"; + case AWSConnectSortableFieldNameChannel: + return @"CHANNEL"; + default: + return nil; + } + }]; +} + ++ (NSValueTransformer *)orderJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"ASCENDING"] == NSOrderedSame) { + return @(AWSConnectSortOrderAscending); + } + if ([value caseInsensitiveCompare:@"DESCENDING"] == NSOrderedSame) { + return @(AWSConnectSortOrderDescending); + } + return @(AWSConnectSortOrderUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectSortOrderAscending: + return @"ASCENDING"; + case AWSConnectSortOrderDescending: + return @"DESCENDING"; + default: + return nil; + } + }]; +} + +@end + @implementation AWSConnectStartChatContactRequest + (BOOL)supportsSecureCoding { @@ -20506,9 +21563,13 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"campaignId" : @"CampaignId", @"clientToken" : @"ClientToken", @"contactFlowId" : @"ContactFlowId", + @"detail" : @"Description", @"destinationPhoneNumber" : @"DestinationPhoneNumber", @"instanceId" : @"InstanceId", + @"name" : @"Name", @"queueId" : @"QueueId", + @"references" : @"References", + @"relatedContactId" : @"RelatedContactId", @"sourcePhoneNumber" : @"SourcePhoneNumber", @"trafficType" : @"TrafficType", }; @@ -20518,6 +21579,14 @@ + (NSValueTransformer *)answerMachineDetectionConfigJSONTransformer { return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectAnswerMachineDetectionConfig class]]; } ++ (NSValueTransformer *)referencesJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(id JSONDictionary) { + return [AWSModelUtility mapMTLDictionaryFromJSONDictionary:JSONDictionary withModelClass:[AWSConnectReference class]]; + } reverseBlock:^id(id mapMTLDictionary) { + return [AWSModelUtility JSONDictionaryFromMapMTLDictionary:mapMTLDictionary]; + }]; +} + + (NSValueTransformer *)trafficTypeJSONTransformer { return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { if ([value caseInsensitiveCompare:@"GENERAL"] == NSOrderedSame) { @@ -20904,6 +21973,30 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSConnectTagContactRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"contactId" : @"ContactId", + @"instanceId" : @"InstanceId", + @"tags" : @"Tags", + }; +} + +@end + +@implementation AWSConnectTagContactResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + +@end + @implementation AWSConnectTagResourceRequest + (BOOL)supportsSecureCoding { @@ -21456,6 +22549,114 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSConnectTranscript + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"criteria" : @"Criteria", + @"matchType" : @"MatchType", + }; +} + ++ (NSValueTransformer *)criteriaJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectTranscriptCriteria class]]; +} + ++ (NSValueTransformer *)matchTypeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"MATCH_ALL"] == NSOrderedSame) { + return @(AWSConnectSearchContactsMatchTypeMatchAll); + } + if ([value caseInsensitiveCompare:@"MATCH_ANY"] == NSOrderedSame) { + return @(AWSConnectSearchContactsMatchTypeMatchAny); + } + return @(AWSConnectSearchContactsMatchTypeUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectSearchContactsMatchTypeMatchAll: + return @"MATCH_ALL"; + case AWSConnectSearchContactsMatchTypeMatchAny: + return @"MATCH_ANY"; + default: + return nil; + } + }]; +} + +@end + +@implementation AWSConnectTranscriptCriteria + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"matchType" : @"MatchType", + @"participantRole" : @"ParticipantRole", + @"searchText" : @"SearchText", + }; +} + ++ (NSValueTransformer *)matchTypeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"MATCH_ALL"] == NSOrderedSame) { + return @(AWSConnectSearchContactsMatchTypeMatchAll); + } + if ([value caseInsensitiveCompare:@"MATCH_ANY"] == NSOrderedSame) { + return @(AWSConnectSearchContactsMatchTypeMatchAny); + } + return @(AWSConnectSearchContactsMatchTypeUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectSearchContactsMatchTypeMatchAll: + return @"MATCH_ALL"; + case AWSConnectSearchContactsMatchTypeMatchAny: + return @"MATCH_ANY"; + default: + return nil; + } + }]; +} + ++ (NSValueTransformer *)participantRoleJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"AGENT"] == NSOrderedSame) { + return @(AWSConnectParticipantRoleAgent); + } + if ([value caseInsensitiveCompare:@"CUSTOMER"] == NSOrderedSame) { + return @(AWSConnectParticipantRoleCustomer); + } + if ([value caseInsensitiveCompare:@"SYSTEM"] == NSOrderedSame) { + return @(AWSConnectParticipantRoleSystem); + } + if ([value caseInsensitiveCompare:@"CUSTOM_BOT"] == NSOrderedSame) { + return @(AWSConnectParticipantRoleCustomBot); + } + return @(AWSConnectParticipantRoleUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSConnectParticipantRoleAgent: + return @"AGENT"; + case AWSConnectParticipantRoleCustomer: + return @"CUSTOMER"; + case AWSConnectParticipantRoleSystem: + return @"SYSTEM"; + case AWSConnectParticipantRoleCustomBot: + return @"CUSTOM_BOT"; + default: + return nil; + } + }]; +} + +@end + @implementation AWSConnectTransferContactRequest + (BOOL)supportsSecureCoding { @@ -21490,6 +22691,30 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSConnectUntagContactRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"contactId" : @"ContactId", + @"instanceId" : @"InstanceId", + @"tagKeys" : @"TagKeys", + }; +} + +@end + +@implementation AWSConnectUntagContactResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + +@end + @implementation AWSConnectUntagResourceRequest + (BOOL)supportsSecureCoding { @@ -21546,6 +22771,24 @@ + (NSValueTransformer *)stateJSONTransformer { @end +@implementation AWSConnectUpdateCaseActionDefinition + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"fields" : @"Fields", + }; +} + ++ (NSValueTransformer *)fieldsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectFieldValue class]]; +} + +@end + @implementation AWSConnectUpdateContactAttributesRequest + (BOOL)supportsSecureCoding { @@ -21819,6 +23062,31 @@ + (BOOL)supportsSecureCoding { @end +@implementation AWSConnectUpdateContactRoutingDataRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"contactId" : @"ContactId", + @"instanceId" : @"InstanceId", + @"queuePriority" : @"QueuePriority", + @"queueTimeAdjustmentSeconds" : @"QueueTimeAdjustmentSeconds", + }; +} + +@end + +@implementation AWSConnectUpdateContactRoutingDataResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + +@end + @implementation AWSConnectUpdateContactScheduleRequest + (BOOL)supportsSecureCoding { @@ -22173,6 +23441,26 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSConnectUpdatePredefinedAttributeRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"name" : @"Name", + @"values" : @"Values", + }; +} + ++ (NSValueTransformer *)valuesJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSConnectPredefinedAttributeValues class]]; +} + +@end + @implementation AWSConnectUpdatePromptRequest + (BOOL)supportsSecureCoding { @@ -22784,6 +24072,26 @@ + (NSValueTransformer *)phoneConfigJSONTransformer { @end +@implementation AWSConnectUpdateUserProficienciesRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"instanceId" : @"InstanceId", + @"userId" : @"UserId", + @"userProficiencies" : @"UserProficiencies", + }; +} + ++ (NSValueTransformer *)userProficienciesJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSConnectUserProficiency class]]; +} + +@end + @implementation AWSConnectUpdateUserRoutingProfileRequest + (BOOL)supportsSecureCoding { @@ -23129,6 +24437,37 @@ + (NSValueTransformer *)phoneTypeJSONTransformer { @end +@implementation AWSConnectUserProficiency + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"attributeName" : @"AttributeName", + @"attributeValue" : @"AttributeValue", + @"level" : @"Level", + }; +} + +@end + +@implementation AWSConnectUserProficiencyDisassociate + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"attributeName" : @"AttributeName", + @"attributeValue" : @"AttributeValue", + }; +} + +@end + @implementation AWSConnectUserQuickConnectConfig + (BOOL)supportsSecureCoding { diff --git a/AWSConnect/AWSConnectResources.m b/AWSConnect/AWSConnectResources.m index ec16dd54d28..eb355fafca4 100644 --- a/AWSConnect/AWSConnectResources.m +++ b/AWSConnect/AWSConnectResources.m @@ -317,6 +317,22 @@ - (NSString *)definitionString { \"documentation\":\"

Associates an agent with a traffic distribution group.

\",\ \"idempotent\":true\ },\ + \"AssociateUserProficiencies\":{\ + \"name\":\"AssociateUserProficiencies\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/users/{InstanceId}/{UserId}/associate-proficiencies\"\ + },\ + \"input\":{\"shape\":\"AssociateUserProficienciesRequest\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

>Associates a set of proficiencies with a user.

\"\ + },\ \"BatchAssociateAnalyticsDataSet\":{\ \"name\":\"BatchAssociateAnalyticsDataSet\",\ \"http\":{\ @@ -574,6 +590,24 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Enables rehydration of chats for the lifespan of a contact. For more information about chat rehydration, see Enable persistent chat in the Amazon Connect Administrator Guide.

\"\ },\ + \"CreatePredefinedAttribute\":{\ + \"name\":\"CreatePredefinedAttribute\",\ + \"http\":{\ + \"method\":\"PUT\",\ + \"requestUri\":\"/predefined-attributes/{InstanceId}\"\ + },\ + \"input\":{\"shape\":\"CreatePredefinedAttributeRequest\"},\ + \"errors\":[\ + {\"shape\":\"DuplicateResourceException\"},\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"LimitExceededException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Creates a new predefined attribute for the specified Amazon Connect instance.

\"\ + },\ \"CreatePrompt\":{\ \"name\":\"CreatePrompt\",\ \"http\":{\ @@ -974,6 +1008,24 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Deletes an Amazon Web Services resource association from an Amazon Connect instance. The association must not have any use cases associated with it.

\"\ },\ + \"DeletePredefinedAttribute\":{\ + \"name\":\"DeletePredefinedAttribute\",\ + \"http\":{\ + \"method\":\"DELETE\",\ + \"requestUri\":\"/predefined-attributes/{InstanceId}/{Name}\"\ + },\ + \"input\":{\"shape\":\"DeletePredefinedAttributeRequest\"},\ + \"errors\":[\ + {\"shape\":\"ResourceInUseException\"},\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Deletes a predefined attribute from the specified Amazon Connect instance.

\",\ + \"idempotent\":true\ + },\ \"DeletePrompt\":{\ \"name\":\"DeletePrompt\",\ \"http\":{\ @@ -1397,6 +1449,23 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Gets details and status of a phone number that’s claimed to your Amazon Connect instance or traffic distribution group.

If the number is claimed to a traffic distribution group, and you are calling in the Amazon Web Services Region where the traffic distribution group was created, you can use either a phone number ARN or UUID value for the PhoneNumberId URI request parameter. However, if the number is claimed to a traffic distribution group and you are calling this API in the alternate Amazon Web Services Region associated with the traffic distribution group, you must provide a full phone number ARN. If a UUID is provided in this scenario, you will receive a ResourceNotFoundException.

\"\ },\ + \"DescribePredefinedAttribute\":{\ + \"name\":\"DescribePredefinedAttribute\",\ + \"http\":{\ + \"method\":\"GET\",\ + \"requestUri\":\"/predefined-attributes/{InstanceId}/{Name}\"\ + },\ + \"input\":{\"shape\":\"DescribePredefinedAttributeRequest\"},\ + \"output\":{\"shape\":\"DescribePredefinedAttributeResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Describes a predefined attribute for the specified Amazon Connect instance.

\"\ + },\ \"DescribePrompt\":{\ \"name\":\"DescribePrompt\",\ \"http\":{\ @@ -1798,6 +1867,22 @@ - (NSString *)definitionString { \"documentation\":\"

Disassociates an agent from a traffic distribution group.

\",\ \"idempotent\":true\ },\ + \"DisassociateUserProficiencies\":{\ + \"name\":\"DisassociateUserProficiencies\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/users/{InstanceId}/{UserId}/disassociate-proficiencies\"\ + },\ + \"input\":{\"shape\":\"DisassociateUserProficienciesRequest\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Disassociates a set of proficiencies from a user.

\"\ + },\ \"DismissUserContact\":{\ \"name\":\"DismissUserContact\",\ \"http\":{\ @@ -2354,6 +2439,23 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Lists phone numbers claimed to your Amazon Connect instance or traffic distribution group. If the provided TargetArn is a traffic distribution group, you can call this API in both Amazon Web Services Regions associated with traffic distribution group.

For more information about phone numbers, see Set Up Phone Numbers for Your Contact Center in the Amazon Connect Administrator Guide.

  • When given an instance ARN, ListPhoneNumbersV2 returns only the phone numbers claimed to the instance.

  • When given a traffic distribution group ARN ListPhoneNumbersV2 returns only the phone numbers claimed to the traffic distribution group.

\"\ },\ + \"ListPredefinedAttributes\":{\ + \"name\":\"ListPredefinedAttributes\",\ + \"http\":{\ + \"method\":\"GET\",\ + \"requestUri\":\"/predefined-attributes/{InstanceId}\"\ + },\ + \"input\":{\"shape\":\"ListPredefinedAttributesRequest\"},\ + \"output\":{\"shape\":\"ListPredefinedAttributesResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Lists predefined attributes for the specified Amazon Connect instance.

\"\ + },\ \"ListPrompts\":{\ \"name\":\"ListPrompts\",\ \"http\":{\ @@ -2659,6 +2761,23 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Provides summary information about the hierarchy groups for the specified Amazon Connect instance.

For more information about agent hierarchies, see Set Up Agent Hierarchies in the Amazon Connect Administrator Guide.

\"\ },\ + \"ListUserProficiencies\":{\ + \"name\":\"ListUserProficiencies\",\ + \"http\":{\ + \"method\":\"GET\",\ + \"requestUri\":\"/users/{InstanceId}/{UserId}/proficiencies\"\ + },\ + \"input\":{\"shape\":\"ListUserProficienciesRequest\"},\ + \"output\":{\"shape\":\"ListUserProficienciesResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Lists proficiencies associated with a user.

\"\ + },\ \"ListUsers\":{\ \"name\":\"ListUsers\",\ \"http\":{\ @@ -2731,6 +2850,26 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Initiates silent monitoring of a contact. The Contact Control Panel (CCP) of the user specified by userId will be set to silent monitoring mode on the contact.

\"\ },\ + \"PauseContact\":{\ + \"name\":\"PauseContact\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/contact/pause\"\ + },\ + \"input\":{\"shape\":\"PauseContactRequest\"},\ + \"output\":{\"shape\":\"PauseContactResponse\"},\ + \"errors\":[\ + {\"shape\":\"AccessDeniedException\"},\ + {\"shape\":\"InternalServiceException\"},\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"LimitExceededException\"},\ + {\"shape\":\"ConflictException\"}\ + ],\ + \"documentation\":\"

Allows pausing an ongoing task contact.

\"\ + },\ \"PutUserStatus\":{\ \"name\":\"PutUserStatus\",\ \"http\":{\ @@ -2787,6 +2926,25 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Replicates an Amazon Connect instance in the specified Amazon Web Services Region and copies configuration information for Amazon Connect resources across Amazon Web Services Regions.

For more information about replicating an Amazon Connect instance, see Create a replica of your existing Amazon Connect instance in the Amazon Connect Administrator Guide.

\"\ },\ + \"ResumeContact\":{\ + \"name\":\"ResumeContact\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/contact/resume\"\ + },\ + \"input\":{\"shape\":\"ResumeContactRequest\"},\ + \"output\":{\"shape\":\"ResumeContactResponse\"},\ + \"errors\":[\ + {\"shape\":\"AccessDeniedException\"},\ + {\"shape\":\"InternalServiceException\"},\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"ConflictException\"}\ + ],\ + \"documentation\":\"

Allows resuming a task contact in a paused state.

\"\ + },\ \"ResumeContactRecording\":{\ \"name\":\"ResumeContactRecording\",\ \"http\":{\ @@ -2818,6 +2976,23 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Searches for available phone numbers that you can claim to your Amazon Connect instance or traffic distribution group. If the provided TargetArn is a traffic distribution group, you can call this API in both Amazon Web Services Regions associated with the traffic distribution group.

\"\ },\ + \"SearchContacts\":{\ + \"name\":\"SearchContacts\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/search-contacts\"\ + },\ + \"input\":{\"shape\":\"SearchContactsRequest\"},\ + \"output\":{\"shape\":\"SearchContactsResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"InternalServiceException\"},\ + {\"shape\":\"ThrottlingException\"}\ + ],\ + \"documentation\":\"

Searches contacts in an Amazon Connect instance.

\"\ + },\ \"SearchHoursOfOperations\":{\ \"name\":\"SearchHoursOfOperations\",\ \"http\":{\ @@ -2835,6 +3010,23 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Searches the hours of operation in an Amazon Connect instance, with optional filtering.

\"\ },\ + \"SearchPredefinedAttributes\":{\ + \"name\":\"SearchPredefinedAttributes\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/search-predefined-attributes\"\ + },\ + \"input\":{\"shape\":\"SearchPredefinedAttributesRequest\"},\ + \"output\":{\"shape\":\"SearchPredefinedAttributesResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Predefined attributes that meet certain criteria.

\"\ + },\ \"SearchPrompts\":{\ \"name\":\"SearchPrompts\",\ \"http\":{\ @@ -3191,6 +3383,24 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

When a contact is being recorded, this API suspends recording whatever is selected in the flow configuration: call, screen, or both. If only call recording or only screen recording is enabled, then it would be suspended. For example, you might suspend the screen recording while collecting sensitive information, such as a credit card number. Then use ResumeContactRecording to restart recording the screen.

The period of time that the recording is suspended is filled with silence in the final recording.

Voice and screen recordings are supported.

\"\ },\ + \"TagContact\":{\ + \"name\":\"TagContact\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/contact/tags\"\ + },\ + \"input\":{\"shape\":\"TagContactRequest\"},\ + \"output\":{\"shape\":\"TagContactResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"InternalServiceException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ThrottlingException\"}\ + ],\ + \"documentation\":\"

Adds the specified tags to the contact resource. For more information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect usage.

\",\ + \"idempotent\":true\ + },\ \"TagResource\":{\ \"name\":\"TagResource\",\ \"http\":{\ @@ -3226,6 +3436,24 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Transfers contacts from one agent or queue to another agent or queue at any point after a contact is created. You can transfer a contact to another queue by providing the flow which orchestrates the contact to the destination queue. This gives you more control over contact handling and helps you adhere to the service level agreement (SLA) guaranteed to your customers.

Note the following requirements:

  • Transfer is supported for only TASK contacts.

  • Do not use both QueueId and UserId in the same call.

  • The following flow types are supported: Inbound flow, Transfer to agent flow, and Transfer to queue flow.

  • The TransferContact API can be called only on active contacts.

  • A contact cannot be transferred more than 11 times.

\"\ },\ + \"UntagContact\":{\ + \"name\":\"UntagContact\",\ + \"http\":{\ + \"method\":\"DELETE\",\ + \"requestUri\":\"/contact/tags/{InstanceId}/{ContactId}\"\ + },\ + \"input\":{\"shape\":\"UntagContactRequest\"},\ + \"output\":{\"shape\":\"UntagContactResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"InternalServiceException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ThrottlingException\"}\ + ],\ + \"documentation\":\"

Removes the specified tags from the contact resource. For more information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect usage.

\",\ + \"idempotent\":true\ + },\ \"UntagResource\":{\ \"name\":\"UntagResource\",\ \"http\":{\ @@ -3401,6 +3629,24 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

The name of the flow.

You can also create and update flows using the Amazon Connect Flow language.

\"\ },\ + \"UpdateContactRoutingData\":{\ + \"name\":\"UpdateContactRoutingData\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/contacts/{InstanceId}/{ContactId}/routing-data\"\ + },\ + \"input\":{\"shape\":\"UpdateContactRoutingDataRequest\"},\ + \"output\":{\"shape\":\"UpdateContactRoutingDataResponse\"},\ + \"errors\":[\ + {\"shape\":\"ResourceConflictException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"InternalServiceException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"AccessDeniedException\"}\ + ],\ + \"documentation\":\"

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

Updates routing priority and age on the contact (QueuePriority and QueueTimeAdjustmentInSeconds). These properties can be used to change a customer's position in the queue. For example, you can move a contact to the back of the queue by setting a lower routing priority relative to other contacts in queue; or you can move a contact to the front of the queue by increasing the routing age which will make the contact look artificially older and therefore higher up in the first-in-first-out routing order. Note that adjusting the routing age of a contact affects only its position in queue, and not its actual queue wait time as reported through metrics. These properties can also be updated by using the Set routing priority / age flow block.

\"\ + },\ \"UpdateContactSchedule\":{\ \"name\":\"UpdateContactSchedule\",\ \"http\":{\ @@ -3543,6 +3789,22 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Updates a phone number’s metadata.

To verify the status of a previous UpdatePhoneNumberMetadata operation, call the DescribePhoneNumber API.

\"\ },\ + \"UpdatePredefinedAttribute\":{\ + \"name\":\"UpdatePredefinedAttribute\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/predefined-attributes/{InstanceId}/{Name}\"\ + },\ + \"input\":{\"shape\":\"UpdatePredefinedAttributeRequest\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Updates a predefined attribute for the specified Amazon Connect instance.

\"\ + },\ \"UpdatePrompt\":{\ \"name\":\"UpdatePrompt\",\ \"http\":{\ @@ -3905,6 +4167,22 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Updates the phone configuration settings for the specified user.

\"\ },\ + \"UpdateUserProficiencies\":{\ + \"name\":\"UpdateUserProficiencies\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/users/{InstanceId}/{UserId}/proficiencies\"\ + },\ + \"input\":{\"shape\":\"UpdateUserProficienciesRequest\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"InvalidParameterException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"InternalServiceException\"}\ + ],\ + \"documentation\":\"

Updates the properties associated with the proficiencies of a user.

\"\ + },\ \"UpdateUserRoutingProfile\":{\ \"name\":\"UpdateUserRoutingProfile\",\ \"http\":{\ @@ -4010,7 +4288,10 @@ - (NSString *)definitionString { \"CREATE_TASK\",\ \"ASSIGN_CONTACT_CATEGORY\",\ \"GENERATE_EVENTBRIDGE_EVENT\",\ - \"SEND_NOTIFICATION\"\ + \"SEND_NOTIFICATION\",\ + \"CREATE_CASE\",\ + \"UPDATE_CASE\",\ + \"END_ASSOCIATED_TASKS\"\ ]\ },\ \"ActivateEvaluationFormRequest\":{\ @@ -4123,6 +4404,32 @@ - (NSString *)definitionString { \"max\":100,\ \"min\":1\ },\ + \"AgentHierarchyGroups\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"L1Ids\":{\ + \"shape\":\"HierarchyGroupIdList\",\ + \"documentation\":\"

The identifiers for level 1 hierarchy groups.

\"\ + },\ + \"L2Ids\":{\ + \"shape\":\"HierarchyGroupIdList\",\ + \"documentation\":\"

The identifiers for level 2 hierarchy groups.

\"\ + },\ + \"L3Ids\":{\ + \"shape\":\"HierarchyGroupIdList\",\ + \"documentation\":\"

The identifiers for level 3 hierarchy groups.

\"\ + },\ + \"L4Ids\":{\ + \"shape\":\"HierarchyGroupIdList\",\ + \"documentation\":\"

The identifiers for level 4 hierarchy groups.

\"\ + },\ + \"L5Ids\":{\ + \"shape\":\"HierarchyGroupIdList\",\ + \"documentation\":\"

The identifiers for level 5 hierarchy groups.

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

A structure that defines agent hierarchy group levels which can be used to filter search results. Important: Agent hierarchy group level information in search result is a snapshot, it does not represent current agent hierarchy who handled the contact.

\"\ + },\ \"AgentInfo\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -4133,6 +4440,10 @@ - (NSString *)definitionString { \"ConnectedToAgentTimestamp\":{\ \"shape\":\"timestamp\",\ \"documentation\":\"

The timestamp when the contact was connected to the agent.

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

Agent pause duration for a contact in seconds.

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

Information about the agent who accepted the contact.

\"\ @@ -4142,11 +4453,21 @@ - (NSString *)definitionString { \"max\":100,\ \"min\":1\ },\ + \"AgentPauseDurationInSeconds\":{\ + \"type\":\"integer\",\ + \"min\":0\ + },\ \"AgentResourceId\":{\ \"type\":\"string\",\ \"max\":256,\ \"min\":1\ },\ + \"AgentResourceIdList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"AgentResourceId\"},\ + \"max\":100,\ + \"min\":0\ + },\ \"AgentStatus\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -4180,7 +4501,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"LastModifiedTime\":{\ \"shape\":\"Timestamp\",\ @@ -4755,6 +5076,32 @@ - (NSString *)definitionString { \"members\":{\ }\ },\ + \"AssociateUserProficienciesRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"UserId\",\ + \"UserProficiencies\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN of the instance).

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

The identifier of the user account.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"UserId\"\ + },\ + \"UserProficiencies\":{\ + \"shape\":\"UserProficiencyList\",\ + \"documentation\":\"

The proficiencies to associate with the user.

\"\ + }\ + }\ + },\ \"AssociationId\":{\ \"type\":\"string\",\ \"max\":100,\ @@ -5052,6 +5399,10 @@ - (NSString *)definitionString { \"TASK\"\ ]\ },\ + \"ChannelList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"Channel\"}\ + },\ \"ChannelToCountMap\":{\ \"type\":\"map\",\ \"key\":{\"shape\":\"Channel\"},\ @@ -5171,7 +5522,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"ClientToken\":{\ \"shape\":\"ClientToken\",\ @@ -5230,7 +5581,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"PhoneNumberStatus\":{\ \"shape\":\"PhoneNumberStatus\",\ @@ -5261,6 +5612,15 @@ - (NSString *)definitionString { \"max\":10,\ \"min\":1\ },\ + \"ConflictException\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Message\":{\"shape\":\"Message\"}\ + },\ + \"documentation\":\"

Operation cannot be performed at this time as there is a conflict with another operation or contact state.

\",\ + \"error\":{\"httpStatusCode\":409},\ + \"exception\":true\ + },\ \"ConnectionData\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -5330,6 +5690,22 @@ - (NSString *)definitionString { \"shape\":\"timestamp\",\ \"documentation\":\"

The timestamp when contact was last updated.

\"\ },\ + \"LastPausedTimestamp\":{\ + \"shape\":\"timestamp\",\ + \"documentation\":\"

The timestamp when the contact was last paused.

\"\ + },\ + \"LastResumedTimestamp\":{\ + \"shape\":\"timestamp\",\ + \"documentation\":\"

The timestamp when the contact was last resumed.

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

Total pause count for a contact.

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

Total pause duration for a contact in seconds.

\"\ + },\ \"ScheduledTimestamp\":{\ \"shape\":\"timestamp\",\ \"documentation\":\"

The timestamp, in Unix epoch time format, at which to start running the inbound flow.

\"\ @@ -5341,10 +5717,32 @@ - (NSString *)definitionString { \"WisdomInfo\":{\ \"shape\":\"WisdomInfo\",\ \"documentation\":\"

Information about Amazon Connect Wisdom.

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

An integer that represents the queue time adjust to be applied to the contact, in seconds (longer / larger queue time are routed preferentially). Cannot be specified if the QueuePriority is specified. Must be statically defined and a valid integer value.

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

An integer that represents the queue priority to be applied to the contact (lower priorities are routed preferentially). Cannot be specified if the QueueTimeAdjustmentSeconds is specified. Must be statically defined, must be larger than zero, and a valid integer value. Default Value is 5.

\"\ + },\ + \"Tags\":{\ + \"shape\":\"ContactTagMap\",\ + \"documentation\":\"

Tags associated with the contact. This contains both Amazon Web Services generated and user-defined tags.

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

Contains information about a contact.

\"\ },\ + \"ContactAnalysis\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Transcript\":{\ + \"shape\":\"Transcript\",\ + \"documentation\":\"

A structure that defines filters can be used to search with text within an Amazon Connect Contact Lens analyzed transcript.

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

A structure that defines filters can be used to search within outputs analyzed by Amazon Connect Contact Lens in a contact.

\"\ + },\ \"ContactDataRequest\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -5424,7 +5822,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

Contains information about a flow.

\"\ @@ -5468,7 +5866,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

Contains information about a flow module.

\"\ @@ -5640,15 +6038,93 @@ - (NSString *)definitionString { \"key\":{\"shape\":\"ReferenceKey\"},\ \"value\":{\"shape\":\"Reference\"}\ },\ - \"ContactState\":{\ - \"type\":\"string\",\ - \"enum\":[\ - \"INCOMING\",\ - \"PENDING\",\ - \"CONNECTING\",\ - \"CONNECTED\",\ - \"CONNECTED_ONHOLD\",\ - \"MISSED\",\ + \"ContactSearchSummary\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Arn\":{\ + \"shape\":\"ARN\",\ + \"documentation\":\"

The Amazon Resource Name (ARN) of the contact

\"\ + },\ + \"Id\":{\ + \"shape\":\"ContactId\",\ + \"documentation\":\"

The identifier of the contact summary.

\"\ + },\ + \"InitialContactId\":{\ + \"shape\":\"ContactId\",\ + \"documentation\":\"

If this contact is related to other contacts, this is the ID of the initial contact.

\"\ + },\ + \"PreviousContactId\":{\ + \"shape\":\"ContactId\",\ + \"documentation\":\"

If this contact is not the first contact, this is the ID of the previous contact.

\"\ + },\ + \"InitiationMethod\":{\ + \"shape\":\"ContactInitiationMethod\",\ + \"documentation\":\"

Indicates how the contact was initiated.

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

How the contact reached your contact center.

\"\ + },\ + \"QueueInfo\":{\ + \"shape\":\"ContactSearchSummaryQueueInfo\",\ + \"documentation\":\"

If this contact was queued, this contains information about the queue.

\"\ + },\ + \"AgentInfo\":{\ + \"shape\":\"ContactSearchSummaryAgentInfo\",\ + \"documentation\":\"

Information about the agent who accepted the contact.

\"\ + },\ + \"InitiationTimestamp\":{\ + \"shape\":\"timestamp\",\ + \"documentation\":\"

The date and time this contact was initiated, in UTC time. For INBOUND, this is when the contact arrived. For OUTBOUND, this is when the agent began dialing. For CALLBACK, this is when the callback contact was created. For TRANSFER and QUEUE_TRANSFER, this is when the transfer was initiated. For API, this is when the request arrived. For EXTERNAL_OUTBOUND, this is when the agent started dialing the external participant. For MONITOR, this is when the supervisor started listening to a contact.

\"\ + },\ + \"DisconnectTimestamp\":{\ + \"shape\":\"timestamp\",\ + \"documentation\":\"

The timestamp when the customer endpoint disconnected from Amazon Connect.

\"\ + },\ + \"ScheduledTimestamp\":{\ + \"shape\":\"timestamp\",\ + \"documentation\":\"

The timestamp, in Unix epoch time format, at which to start running the inbound flow.

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

Information of returned contact.

\"\ + },\ + \"ContactSearchSummaryAgentInfo\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Id\":{\ + \"shape\":\"AgentResourceId\",\ + \"documentation\":\"

The identifier of the agent who accepted the contact.

\"\ + },\ + \"ConnectedToAgentTimestamp\":{\ + \"shape\":\"timestamp\",\ + \"documentation\":\"

The timestamp when the contact was connected to the agent.

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

Information about the agent who accepted the contact.

\"\ + },\ + \"ContactSearchSummaryQueueInfo\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Id\":{\ + \"shape\":\"QueueId\",\ + \"documentation\":\"

The unique identifier for the queue.

\"\ + },\ + \"EnqueueTimestamp\":{\ + \"shape\":\"timestamp\",\ + \"documentation\":\"

The timestamp when the contact was added to the queue.

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

If this contact was queued, this contains information about the queue.

\"\ + },\ + \"ContactState\":{\ + \"type\":\"string\",\ + \"enum\":[\ + \"INCOMING\",\ + \"PENDING\",\ + \"CONNECTING\",\ + \"CONNECTED\",\ + \"CONNECTED_ONHOLD\",\ + \"MISSED\",\ \"ERROR\",\ \"ENDED\",\ \"REJECTED\"\ @@ -5659,6 +6135,33 @@ - (NSString *)definitionString { \"member\":{\"shape\":\"ContactState\"},\ \"max\":9\ },\ + \"ContactTagKey\":{\ + \"type\":\"string\",\ + \"max\":128,\ + \"min\":1,\ + \"pattern\":\"^(?!aws:)[a-zA-Z+-=._:/]+$\"\ + },\ + \"ContactTagKeys\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"ContactTagKey\"},\ + \"max\":6,\ + \"min\":1\ + },\ + \"ContactTagMap\":{\ + \"type\":\"map\",\ + \"key\":{\"shape\":\"ContactTagKey\"},\ + \"value\":{\"shape\":\"ContactTagValue\"},\ + \"max\":6,\ + \"min\":1\ + },\ + \"ContactTagValue\":{\ + \"type\":\"string\",\ + \"max\":256\ + },\ + \"Contacts\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"ContactSearchSummary\"}\ + },\ \"Content\":{\ \"type\":\"string\",\ \"max\":1024,\ @@ -5720,7 +6223,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -5737,6 +6240,24 @@ - (NSString *)definitionString { }\ }\ },\ + \"CreateCaseActionDefinition\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"Fields\",\ + \"TemplateId\"\ + ],\ + \"members\":{\ + \"Fields\":{\ + \"shape\":\"FieldValues\",\ + \"documentation\":\"

An array of objects with Field ID and Value data.

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

A unique identifier of a template.

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

The CreateCase action definition.

\"\ + },\ \"CreateContactFlowModuleRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -5765,7 +6286,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"ClientToken\":{\ \"shape\":\"ClientToken\",\ @@ -5820,7 +6341,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -5924,7 +6445,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -6028,7 +6549,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -6129,6 +6650,30 @@ - (NSString *)definitionString { }\ }\ },\ + \"CreatePredefinedAttributeRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"Name\",\ + \"Values\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The name of the predefined attribute.

\"\ + },\ + \"Values\":{\ + \"shape\":\"PredefinedAttributeValues\",\ + \"documentation\":\"

The values of the predefined attribute.

\"\ + }\ + }\ + },\ \"CreatePromptRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -6157,7 +6702,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -6215,7 +6760,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -6260,7 +6805,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -6315,7 +6860,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"AgentAvailabilityTimer\":{\ \"shape\":\"AgentAvailabilityTimer\",\ @@ -6430,7 +6975,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"AllowedAccessControlTags\":{\ \"shape\":\"AllowedAccessControlTags\",\ @@ -6551,7 +7096,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -6594,7 +7139,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -6634,7 +7179,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -6701,7 +7246,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -6840,7 +7385,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -7253,6 +7798,27 @@ - (NSString *)definitionString { }\ }\ },\ + \"DeletePredefinedAttributeRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"Name\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The name of the predefined attribute.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"Name\"\ + }\ + }\ + },\ \"DeletePromptRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -7929,6 +8495,36 @@ - (NSString *)definitionString { }\ }\ },\ + \"DescribePredefinedAttributeRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"Name\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The name of the predefined attribute.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"Name\"\ + }\ + }\ + },\ + \"DescribePredefinedAttributeResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"PredefinedAttribute\":{\ + \"shape\":\"PredefinedAttribute\",\ + \"documentation\":\"

Information about the predefined attribute.

\"\ + }\ + }\ + },\ \"DescribePromptRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -8312,7 +8908,11 @@ - (NSString *)definitionString { \"shape\":\"Channel\",\ \"documentation\":\"

The channel used for grouping and filters.

\"\ },\ - \"RoutingProfile\":{\"shape\":\"RoutingProfileReference\"}\ + \"RoutingProfile\":{\"shape\":\"RoutingProfileReference\"},\ + \"RoutingStepExpression\":{\ + \"shape\":\"RoutingExpression\",\ + \"documentation\":\"

The expression of a step in a routing criteria.

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

Contains information about the dimensions for a set of metrics.

\"\ },\ @@ -8643,6 +9243,32 @@ - (NSString *)definitionString { \"members\":{\ }\ },\ + \"DisassociateUserProficienciesRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"UserId\",\ + \"UserProficiencies\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the user account.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"UserId\"\ + },\ + \"UserProficiencies\":{\ + \"shape\":\"UserProficiencyDisassociateList\",\ + \"documentation\":\"

The proficiencies to disassociate from the user.

\"\ + }\ + }\ + },\ \"DisconnectReason\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -8712,6 +9338,7 @@ - (NSString *)definitionString { \"type\":\"list\",\ \"member\":{\"shape\":\"Distribution\"}\ },\ + \"Double\":{\"type\":\"double\"},\ \"DuplicateResourceException\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -8736,6 +9363,12 @@ - (NSString *)definitionString { },\ \"documentation\":\"

Information about a reference when the referenceType is EMAIL. Otherwise, null.

\"\ },\ + \"EmptyFieldValue\":{\ + \"type\":\"structure\",\ + \"members\":{\ + },\ + \"documentation\":\"

An empty value.

\"\ + },\ \"EncryptionConfig\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -8758,6 +9391,12 @@ - (NSString *)definitionString { \"type\":\"string\",\ \"enum\":[\"KMS\"]\ },\ + \"EndAssociatedTasksActionDefinition\":{\ + \"type\":\"structure\",\ + \"members\":{\ + },\ + \"documentation\":\"

End associated tasks related to a case.

\"\ + },\ \"Endpoint\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -8854,7 +9493,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

Information about a contact evaluation.

\"\ @@ -8990,7 +9629,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

Information about the evaluation form.

\"\ @@ -9677,7 +10316,9 @@ - (NSString *)definitionString { \"OnZendeskTicketStatusUpdate\",\ \"OnSalesforceCaseCreate\",\ \"OnContactEvaluationSubmit\",\ - \"OnMetricDataUpdate\"\ + \"OnMetricDataUpdate\",\ + \"OnCaseCreate\",\ + \"OnCaseUpdate\"\ ]\ },\ \"FailedRequest\":{\ @@ -9717,6 +10358,60 @@ - (NSString *)definitionString { \"INTERNAL_ERROR\"\ ]\ },\ + \"FieldStringValue\":{\ + \"type\":\"string\",\ + \"max\":500,\ + \"min\":0\ + },\ + \"FieldValue\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"Id\",\ + \"Value\"\ + ],\ + \"members\":{\ + \"Id\":{\ + \"shape\":\"FieldValueId\",\ + \"documentation\":\"

Unique identifier of a field.

\"\ + },\ + \"Value\":{\ + \"shape\":\"FieldValueUnion\",\ + \"documentation\":\"

Union of potential field value types.

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

Object for case field values.

\"\ + },\ + \"FieldValueId\":{\ + \"type\":\"string\",\ + \"max\":500,\ + \"min\":1\ + },\ + \"FieldValueUnion\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"BooleanValue\":{\ + \"shape\":\"Boolean\",\ + \"documentation\":\"

A Boolean number value type.

\"\ + },\ + \"DoubleValue\":{\ + \"shape\":\"Double\",\ + \"documentation\":\"

a Double number value type.

\"\ + },\ + \"EmptyValue\":{\ + \"shape\":\"EmptyFieldValue\",\ + \"documentation\":\"

An empty value.

\"\ + },\ + \"StringValue\":{\ + \"shape\":\"FieldStringValue\",\ + \"documentation\":\"

String value type.

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

Object to store union of Field values.

\"\ + },\ + \"FieldValues\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"FieldValue\"}\ + },\ \"FilterV2\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -9751,6 +10446,10 @@ - (NSString *)definitionString { \"RoutingProfiles\":{\ \"shape\":\"RoutingProfiles\",\ \"documentation\":\"

A list of up to 100 routing profile IDs or ARNs.

\"\ + },\ + \"RoutingStepExpressions\":{\ + \"shape\":\"RoutingExpressions\",\ + \"documentation\":\"

A list of expressions as a filter, in which an expression is an object of a step in a routing criteria.

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

Contains the filter to apply when retrieving metrics.

\"\ @@ -10107,7 +10806,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.

ABANDONMENT_RATE

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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_ANSWER_RATE

Unit: Percent

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

AGENT_NON_ADHERENT_TIME

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, Feature, contact/segmentAttributes/connect:Subtype

AVG_AFTER_CONTACT_WORK_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_HANDLE_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_HOLDS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_INTERACTION_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_QUEUE_ANSWER_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

Feature is a valid filter but not a valid grouping.

AVG_RESOLUTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_ABANDONED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

CONTACTS_CREATED

Unit: Count

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_ON_HOLD_AGENT_DISCONNECT

Unit: Count

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

CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT

Unit: Count

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

CONTACTS_PUT_ON_HOLD

Unit: Count

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

CONTACTS_TRANSFERRED_OUT_EXTERNAL

Unit: Count

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

CONTACTS_TRANSFERRED_OUT_INTERNAL

Unit: Percent

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, contact/segmentAttributes/connect:Subtype

CONTACTS_RESOLVED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

MAX_QUEUED_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_NON_TALK_TIME

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME_AGENT

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME_CUSTOMER

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

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_AFTER_CONTACT_WORK_TIME

Unit: Seconds

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

SUM_CONNECTING_TIME_AGENT

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. This metric only supports the following filter keys 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.

SUM_CONTACT_FLOW_TIME

Unit: Seconds

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

SUM_CONTACT_TIME_AGENT

Unit: Seconds

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

SUM_CONTACTS_ANSWERED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

SUM_ERROR_STATUS_TIME_AGENT

Unit: Seconds

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

SUM_HANDLE_TIME

Unit: Seconds

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

SUM_HOLD_TIME

Unit: Count

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

SUM_IDLE_TIME_AGENT

Unit: Seconds

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

SUM_INTERACTION_AND_HOLD_TIME

Unit: Seconds

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

SUM_INTERACTION_TIME

Unit: Seconds

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

SUM_NON_PRODUCTIVE_TIME_AGENT

Unit: Seconds

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

SUM_ONLINE_TIME_AGENT

Unit: Seconds

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

SUM_RETRY_CALLBACK_ATTEMPTS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

\"\ + \"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, Feature, contact/segmentAttributes/connect:Subtype

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_ANSWER_RATE

Unit: Percent

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

AGENT_NON_ADHERENT_TIME

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, Feature, contact/segmentAttributes/connect:Subtype

AVG_ACTIVE_TIME

Unit: Seconds

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

AVG_AFTER_CONTACT_WORK_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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_AGENT_PAUSE_TIME

Unit: Seconds

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, contact/segmentAttributes/connect:Subtype

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, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_HANDLE_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_HOLDS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_INTERACTION_TIME

Unit: Seconds

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

AVG_QUEUE_ANSWER_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

Feature is a valid filter but not a valid grouping.

AVG_RESOLUTION_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_ABANDONED

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

CONTACTS_CREATED

Unit: Count

Valid metric filter key: INITIATION_METHOD

Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_ON_HOLD_AGENT_DISCONNECT

Unit: Count

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

CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT

Unit: Count

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

CONTACTS_PUT_ON_HOLD

Unit: Count

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

CONTACTS_TRANSFERRED_OUT_EXTERNAL

Unit: Count

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

CONTACTS_TRANSFERRED_OUT_INTERNAL

Unit: Percent

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, contact/segmentAttributes/connect:Subtype

CONTACTS_RESOLVED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

MAX_QUEUED_TIME

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_NON_TALK_TIME

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME_AGENT

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

PERCENT_TALK_TIME_CUSTOMER

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

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

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_AFTER_CONTACT_WORK_TIME

Unit: Seconds

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

SUM_CONNECTING_TIME_AGENT

Unit: Seconds

Valid metric filter key: INITIATION_METHOD. This metric only supports the following filter keys 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.

SUM_CONTACT_FLOW_TIME

Unit: Seconds

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

SUM_CONTACT_TIME_AGENT

Unit: Seconds

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

SUM_CONTACTS_ANSWERED_IN_X

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

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, contact/segmentAttributes/connect:Subtype

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, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

SUM_ERROR_STATUS_TIME_AGENT

Unit: Seconds

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

SUM_HANDLE_TIME

Unit: Seconds

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

SUM_HOLD_TIME

Unit: Count

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

SUM_IDLE_TIME_AGENT

Unit: Seconds

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

SUM_INTERACTION_AND_HOLD_TIME

Unit: Seconds

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

SUM_INTERACTION_TIME

Unit: Seconds

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

SUM_NON_PRODUCTIVE_TIME_AGENT

Unit: Seconds

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

SUM_ONLINE_TIME_AGENT

Unit: Seconds

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

SUM_RETRY_CALLBACK_ATTEMPTS

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype

\"\ },\ \"NextToken\":{\ \"shape\":\"NextToken2500\",\ @@ -10256,7 +10955,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -10302,7 +11001,8 @@ - (NSString *)definitionString { \"enum\":[\ \"QUEUE\",\ \"CHANNEL\",\ - \"ROUTING_PROFILE\"\ + \"ROUTING_PROFILE\",\ + \"ROUTING_STEP_EXPRESSION\"\ ]\ },\ \"GroupingV2\":{\"type\":\"string\"},\ @@ -10341,7 +11041,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"LastModifiedTime\":{\ \"shape\":\"Timestamp\",\ @@ -10369,6 +11069,12 @@ - (NSString *)definitionString { \"documentation\":\"

A leaf node condition which can be used to specify a hierarchy group condition.

\"\ },\ \"HierarchyGroupId\":{\"type\":\"string\"},\ + \"HierarchyGroupIdList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"HierarchyGroupId\"},\ + \"max\":10,\ + \"min\":0\ + },\ \"HierarchyGroupMatchType\":{\ \"type\":\"string\",\ \"enum\":[\ @@ -10698,7 +11404,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"LastModifiedTime\":{\ \"shape\":\"Timestamp\",\ @@ -10873,7 +11579,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"ClientToken\":{\ \"shape\":\"ClientToken\",\ @@ -10896,6 +11602,10 @@ - (NSString *)definitionString { }\ },\ \"InboundCallsEnabled\":{\"type\":\"boolean\"},\ + \"InitiationMethodList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"ContactInitiationMethod\"}\ + },\ \"Instance\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -12335,6 +13045,44 @@ - (NSString *)definitionString { }\ }\ },\ + \"ListPredefinedAttributesRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\"InstanceId\"],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

The maximum number of results to return per page.

\",\ + \"box\":true,\ + \"location\":\"querystring\",\ + \"locationName\":\"maxResults\"\ + }\ + }\ + },\ + \"ListPredefinedAttributesResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"NextToken\":{\ + \"shape\":\"NextToken\",\ + \"documentation\":\"

If there are additional results, this is the token for the next set of results.

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

Summary of the predefined attributes.

\"\ + }\ + }\ + },\ \"ListPromptsRequest\":{\ \"type\":\"structure\",\ \"required\":[\"InstanceId\"],\ @@ -13140,7 +13888,62 @@ - (NSString *)definitionString { }\ }\ },\ - \"ListUsersRequest\":{\ + \"ListUserProficienciesRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"UserId\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the user account.

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

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

The maximum number of results to return per page.

\",\ + \"box\":true,\ + \"location\":\"querystring\",\ + \"locationName\":\"maxResults\"\ + }\ + }\ + },\ + \"ListUserProficienciesResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"NextToken\":{\ + \"shape\":\"NextToken\",\ + \"documentation\":\"

If there are additional results, this is the token for the next set of results.

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

Information about the user proficiencies.

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

The last time that the user's proficiencies are were modified.

\"\ + },\ + \"LastModifiedRegion\":{\ + \"shape\":\"RegionName\",\ + \"documentation\":\"

The region in which a user's proficiencies were last modified.

\"\ + }\ + }\ + },\ + \"ListUsersRequest\":{\ \"type\":\"structure\",\ \"required\":[\"InstanceId\"],\ \"members\":{\ @@ -13632,7 +14435,7 @@ - (NSString *)definitionString { \"members\":{\ \"UserTags\":{\ \"shape\":\"UserTagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }. Amazon Connect users with the specified tags will be notified.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }. Amazon Connect users with the specified tags will be notified.

\"\ },\ \"UserIds\":{\ \"shape\":\"UserIdList\",\ @@ -13869,6 +14672,32 @@ - (NSString *)definitionString { \"type\":\"string\",\ \"pattern\":\"/^(?=.*[a-z])(?=.*[A-Z])(?=.*\\\\d)[a-zA-Z\\\\d\\\\S]{8,64}$/\"\ },\ + \"PauseContactRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"ContactId\",\ + \"InstanceId\"\ + ],\ + \"members\":{\ + \"ContactId\":{\ + \"shape\":\"ContactId\",\ + \"documentation\":\"

The identifier of the contact.

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

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

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

The identifier of the flow.

\"\ + }\ + }\ + },\ + \"PauseContactResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + }\ + },\ \"Percentage\":{\ \"type\":\"integer\",\ \"max\":100,\ @@ -14253,6 +15082,100 @@ - (NSString *)definitionString { \"DESK_PHONE\"\ ]\ },\ + \"PredefinedAttribute\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Name\":{\ + \"shape\":\"PredefinedAttributeName\",\ + \"documentation\":\"

The name of the predefined attribute.

\"\ + },\ + \"Values\":{\ + \"shape\":\"PredefinedAttributeValues\",\ + \"documentation\":\"

The values of the predefined attribute.

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

Last modified time.

\"\ + },\ + \"LastModifiedRegion\":{\ + \"shape\":\"RegionName\",\ + \"documentation\":\"

Last modified region.

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

Information about a predefined attribute.

\"\ + },\ + \"PredefinedAttributeName\":{\ + \"type\":\"string\",\ + \"max\":128,\ + \"min\":1\ + },\ + \"PredefinedAttributeSearchConditionList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"PredefinedAttributeSearchCriteria\"}\ + },\ + \"PredefinedAttributeSearchCriteria\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"OrConditions\":{\ + \"shape\":\"PredefinedAttributeSearchConditionList\",\ + \"documentation\":\"

A list of conditions which would be applied together with an OR condition.

\"\ + },\ + \"AndConditions\":{\ + \"shape\":\"PredefinedAttributeSearchConditionList\",\ + \"documentation\":\"

A list of conditions which would be applied together with an AND condition.

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

The search criteria to be used to return predefined attributes.

\"\ + },\ + \"PredefinedAttributeSearchSummaryList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"PredefinedAttribute\"}\ + },\ + \"PredefinedAttributeStringValue\":{\ + \"type\":\"string\",\ + \"max\":128,\ + \"min\":1\ + },\ + \"PredefinedAttributeStringValuesList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"PredefinedAttributeStringValue\"},\ + \"max\":75,\ + \"min\":1\ + },\ + \"PredefinedAttributeSummary\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Name\":{\ + \"shape\":\"PredefinedAttributeName\",\ + \"documentation\":\"

The name of the predefined attribute.

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

Last modified time.

\"\ + },\ + \"LastModifiedRegion\":{\ + \"shape\":\"RegionName\",\ + \"documentation\":\"

Last modified region.

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

Summary of a predefined attribute.

\"\ + },\ + \"PredefinedAttributeSummaryList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"PredefinedAttributeSummary\"}\ + },\ + \"PredefinedAttributeValues\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"StringList\":{\ + \"shape\":\"PredefinedAttributeStringValuesList\",\ + \"documentation\":\"

Predefined attribute values of type string list.

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

Information about values of a predefined attribute.

\",\ + \"union\":true\ + },\ \"Prefix\":{\ \"type\":\"string\",\ \"max\":128,\ @@ -14284,6 +15207,12 @@ - (NSString *)definitionString { \"max\":50,\ \"min\":1\ },\ + \"ProficiencyLevel\":{\ + \"type\":\"float\",\ + \"box\":true,\ + \"max\":5.0,\ + \"min\":1.0\ + },\ \"Prompt\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -14305,7 +15234,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"LastModifiedTime\":{\ \"shape\":\"Timestamp\",\ @@ -14519,7 +15448,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"LastModifiedTime\":{\ \"shape\":\"Timestamp\",\ @@ -14538,6 +15467,12 @@ - (NSString *)definitionString { \"min\":1\ },\ \"QueueId\":{\"type\":\"string\"},\ + \"QueueIdList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"QueueId\"},\ + \"max\":100,\ + \"min\":0\ + },\ \"QueueInfo\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -14561,6 +15496,11 @@ - (NSString *)definitionString { \"max\":256,\ \"min\":1\ },\ + \"QueuePriority\":{\ + \"type\":\"long\",\ + \"max\":9223372036854775807,\ + \"min\":1\ + },\ \"QueueQuickConnectConfig\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -14671,6 +15611,7 @@ - (NSString *)definitionString { \"type\":\"list\",\ \"member\":{\"shape\":\"QueueSummary\"}\ },\ + \"QueueTimeAdjustmentSeconds\":{\"type\":\"integer\"},\ \"QueueType\":{\ \"type\":\"string\",\ \"enum\":[\ @@ -14714,7 +15655,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"LastModifiedTime\":{\ \"shape\":\"Timestamp\",\ @@ -15557,6 +16498,42 @@ - (NSString *)definitionString { \"members\":{\ }\ },\ + \"ResumeContactRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"ContactId\",\ + \"InstanceId\"\ + ],\ + \"members\":{\ + \"ContactId\":{\ + \"shape\":\"ContactId\",\ + \"documentation\":\"

The identifier of the contact.

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

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

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

The identifier of the flow.

\"\ + }\ + }\ + },\ + \"ResumeContactResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + }\ + },\ + \"RoutingExpression\":{\ + \"type\":\"string\",\ + \"max\":3000,\ + \"min\":1\ + },\ + \"RoutingExpressions\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"RoutingExpression\"},\ + \"max\":50\ + },\ \"RoutingProfile\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -15590,7 +16567,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"NumberOfAssociatedQueues\":{\ \"shape\":\"Long\",\ @@ -15865,7 +16842,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

Information about a rule.

\"\ @@ -15893,6 +16870,18 @@ - (NSString *)definitionString { \"SendNotificationAction\":{\ \"shape\":\"SendNotificationActionDefinition\",\ \"documentation\":\"

Information about the send notification action.

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

\"\ + },\ + \"CreateCaseAction\":{\ + \"shape\":\"CreateCaseActionDefinition\",\ + \"documentation\":\"

Information about the create case action.

Supported only for TriggerEventSource values: OnPostCallAnalysisAvailable | OnPostChatAnalysisAvailable.

\"\ + },\ + \"UpdateCaseAction\":{\ + \"shape\":\"UpdateCaseActionDefinition\",\ + \"documentation\":\"

Information about the update case action.

Supported only for TriggerEventSource values: OnCaseCreate | OnCaseUpdate.

\"\ + },\ + \"EndAssociatedTasksAction\":{\ + \"shape\":\"EndAssociatedTasksActionDefinition\",\ + \"documentation\":\"

Information about the end associated tasks action.

Supported only for TriggerEventSource values: OnCaseUpdate.

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

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

\"\ @@ -16066,6 +17055,131 @@ - (NSString *)definitionString { }\ }\ },\ + \"SearchContactsMatchType\":{\ + \"type\":\"string\",\ + \"enum\":[\ + \"MATCH_ALL\",\ + \"MATCH_ANY\"\ + ]\ + },\ + \"SearchContactsRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"TimeRange\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance

\"\ + },\ + \"TimeRange\":{\ + \"shape\":\"SearchContactsTimeRange\",\ + \"documentation\":\"

Time range that you want to search results

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

The search criteria to be used to return contacts.

\"\ + },\ + \"MaxResults\":{\ + \"shape\":\"MaxResult100\",\ + \"documentation\":\"

The maximum number of results to return per page.

\",\ + \"box\":true\ + },\ + \"NextToken\":{\ + \"shape\":\"LargeNextToken\",\ + \"documentation\":\"

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

Specifies a field to sort by and a sort order

\"\ + }\ + }\ + },\ + \"SearchContactsResponse\":{\ + \"type\":\"structure\",\ + \"required\":[\"Contacts\"],\ + \"members\":{\ + \"Contacts\":{\ + \"shape\":\"Contacts\",\ + \"documentation\":\"

Information about the contacts.

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

If there are additional results, this is the token for the next set of results.

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

The total number of contacts which matched your search query.

\"\ + }\ + }\ + },\ + \"SearchContactsTimeRange\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"Type\",\ + \"StartTime\",\ + \"EndTime\"\ + ],\ + \"members\":{\ + \"Type\":{\ + \"shape\":\"SearchContactsTimeRangeType\",\ + \"documentation\":\"

The type of timestamp to search

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

The start time of the time range.

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

The end time of the time range.

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

A structure of time range that you want to search results

\"\ + },\ + \"SearchContactsTimeRangeType\":{\ + \"type\":\"string\",\ + \"enum\":[\ + \"INITIATION_TIMESTAMP\",\ + \"SCHEDULED_TIMESTAMP\",\ + \"CONNECTED_TO_AGENT_TIMESTAMP\",\ + \"DISCONNECT_TIMESTAMP\"\ + ]\ + },\ + \"SearchCriteria\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"AgentIds\":{\ + \"shape\":\"AgentResourceIdList\",\ + \"documentation\":\"

The array of agent ids

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

The agent hierarchy groups

\"\ + },\ + \"Channels\":{\ + \"shape\":\"ChannelList\",\ + \"documentation\":\"

The array of channels

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

The ContactAnalysis object used in search criteria

\"\ + },\ + \"InitiationMethods\":{\ + \"shape\":\"InitiationMethodList\",\ + \"documentation\":\"

The array of initiaton methods

\"\ + },\ + \"QueueIds\":{\ + \"shape\":\"QueueIdList\",\ + \"documentation\":\"

The array of queue ids.

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

The SearchableContactAttributes object used in search criteria

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

A structure of search criteria to be used to return contacts

\"\ + },\ \"SearchHoursOfOperationsRequest\":{\ \"type\":\"structure\",\ \"required\":[\"InstanceId\"],\ @@ -16110,6 +17224,46 @@ - (NSString *)definitionString { }\ }\ },\ + \"SearchPredefinedAttributesRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\"InstanceId\"],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

\"\ + },\ + \"MaxResults\":{\ + \"shape\":\"MaxResult100\",\ + \"documentation\":\"

The maximum number of results to return per page.

\",\ + \"box\":true\ + },\ + \"SearchCriteria\":{\ + \"shape\":\"PredefinedAttributeSearchCriteria\",\ + \"documentation\":\"

The search criteria to be used to return predefined attributes.

\"\ + }\ + }\ + },\ + \"SearchPredefinedAttributesResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"PredefinedAttributes\":{\ + \"shape\":\"PredefinedAttributeSearchSummaryList\",\ + \"documentation\":\"

Predefined attributes matched by the search criteria.

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

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

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

The approximate number of predefined attributes which matched your search query.

\"\ + }\ + }\ + },\ \"SearchPromptsRequest\":{\ \"type\":\"structure\",\ \"required\":[\"InstanceId\"],\ @@ -16370,6 +17524,17 @@ - (NSString *)definitionString { }\ }\ },\ + \"SearchText\":{\ + \"type\":\"string\",\ + \"max\":128,\ + \"sensitive\":true\ + },\ + \"SearchTextList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"SearchText\"},\ + \"max\":100,\ + \"min\":0\ + },\ \"SearchUsersRequest\":{\ \"type\":\"structure\",\ \"required\":[\"InstanceId\"],\ @@ -16456,6 +17621,63 @@ - (NSString *)definitionString { }\ }\ },\ + \"SearchableContactAttributeKey\":{\ + \"type\":\"string\",\ + \"max\":100,\ + \"min\":0,\ + \"sensitive\":true\ + },\ + \"SearchableContactAttributeValue\":{\ + \"type\":\"string\",\ + \"max\":100,\ + \"min\":0,\ + \"sensitive\":true\ + },\ + \"SearchableContactAttributeValueList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"SearchableContactAttributeValue\"},\ + \"max\":20,\ + \"min\":0\ + },\ + \"SearchableContactAttributes\":{\ + \"type\":\"structure\",\ + \"required\":[\"Criteria\"],\ + \"members\":{\ + \"Criteria\":{\ + \"shape\":\"SearchableContactAttributesCriteriaList\",\ + \"documentation\":\"

The array of searhale contact attribute criteria

\"\ + },\ + \"MatchType\":{\ + \"shape\":\"SearchContactsMatchType\",\ + \"documentation\":\"

The match type of multiple searchable contact attributes criteria.

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

A structure that defines searchable contact attributes which can be used to filter search results.

\"\ + },\ + \"SearchableContactAttributesCriteria\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"Key\",\ + \"Values\"\ + ],\ + \"members\":{\ + \"Key\":{\ + \"shape\":\"SearchableContactAttributeKey\",\ + \"documentation\":\"

The searchable contact attribute key

\"\ + },\ + \"Values\":{\ + \"shape\":\"SearchableContactAttributeValueList\",\ + \"documentation\":\"

The array of contact attribute values used to filter search results.

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

The criteria of searchable contact attributes.

\"\ + },\ + \"SearchableContactAttributesCriteriaList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"SearchableContactAttributesCriteria\"},\ + \"max\":15,\ + \"min\":0\ + },\ \"SearchableQueueType\":{\ \"type\":\"string\",\ \"enum\":[\"STANDARD\"]\ @@ -16507,7 +17729,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"AllowedAccessControlTags\":{\ \"shape\":\"AllowedAccessControlTags\",\ @@ -16598,7 +17820,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

Information about the returned security profiles.

\"\ @@ -16830,6 +18052,24 @@ - (NSString *)definitionString { \"min\":1\ },\ \"SnapshotVersion\":{\"type\":\"string\"},\ + \"Sort\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"FieldName\",\ + \"Order\"\ + ],\ + \"members\":{\ + \"FieldName\":{\ + \"shape\":\"SortableFieldName\",\ + \"documentation\":\"

The name of the field on which to sort.

\"\ + },\ + \"Order\":{\ + \"shape\":\"SortOrder\",\ + \"documentation\":\"

An ascending or descending sort.

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

A structure that defines the sort by and a sort order

\"\ + },\ \"SortOrder\":{\ \"type\":\"string\",\ \"enum\":[\ @@ -16837,6 +18077,17 @@ - (NSString *)definitionString { \"DESCENDING\"\ ]\ },\ + \"SortableFieldName\":{\ + \"type\":\"string\",\ + \"enum\":[\ + \"INITIATION_TIMESTAMP\",\ + \"SCHEDULED_TIMESTAMP\",\ + \"CONNECTED_TO_AGENT_TIMESTAMP\",\ + \"DISCONNECT_TIMESTAMP\",\ + \"INITIATION_METHOD\",\ + \"CHANNEL\"\ + ]\ + },\ \"SourceApplicationName\":{\ \"type\":\"string\",\ \"max\":100,\ @@ -16852,7 +18103,8 @@ - (NSString *)definitionString { \"type\":\"string\",\ \"enum\":[\ \"SALESFORCE\",\ - \"ZENDESK\"\ + \"ZENDESK\",\ + \"CASES\"\ ]\ },\ \"StartChatContactRequest\":{\ @@ -17055,6 +18307,22 @@ - (NSString *)definitionString { \"InstanceId\"\ ],\ \"members\":{\ + \"Name\":{\ + \"shape\":\"Name\",\ + \"documentation\":\"

The name of a voice contact that is shown to an agent in the Contact Control Panel (CCP).

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

A description of the voice contact that is shown to an agent in the Contact Control Panel (CCP).

\"\ + },\ + \"References\":{\ + \"shape\":\"ContactReferences\",\ + \"documentation\":\"

A formatted URL that is shown to an agent in the Contact Control Panel (CCP). Contacts can have the following reference types at the time of creation: URL | NUMBER | STRING | DATE | EMAIL. ATTACHMENT is not a supported reference type during voice contact creation.

\"\ + },\ + \"RelatedContactId\":{\ + \"shape\":\"ContactId\",\ + \"documentation\":\"

The contactId that is related to this contact. Linking voice, task, or chat by using RelatedContactID copies over contact attributes from the related contact to the new contact. All updates to user-defined attributes in the new contact are limited to the individual contact ID. There are no limits to the number of contacts that can be linked by using RelatedContactId.

\"\ + },\ \"DestinationPhoneNumber\":{\ \"shape\":\"PhoneNumber\",\ \"documentation\":\"

The phone number of the customer, in E.164 format.

\"\ @@ -17366,7 +18634,7 @@ - (NSString *)definitionString { \"documentation\":\"

The type of comparison to be made when evaluating the string condition.

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

A leaf node condition which can be used to specify a string condition.

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

A leaf node condition which can be used to specify a string condition.

The currently supported values for FieldName are name and description.

\"\ },\ \"StringReference\":{\ \"type\":\"structure\",\ @@ -17510,6 +18778,33 @@ - (NSString *)definitionString { },\ \"documentation\":\"

A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123.

\"\ },\ + \"TagContactRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"ContactId\",\ + \"InstanceId\",\ + \"Tags\"\ + ],\ + \"members\":{\ + \"ContactId\":{\ + \"shape\":\"ContactId\",\ + \"documentation\":\"

The identifier of the contact in this instance of Amazon Connect.

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

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

\"\ + },\ + \"Tags\":{\ + \"shape\":\"ContactTagMap\",\ + \"documentation\":\"

The tags to be assigned to the contact resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

Authorization is not supported by this tag.

\"\ + }\ + }\ + },\ + \"TagContactResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + }\ + },\ \"TagKey\":{\ \"type\":\"string\",\ \"max\":128,\ @@ -17552,7 +18847,7 @@ - (NSString *)definitionString { },\ \"tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ }\ }\ },\ @@ -17846,6 +19141,11 @@ - (NSString *)definitionString { },\ \"documentation\":\"

The distribution of traffic between the instance and its replicas.

\"\ },\ + \"TemplateId\":{\ + \"type\":\"string\",\ + \"max\":500,\ + \"min\":1\ + },\ \"Threshold\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -17909,6 +19209,16 @@ - (NSString *)definitionString { \"error\":{\"httpStatusCode\":429},\ \"exception\":true\ },\ + \"TotalCount\":{\"type\":\"long\"},\ + \"TotalPauseCount\":{\ + \"type\":\"integer\",\ + \"max\":10,\ + \"min\":0\ + },\ + \"TotalPauseDurationInSeconds\":{\ + \"type\":\"integer\",\ + \"min\":0\ + },\ \"TrafficDistributionGroup\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -17938,7 +19248,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"IsDefault\":{\ \"shape\":\"Boolean\",\ @@ -18029,6 +19339,50 @@ - (NSString *)definitionString { \"CAMPAIGN\"\ ]\ },\ + \"Transcript\":{\ + \"type\":\"structure\",\ + \"required\":[\"Criteria\"],\ + \"members\":{\ + \"Criteria\":{\ + \"shape\":\"TranscriptCriteriaList\",\ + \"documentation\":\"

The array of transcript search criteria

\"\ + },\ + \"MatchType\":{\ + \"shape\":\"SearchContactsMatchType\",\ + \"documentation\":\"

The match type of multiple transcript criteira

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

The transcript object used to search results.

\"\ + },\ + \"TranscriptCriteria\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"ParticipantRole\",\ + \"SearchText\",\ + \"MatchType\"\ + ],\ + \"members\":{\ + \"ParticipantRole\":{\ + \"shape\":\"ParticipantRole\",\ + \"documentation\":\"

The participant role in a transcript

\"\ + },\ + \"SearchText\":{\ + \"shape\":\"SearchTextList\",\ + \"documentation\":\"

The words or phrases used to search within a transcript.

\"\ + },\ + \"MatchType\":{\ + \"shape\":\"SearchContactsMatchType\",\ + \"documentation\":\"

The match type of search texts in a transcript criteria.

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

The transcript criteria used to search

\"\ + },\ + \"TranscriptCriteriaList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"TranscriptCriteria\"},\ + \"max\":6,\ + \"min\":0\ + },\ \"TransferContactRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -18090,6 +19444,39 @@ - (NSString *)definitionString { \"PERCENT\"\ ]\ },\ + \"UntagContactRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"ContactId\",\ + \"InstanceId\",\ + \"TagKeys\"\ + ],\ + \"members\":{\ + \"ContactId\":{\ + \"shape\":\"ContactId\",\ + \"documentation\":\"

The identifier of the contact in this instance of Amazon Connect.

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

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

A list of tag keys. Existing tags on the contact whose keys are members of this list will be removed.

\",\ + \"location\":\"querystring\",\ + \"locationName\":\"TagKeys\"\ + }\ + }\ + },\ + \"UntagContactResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + }\ + },\ \"UntagResourceRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -18158,6 +19545,17 @@ - (NSString *)definitionString { }\ }\ },\ + \"UpdateCaseActionDefinition\":{\ + \"type\":\"structure\",\ + \"required\":[\"Fields\"],\ + \"members\":{\ + \"Fields\":{\ + \"shape\":\"FieldValues\",\ + \"documentation\":\"

An array of objects with Field ID and Value data.

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

The UpdateCase action definition.

\"\ + },\ \"UpdateContactAttributesRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -18441,6 +19839,40 @@ - (NSString *)definitionString { \"members\":{\ }\ },\ + \"UpdateContactRoutingDataRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"ContactId\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the contact in this instance of Amazon Connect.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"ContactId\"\ + },\ + \"QueueTimeAdjustmentSeconds\":{\ + \"shape\":\"QueueTimeAdjustmentSeconds\",\ + \"documentation\":\"

The number of seconds to add or subtract from the contact's routing age. Contacts are routed to agents on a first-come, first-serve basis. This means that changing their amount of time in queue compared to others also changes their position in queue.

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

Priority of the contact in the queue. The default priority for new contacts is 5. You can raise the priority of a contact compared to other contacts in the queue by assigning them a higher priority, such as 1 or 2.

\"\ + }\ + }\ + },\ + \"UpdateContactRoutingDataResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + }\ + },\ \"UpdateContactScheduleRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -18743,6 +20175,31 @@ - (NSString *)definitionString { }\ }\ },\ + \"UpdatePredefinedAttributeRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"Name\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The name of the predefined attribute.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"Name\"\ + },\ + \"Values\":{\ + \"shape\":\"PredefinedAttributeValues\",\ + \"documentation\":\"

The values of the predefined attribute.

\"\ + }\ + }\ + },\ \"UpdatePromptRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -19450,6 +20907,32 @@ - (NSString *)definitionString { }\ }\ },\ + \"UpdateUserProficienciesRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"InstanceId\",\ + \"UserId\",\ + \"UserProficiencies\"\ + ],\ + \"members\":{\ + \"InstanceId\":{\ + \"shape\":\"InstanceId\",\ + \"documentation\":\"

The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

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

The identifier of the user account.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"UserId\"\ + },\ + \"UserProficiencies\":{\ + \"shape\":\"UserProficiencyList\",\ + \"documentation\":\"

The proficiencies to be updated for the user. Proficiencies must first be associated to the user. You can do this using AssociateUserProficiencies API.

\"\ + }\ + }\ + },\ \"UpdateUserRoutingProfileRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -19834,6 +21317,55 @@ - (NSString *)definitionString { },\ \"documentation\":\"

Contains information about the phone configuration settings for a user.

\"\ },\ + \"UserProficiency\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"AttributeName\",\ + \"AttributeValue\",\ + \"Level\"\ + ],\ + \"members\":{\ + \"AttributeName\":{\ + \"shape\":\"PredefinedAttributeName\",\ + \"documentation\":\"

The name of user's proficiency. You must use name of predefined attribute present in the Amazon Connect instance.

\"\ + },\ + \"AttributeValue\":{\ + \"shape\":\"PredefinedAttributeStringValue\",\ + \"documentation\":\"

The value of user's proficiency. You must use value of predefined attribute present in the Amazon Connect instance.

\"\ + },\ + \"Level\":{\ + \"shape\":\"ProficiencyLevel\",\ + \"documentation\":\"

The level of the proficiency. The valid values are 1, 2, 3, 4 and 5.

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

Information about proficiency of a user.

\"\ + },\ + \"UserProficiencyDisassociate\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"AttributeName\",\ + \"AttributeValue\"\ + ],\ + \"members\":{\ + \"AttributeName\":{\ + \"shape\":\"PredefinedAttributeName\",\ + \"documentation\":\"

The name of user's proficiency.

\"\ + },\ + \"AttributeValue\":{\ + \"shape\":\"PredefinedAttributeStringValue\",\ + \"documentation\":\"

The value of user's proficiency.

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

Information about proficiency to be disassociated from the user.

\"\ + },\ + \"UserProficiencyDisassociateList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"UserProficiencyDisassociate\"}\ + },\ + \"UserProficiencyList\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"UserProficiency\"}\ + },\ \"UserQuickConnectConfig\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -19933,7 +21465,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

\"\ },\ \"Username\":{\ \"shape\":\"AgentUsername\",\ @@ -20270,7 +21802,7 @@ - (NSString *)definitionString { },\ \"Tags\":{\ \"shape\":\"TagMap\",\ - \"documentation\":\"

The tags used to organize, track, or control access for this resource. For example, { \\\"tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

The tags used to organize, track, or control access for this resource. For example, { \\\"Tags\\\": {\\\"key1\\\":\\\"value1\\\", \\\"key2\\\":\\\"value2\\\"} }.

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

Contains information about a custom vocabulary.

\"\ diff --git a/AWSConnect/AWSConnectService.h b/AWSConnect/AWSConnectService.h index b1618032099..35b07b18f2f 100644 --- a/AWSConnect/AWSConnectService.h +++ b/AWSConnect/AWSConnectService.h @@ -503,6 +503,28 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)associateTrafficDistributionGroupUser:(AWSConnectAssociateTrafficDistributionGroupUserRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectAssociateTrafficDistributionGroupUserResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

>Associates a set of proficiencies with a user.

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

>Associates a set of proficiencies with a user.

+ + @param request A container for the necessary parameters to execute the AssociateUserProficiencies service method. + @param completionHandler The completion handler to call when the load request is complete. + `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 AWSConnectAssociateUserProficienciesRequest + */ +- (void)associateUserProficiencies:(AWSConnectAssociateUserProficienciesRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; + /**

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

Associates a list of analytics datasets for a given Amazon Connect instance to a target account. You can associate multiple datasets in a single call.

@@ -853,6 +875,28 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)createPersistentContactAssociation:(AWSConnectCreatePersistentContactAssociationRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectCreatePersistentContactAssociationResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Creates a new predefined attribute for the specified Amazon Connect instance.

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

Creates a new predefined attribute for the specified Amazon Connect instance.

+ + @param request A container for the necessary parameters to execute the CreatePredefinedAttribute service method. + @param completionHandler The completion handler to call when the load request is complete. + `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: `AWSConnectErrorDuplicateResource`, `AWSConnectErrorInvalidRequest`, `AWSConnectErrorInvalidParameter`, `AWSConnectErrorLimitExceeded`, `AWSConnectErrorResourceNotFound`, `AWSConnectErrorThrottling`, `AWSConnectErrorInternalService`. + + @see AWSConnectCreatePredefinedAttributeRequest + */ +- (void)createPredefinedAttribute:(AWSConnectCreatePredefinedAttributeRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; + /**

Creates a prompt. For more information about prompts, such as supported file types and maximum length, see Create prompts in the Amazon Connect Administrator's Guide.

@@ -1388,6 +1432,28 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)deleteIntegrationAssociation:(AWSConnectDeleteIntegrationAssociationRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; +/** +

Deletes a predefined attribute from the specified Amazon Connect instance.

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

Deletes a predefined attribute from the specified Amazon Connect instance.

+ + @param request A container for the necessary parameters to execute the DeletePredefinedAttribute service method. + @param completionHandler The completion handler to call when the load request is complete. + `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: `AWSConnectErrorResourceInUse`, `AWSConnectErrorInvalidRequest`, `AWSConnectErrorInvalidParameter`, `AWSConnectErrorResourceNotFound`, `AWSConnectErrorThrottling`, `AWSConnectErrorInternalService`. + + @see AWSConnectDeletePredefinedAttributeRequest + */ +- (void)deletePredefinedAttribute:(AWSConnectDeletePredefinedAttributeRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; + /**

Deletes a prompt.

@@ -1986,6 +2052,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)describePhoneNumber:(AWSConnectDescribePhoneNumberRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectDescribePhoneNumberResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Describes a predefined attribute for the specified Amazon Connect instance.

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

Describes a predefined attribute for the specified Amazon Connect instance.

+ + @param request A container for the necessary parameters to execute the DescribePredefinedAttribute 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 AWSConnectDescribePredefinedAttributeRequest + @see AWSConnectDescribePredefinedAttributeResponse + */ +- (void)describePredefinedAttribute:(AWSConnectDescribePredefinedAttributeRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectDescribePredefinedAttributeResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Describes the prompt.

@@ -2556,6 +2647,28 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)disassociateTrafficDistributionGroupUser:(AWSConnectDisassociateTrafficDistributionGroupUserRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectDisassociateTrafficDistributionGroupUserResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Disassociates a set of proficiencies from a user.

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

Disassociates a set of proficiencies from a user.

+ + @param request A container for the necessary parameters to execute the DisassociateUserProficiencies service method. + @param completionHandler The completion handler to call when the load request is complete. + `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 AWSConnectDisassociateUserProficienciesRequest + */ +- (void)disassociateUserProficiencies:(AWSConnectDisassociateUserProficienciesRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; + /**

Dismisses contacts from an agent’s CCP and returns the agent to an available state, which allows the agent to receive a new routed contact. Contacts can only be dismissed if they are in a MISSED, ERROR, ENDED, or REJECTED state in the Agent Event Stream.

@@ -3381,6 +3494,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)listPhoneNumbersV2:(AWSConnectListPhoneNumbersV2Request *)request completionHandler:(void (^ _Nullable)(AWSConnectListPhoneNumbersV2Response * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Lists predefined attributes for the specified Amazon Connect instance.

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

Lists predefined attributes for the specified Amazon Connect instance.

+ + @param request A container for the necessary parameters to execute the ListPredefinedAttributes 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 AWSConnectListPredefinedAttributesRequest + @see AWSConnectListPredefinedAttributesResponse + */ +- (void)listPredefinedAttributes:(AWSConnectListPredefinedAttributesRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectListPredefinedAttributesResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Provides information about the prompts for the specified Amazon Connect instance.

@@ -3831,6 +3969,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)listUserHierarchyGroups:(AWSConnectListUserHierarchyGroupsRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectListUserHierarchyGroupsResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Lists proficiencies associated with a user.

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

Lists proficiencies associated with a user.

+ + @param request A container for the necessary parameters to execute the ListUserProficiencies 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 AWSConnectListUserProficienciesRequest + @see AWSConnectListUserProficienciesResponse + */ +- (void)listUserProficiencies:(AWSConnectListUserProficienciesRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectListUserProficienciesResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Provides summary information about the users for the specified Amazon Connect instance.

@@ -3931,6 +4094,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)monitorContact:(AWSConnectMonitorContactRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectMonitorContactResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Allows pausing an ongoing task contact.

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

Allows pausing an ongoing task contact.

+ + @param request A container for the necessary parameters to execute the PauseContact 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: `AWSConnectErrorAccessDenied`, `AWSConnectErrorInternalService`, `AWSConnectErrorInvalidRequest`, `AWSConnectErrorInvalidParameter`, `AWSConnectErrorResourceNotFound`, `AWSConnectErrorThrottling`, `AWSConnectErrorLimitExceeded`, `AWSConnectErrorConflict`. + + @see AWSConnectPauseContactRequest + @see AWSConnectPauseContactResponse + */ +- (void)pauseContact:(AWSConnectPauseContactRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectPauseContactResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Changes the current status of a user or agent in Amazon Connect. If the agent is currently handling a contact, this sets the agent's next status.

For more information, see Agent status and Set your next status in the Amazon Connect Administrator Guide.

@@ -4003,6 +4191,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)replicateInstance:(AWSConnectReplicateInstanceRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectReplicateInstanceResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Allows resuming a task contact in a paused state.

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

Allows resuming a task contact in a paused state.

+ + @param request A container for the necessary parameters to execute the ResumeContact 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: `AWSConnectErrorAccessDenied`, `AWSConnectErrorInternalService`, `AWSConnectErrorInvalidRequest`, `AWSConnectErrorInvalidParameter`, `AWSConnectErrorResourceNotFound`, `AWSConnectErrorThrottling`, `AWSConnectErrorConflict`. + + @see AWSConnectResumeContactRequest + @see AWSConnectResumeContactResponse + */ +- (void)resumeContact:(AWSConnectResumeContactRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectResumeContactResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

When a contact is being recorded, and the recording has been suspended using SuspendContactRecording, this API resumes recording whatever recording is selected in the flow configuration: call, screen, or both. If only call recording or only screen recording is enabled, then it would resume.

Voice and screen recordings are supported.

@@ -4053,6 +4266,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)searchAvailablePhoneNumbers:(AWSConnectSearchAvailablePhoneNumbersRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectSearchAvailablePhoneNumbersResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Searches contacts in an Amazon Connect instance.

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

Searches contacts in an Amazon Connect instance.

+ + @param request A container for the necessary parameters to execute the SearchContacts 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`, `AWSConnectErrorInternalService`, `AWSConnectErrorThrottling`. + + @see AWSConnectSearchContactsRequest + @see AWSConnectSearchContactsResponse + */ +- (void)searchContacts:(AWSConnectSearchContactsRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectSearchContactsResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Searches the hours of operation in an Amazon Connect instance, with optional filtering.

@@ -4078,6 +4316,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)searchHoursOfOperations:(AWSConnectSearchHoursOfOperationsRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectSearchHoursOfOperationsResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Predefined attributes that meet certain criteria.

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

Predefined attributes that meet certain criteria.

+ + @param request A container for the necessary parameters to execute the SearchPredefinedAttributes 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 AWSConnectSearchPredefinedAttributesRequest + @see AWSConnectSearchPredefinedAttributesResponse + */ +- (void)searchPredefinedAttributes:(AWSConnectSearchPredefinedAttributesRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectSearchPredefinedAttributesResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Searches prompts in an Amazon Connect instance, with optional filtering.

@@ -4603,6 +4866,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)suspendContactRecording:(AWSConnectSuspendContactRecordingRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectSuspendContactRecordingResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Adds the specified tags to the contact resource. For more information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect usage.

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

Adds the specified tags to the contact resource. For more information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect usage.

+ + @param request A container for the necessary parameters to execute the TagContact 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`, `AWSConnectErrorResourceNotFound`, `AWSConnectErrorInternalService`, `AWSConnectErrorInvalidParameter`, `AWSConnectErrorThrottling`. + + @see AWSConnectTagContactRequest + @see AWSConnectTagContactResponse + */ +- (void)tagContact:(AWSConnectTagContactRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectTagContactResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Adds the specified tags to the specified resource.

Some of the supported resource types are agents, routing profiles, queues, quick connects, contact flows, agent statuses, hours of operation, phone numbers, security profiles, and task templates. For a complete list, see Tagging resources in Amazon Connect.

For sample policies that use tags, see Amazon Connect Identity-Based Policy Examples in the Amazon Connect Administrator Guide.

@@ -4650,6 +4938,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)transferContact:(AWSConnectTransferContactRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectTransferContactResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Removes the specified tags from the contact resource. For more information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect usage.

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

Removes the specified tags from the contact resource. For more information about this API is used, see Set up granular billing for a detailed view of your Amazon Connect usage.

+ + @param request A container for the necessary parameters to execute the UntagContact 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`, `AWSConnectErrorResourceNotFound`, `AWSConnectErrorInternalService`, `AWSConnectErrorInvalidParameter`, `AWSConnectErrorThrottling`. + + @see AWSConnectUntagContactRequest + @see AWSConnectUntagContactResponse + */ +- (void)untagContact:(AWSConnectUntagContactRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectUntagContactResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Removes the specified tags from the specified resource.

@@ -4894,6 +5207,31 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)updateContactFlowName:(AWSConnectUpdateContactFlowNameRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectUpdateContactFlowNameResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

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

Updates routing priority and age on the contact (QueuePriority and QueueTimeAdjustmentInSeconds). These properties can be used to change a customer's position in the queue. For example, you can move a contact to the back of the queue by setting a lower routing priority relative to other contacts in queue; or you can move a contact to the front of the queue by increasing the routing age which will make the contact look artificially older and therefore higher up in the first-in-first-out routing order. Note that adjusting the routing age of a contact affects only its position in queue, and not its actual queue wait time as reported through metrics. These properties can also be updated by using the Set routing priority / age flow block.

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

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

Updates routing priority and age on the contact (QueuePriority and QueueTimeAdjustmentInSeconds). These properties can be used to change a customer's position in the queue. For example, you can move a contact to the back of the queue by setting a lower routing priority relative to other contacts in queue; or you can move a contact to the front of the queue by increasing the routing age which will make the contact look artificially older and therefore higher up in the first-in-first-out routing order. Note that adjusting the routing age of a contact affects only its position in queue, and not its actual queue wait time as reported through metrics. These properties can also be updated by using the Set routing priority / age flow block.

+ + @param request A container for the necessary parameters to execute the UpdateContactRoutingData 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: `AWSConnectErrorResourceConflict`, `AWSConnectErrorInvalidParameter`, `AWSConnectErrorResourceNotFound`, `AWSConnectErrorInternalService`, `AWSConnectErrorThrottling`, `AWSConnectErrorAccessDenied`. + + @see AWSConnectUpdateContactRoutingDataRequest + @see AWSConnectUpdateContactRoutingDataResponse + */ +- (void)updateContactRoutingData:(AWSConnectUpdateContactRoutingDataRequest *)request completionHandler:(void (^ _Nullable)(AWSConnectUpdateContactRoutingDataResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Updates the scheduled time of a task contact that is already scheduled.

@@ -5082,6 +5420,28 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)updatePhoneNumberMetadata:(AWSConnectUpdatePhoneNumberMetadataRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; +/** +

Updates a predefined attribute for the specified Amazon Connect instance.

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

Updates a predefined attribute for the specified Amazon Connect instance.

+ + @param request A container for the necessary parameters to execute the UpdatePredefinedAttribute service method. + @param completionHandler The completion handler to call when the load request is complete. + `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 AWSConnectUpdatePredefinedAttributeRequest + */ +- (void)updatePredefinedAttribute:(AWSConnectUpdatePredefinedAttributeRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; + /**

Updates a prompt.

@@ -5575,6 +5935,28 @@ FOUNDATION_EXPORT NSString *const AWSConnectSDKVersion; */ - (void)updateUserPhoneConfig:(AWSConnectUpdateUserPhoneConfigRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; +/** +

Updates the properties associated with the proficiencies of a user.

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

Updates the properties associated with the proficiencies of a user.

+ + @param request A container for the necessary parameters to execute the UpdateUserProficiencies service method. + @param completionHandler The completion handler to call when the load request is complete. + `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 AWSConnectUpdateUserProficienciesRequest + */ +- (void)updateUserProficiencies:(AWSConnectUpdateUserProficienciesRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; + /**

Assigns the specified routing profile to the specified user.

diff --git a/AWSConnect/AWSConnectService.m b/AWSConnect/AWSConnectService.m index dfc0403c8b8..625426a3147 100644 --- a/AWSConnect/AWSConnectService.m +++ b/AWSConnect/AWSConnectService.m @@ -40,6 +40,7 @@ @implementation AWSConnectResponseSerializer + (void)initialize { errorCodeDictionary = @{ @"AccessDeniedException" : @(AWSConnectErrorAccessDenied), + @"ConflictException" : @(AWSConnectErrorConflict), @"ContactFlowNotPublishedException" : @(AWSConnectErrorContactFlowNotPublished), @"ContactNotFoundException" : @(AWSConnectErrorContactNotFound), @"DestinationNotAllowedException" : @(AWSConnectErrorDestinationNotAllowed), @@ -614,6 +615,28 @@ - (void)associateTrafficDistributionGroupUser:(AWSConnectAssociateTrafficDistrib }]; } +- (AWSTask *)associateUserProficiencies:(AWSConnectAssociateUserProficienciesRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/users/{InstanceId}/{UserId}/associate-proficiencies" + targetPrefix:@"" + operationName:@"AssociateUserProficiencies" + outputClass:nil]; +} + +- (void)associateUserProficiencies:(AWSConnectAssociateUserProficienciesRequest *)request + completionHandler:(void (^)(NSError *error))completionHandler { + [[self associateUserProficiencies:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + NSError *error = task.error; + + if (completionHandler) { + completionHandler(error); + } + + return nil; + }]; +} + - (AWSTask *)batchAssociateAnalyticsDataSet:(AWSConnectBatchAssociateAnalyticsDataSetRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPUT @@ -936,6 +959,28 @@ - (void)createPersistentContactAssociation:(AWSConnectCreatePersistentContactAss }]; } +- (AWSTask *)createPredefinedAttribute:(AWSConnectCreatePredefinedAttributeRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPUT + URLString:@"/predefined-attributes/{InstanceId}" + targetPrefix:@"" + operationName:@"CreatePredefinedAttribute" + outputClass:nil]; +} + +- (void)createPredefinedAttribute:(AWSConnectCreatePredefinedAttributeRequest *)request + completionHandler:(void (^)(NSError *error))completionHandler { + [[self createPredefinedAttribute:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + NSError *error = task.error; + + if (completionHandler) { + completionHandler(error); + } + + return nil; + }]; +} + - (AWSTask *)createPrompt:(AWSConnectCreatePromptRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPUT @@ -1437,6 +1482,28 @@ - (void)deleteIntegrationAssociation:(AWSConnectDeleteIntegrationAssociationRequ }]; } +- (AWSTask *)deletePredefinedAttribute:(AWSConnectDeletePredefinedAttributeRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodDELETE + URLString:@"/predefined-attributes/{InstanceId}/{Name}" + targetPrefix:@"" + operationName:@"DeletePredefinedAttribute" + outputClass:nil]; +} + +- (void)deletePredefinedAttribute:(AWSConnectDeletePredefinedAttributeRequest *)request + completionHandler:(void (^)(NSError *error))completionHandler { + [[self deletePredefinedAttribute:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + NSError *error = task.error; + + if (completionHandler) { + completionHandler(error); + } + + return nil; + }]; +} + - (AWSTask *)deletePrompt:(AWSConnectDeletePromptRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodDELETE @@ -2003,6 +2070,29 @@ - (void)describePhoneNumber:(AWSConnectDescribePhoneNumberRequest *)request }]; } +- (AWSTask *)describePredefinedAttribute:(AWSConnectDescribePredefinedAttributeRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodGET + URLString:@"/predefined-attributes/{InstanceId}/{Name}" + targetPrefix:@"" + operationName:@"DescribePredefinedAttribute" + outputClass:[AWSConnectDescribePredefinedAttributeResponse class]]; +} + +- (void)describePredefinedAttribute:(AWSConnectDescribePredefinedAttributeRequest *)request + completionHandler:(void (^)(AWSConnectDescribePredefinedAttributeResponse *response, NSError *error))completionHandler { + [[self describePredefinedAttribute:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectDescribePredefinedAttributeResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)describePrompt:(AWSConnectDescribePromptRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodGET @@ -2545,6 +2635,28 @@ - (void)disassociateTrafficDistributionGroupUser:(AWSConnectDisassociateTrafficD }]; } +- (AWSTask *)disassociateUserProficiencies:(AWSConnectDisassociateUserProficienciesRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/users/{InstanceId}/{UserId}/disassociate-proficiencies" + targetPrefix:@"" + operationName:@"DisassociateUserProficiencies" + outputClass:nil]; +} + +- (void)disassociateUserProficiencies:(AWSConnectDisassociateUserProficienciesRequest *)request + completionHandler:(void (^)(NSError *error))completionHandler { + [[self disassociateUserProficiencies:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + NSError *error = task.error; + + if (completionHandler) { + completionHandler(error); + } + + return nil; + }]; +} + - (AWSTask *)dismissUserContact:(AWSConnectDismissUserContactRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST @@ -3304,6 +3416,29 @@ - (void)listPhoneNumbersV2:(AWSConnectListPhoneNumbersV2Request *)request }]; } +- (AWSTask *)listPredefinedAttributes:(AWSConnectListPredefinedAttributesRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodGET + URLString:@"/predefined-attributes/{InstanceId}" + targetPrefix:@"" + operationName:@"ListPredefinedAttributes" + outputClass:[AWSConnectListPredefinedAttributesResponse class]]; +} + +- (void)listPredefinedAttributes:(AWSConnectListPredefinedAttributesRequest *)request + completionHandler:(void (^)(AWSConnectListPredefinedAttributesResponse *response, NSError *error))completionHandler { + [[self listPredefinedAttributes:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectListPredefinedAttributesResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)listPrompts:(AWSConnectListPromptsRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodGET @@ -3718,6 +3853,29 @@ - (void)listUserHierarchyGroups:(AWSConnectListUserHierarchyGroupsRequest *)requ }]; } +- (AWSTask *)listUserProficiencies:(AWSConnectListUserProficienciesRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodGET + URLString:@"/users/{InstanceId}/{UserId}/proficiencies" + targetPrefix:@"" + operationName:@"ListUserProficiencies" + outputClass:[AWSConnectListUserProficienciesResponse class]]; +} + +- (void)listUserProficiencies:(AWSConnectListUserProficienciesRequest *)request + completionHandler:(void (^)(AWSConnectListUserProficienciesResponse *response, NSError *error))completionHandler { + [[self listUserProficiencies:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectListUserProficienciesResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)listUsers:(AWSConnectListUsersRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodGET @@ -3810,6 +3968,29 @@ - (void)monitorContact:(AWSConnectMonitorContactRequest *)request }]; } +- (AWSTask *)pauseContact:(AWSConnectPauseContactRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/contact/pause" + targetPrefix:@"" + operationName:@"PauseContact" + outputClass:[AWSConnectPauseContactResponse class]]; +} + +- (void)pauseContact:(AWSConnectPauseContactRequest *)request + completionHandler:(void (^)(AWSConnectPauseContactResponse *response, NSError *error))completionHandler { + [[self pauseContact:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectPauseContactResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)putUserStatus:(AWSConnectPutUserStatusRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPUT @@ -3878,6 +4059,29 @@ - (void)replicateInstance:(AWSConnectReplicateInstanceRequest *)request }]; } +- (AWSTask *)resumeContact:(AWSConnectResumeContactRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/contact/resume" + targetPrefix:@"" + operationName:@"ResumeContact" + outputClass:[AWSConnectResumeContactResponse class]]; +} + +- (void)resumeContact:(AWSConnectResumeContactRequest *)request + completionHandler:(void (^)(AWSConnectResumeContactResponse *response, NSError *error))completionHandler { + [[self resumeContact:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectResumeContactResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)resumeContactRecording:(AWSConnectResumeContactRecordingRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST @@ -3924,6 +4128,29 @@ - (void)searchAvailablePhoneNumbers:(AWSConnectSearchAvailablePhoneNumbersReques }]; } +- (AWSTask *)searchContacts:(AWSConnectSearchContactsRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/search-contacts" + targetPrefix:@"" + operationName:@"SearchContacts" + outputClass:[AWSConnectSearchContactsResponse class]]; +} + +- (void)searchContacts:(AWSConnectSearchContactsRequest *)request + completionHandler:(void (^)(AWSConnectSearchContactsResponse *response, NSError *error))completionHandler { + [[self searchContacts:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectSearchContactsResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)searchHoursOfOperations:(AWSConnectSearchHoursOfOperationsRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST @@ -3947,6 +4174,29 @@ - (void)searchHoursOfOperations:(AWSConnectSearchHoursOfOperationsRequest *)requ }]; } +- (AWSTask *)searchPredefinedAttributes:(AWSConnectSearchPredefinedAttributesRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/search-predefined-attributes" + targetPrefix:@"" + operationName:@"SearchPredefinedAttributes" + outputClass:[AWSConnectSearchPredefinedAttributesResponse class]]; +} + +- (void)searchPredefinedAttributes:(AWSConnectSearchPredefinedAttributesRequest *)request + completionHandler:(void (^)(AWSConnectSearchPredefinedAttributesResponse *response, NSError *error))completionHandler { + [[self searchPredefinedAttributes:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectSearchPredefinedAttributesResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)searchPrompts:(AWSConnectSearchPromptsRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST @@ -4430,6 +4680,29 @@ - (void)suspendContactRecording:(AWSConnectSuspendContactRecordingRequest *)requ }]; } +- (AWSTask *)tagContact:(AWSConnectTagContactRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/contact/tags" + targetPrefix:@"" + operationName:@"TagContact" + outputClass:[AWSConnectTagContactResponse class]]; +} + +- (void)tagContact:(AWSConnectTagContactRequest *)request + completionHandler:(void (^)(AWSConnectTagContactResponse *response, NSError *error))completionHandler { + [[self tagContact:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectTagContactResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)tagResource:(AWSConnectTagResourceRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST @@ -4475,6 +4748,29 @@ - (void)transferContact:(AWSConnectTransferContactRequest *)request }]; } +- (AWSTask *)untagContact:(AWSConnectUntagContactRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodDELETE + URLString:@"/contact/tags/{InstanceId}/{ContactId}" + targetPrefix:@"" + operationName:@"UntagContact" + outputClass:[AWSConnectUntagContactResponse class]]; +} + +- (void)untagContact:(AWSConnectUntagContactRequest *)request + completionHandler:(void (^)(AWSConnectUntagContactResponse *response, NSError *error))completionHandler { + [[self untagContact:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectUntagContactResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)untagResource:(AWSConnectUntagResourceRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodDELETE @@ -4703,6 +4999,29 @@ - (void)updateContactFlowName:(AWSConnectUpdateContactFlowNameRequest *)request }]; } +- (AWSTask *)updateContactRoutingData:(AWSConnectUpdateContactRoutingDataRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/contacts/{InstanceId}/{ContactId}/routing-data" + targetPrefix:@"" + operationName:@"UpdateContactRoutingData" + outputClass:[AWSConnectUpdateContactRoutingDataResponse class]]; +} + +- (void)updateContactRoutingData:(AWSConnectUpdateContactRoutingDataRequest *)request + completionHandler:(void (^)(AWSConnectUpdateContactRoutingDataResponse *response, NSError *error))completionHandler { + [[self updateContactRoutingData:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSConnectUpdateContactRoutingDataResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)updateContactSchedule:(AWSConnectUpdateContactScheduleRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST @@ -4883,6 +5202,28 @@ - (void)updatePhoneNumberMetadata:(AWSConnectUpdatePhoneNumberMetadataRequest *) }]; } +- (AWSTask *)updatePredefinedAttribute:(AWSConnectUpdatePredefinedAttributeRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/predefined-attributes/{InstanceId}/{Name}" + targetPrefix:@"" + operationName:@"UpdatePredefinedAttribute" + outputClass:nil]; +} + +- (void)updatePredefinedAttribute:(AWSConnectUpdatePredefinedAttributeRequest *)request + completionHandler:(void (^)(NSError *error))completionHandler { + [[self updatePredefinedAttribute:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + NSError *error = task.error; + + if (completionHandler) { + completionHandler(error); + } + + return nil; + }]; +} + - (AWSTask *)updatePrompt:(AWSConnectUpdatePromptRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST @@ -5370,6 +5711,28 @@ - (void)updateUserPhoneConfig:(AWSConnectUpdateUserPhoneConfigRequest *)request }]; } +- (AWSTask *)updateUserProficiencies:(AWSConnectUpdateUserProficienciesRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/users/{InstanceId}/{UserId}/proficiencies" + targetPrefix:@"" + operationName:@"UpdateUserProficiencies" + outputClass:nil]; +} + +- (void)updateUserProficiencies:(AWSConnectUpdateUserProficienciesRequest *)request + completionHandler:(void (^)(NSError *error))completionHandler { + [[self updateUserProficiencies:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + NSError *error = task.error; + + if (completionHandler) { + completionHandler(error); + } + + return nil; + }]; +} + - (AWSTask *)updateUserRoutingProfile:(AWSConnectUpdateUserRoutingProfileRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST diff --git a/AWSConnectUnitTests/AWSConnectNSSecureCodingTests.m b/AWSConnectUnitTests/AWSConnectNSSecureCodingTests.m index dfec5a1c48c..be75fea826e 100644 --- a/AWSConnectUnitTests/AWSConnectNSSecureCodingTests.m +++ b/AWSConnectUnitTests/AWSConnectNSSecureCodingTests.m @@ -24,6 +24,7 @@ - (void) test_AWSConnectActivateEvaluationFormRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectActivateEvaluationFormResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectAgentConfig API_AVAILABLE(ios(11)); - (void) test_AWSConnectAgentContactReference API_AVAILABLE(ios(11)); +- (void) test_AWSConnectAgentHierarchyGroups API_AVAILABLE(ios(11)); - (void) test_AWSConnectAgentInfo API_AVAILABLE(ios(11)); - (void) test_AWSConnectAgentStatus API_AVAILABLE(ios(11)); - (void) test_AWSConnectAgentStatusReference API_AVAILABLE(ios(11)); @@ -52,6 +53,7 @@ - (void) test_AWSConnectAssociateSecurityKeyRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectAssociateSecurityKeyResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectAssociateTrafficDistributionGroupUserRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectAssociateTrafficDistributionGroupUserResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectAssociateUserProficienciesRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectAttachmentReference API_AVAILABLE(ios(11)); - (void) test_AWSConnectAttendee API_AVAILABLE(ios(11)); - (void) test_AWSConnectAttribute API_AVAILABLE(ios(11)); @@ -75,15 +77,20 @@ - (void) test_AWSConnectClaimPhoneNumberResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectClaimedPhoneNumberSummary API_AVAILABLE(ios(11)); - (void) test_AWSConnectConnectionData API_AVAILABLE(ios(11)); - (void) test_AWSConnectContact API_AVAILABLE(ios(11)); +- (void) test_AWSConnectContactAnalysis API_AVAILABLE(ios(11)); - (void) test_AWSConnectContactDataRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectContactFilter API_AVAILABLE(ios(11)); - (void) test_AWSConnectContactFlow API_AVAILABLE(ios(11)); - (void) test_AWSConnectContactFlowModule API_AVAILABLE(ios(11)); - (void) test_AWSConnectContactFlowModuleSummary API_AVAILABLE(ios(11)); - (void) test_AWSConnectContactFlowSummary API_AVAILABLE(ios(11)); +- (void) test_AWSConnectContactSearchSummary API_AVAILABLE(ios(11)); +- (void) test_AWSConnectContactSearchSummaryAgentInfo API_AVAILABLE(ios(11)); +- (void) test_AWSConnectContactSearchSummaryQueueInfo API_AVAILABLE(ios(11)); - (void) test_AWSConnectControlPlaneTagFilter API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreateAgentStatusRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreateAgentStatusResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectCreateCaseActionDefinition API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreateContactFlowModuleRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreateContactFlowModuleResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreateContactFlowRequest API_AVAILABLE(ios(11)); @@ -100,6 +107,7 @@ - (void) test_AWSConnectCreateParticipantRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreateParticipantResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreatePersistentContactAssociationRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreatePersistentContactAssociationResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectCreatePredefinedAttributeRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreatePromptRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreatePromptResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectCreateQueueRequest API_AVAILABLE(ios(11)); @@ -147,6 +155,7 @@ - (void) test_AWSConnectDeleteEvaluationFormRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDeleteHoursOfOperationRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDeleteInstanceRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDeleteIntegrationAssociationRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectDeletePredefinedAttributeRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDeletePromptRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDeleteQueueRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDeleteQuickConnectRequest API_AVAILABLE(ios(11)); @@ -188,6 +197,8 @@ - (void) test_AWSConnectDescribeInstanceStorageConfigRequest API_AVAILABLE(ios(1 - (void) test_AWSConnectDescribeInstanceStorageConfigResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectDescribePhoneNumberRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDescribePhoneNumberResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectDescribePredefinedAttributeRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectDescribePredefinedAttributeResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectDescribePromptRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDescribePromptResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectDescribeQueueRequest API_AVAILABLE(ios(11)); @@ -227,12 +238,15 @@ - (void) test_AWSConnectDisassociateRoutingProfileQueuesRequest API_AVAILABLE(io - (void) test_AWSConnectDisassociateSecurityKeyRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDisassociateTrafficDistributionGroupUserRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDisassociateTrafficDistributionGroupUserResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectDisassociateUserProficienciesRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDisconnectReason API_AVAILABLE(ios(11)); - (void) test_AWSConnectDismissUserContactRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectDismissUserContactResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectDistribution API_AVAILABLE(ios(11)); - (void) test_AWSConnectEmailReference API_AVAILABLE(ios(11)); +- (void) test_AWSConnectEmptyFieldValue API_AVAILABLE(ios(11)); - (void) test_AWSConnectEncryptionConfig API_AVAILABLE(ios(11)); +- (void) test_AWSConnectEndAssociatedTasksActionDefinition API_AVAILABLE(ios(11)); - (void) test_AWSConnectEndpoint API_AVAILABLE(ios(11)); - (void) test_AWSConnectErrorResult API_AVAILABLE(ios(11)); - (void) test_AWSConnectEvaluation API_AVAILABLE(ios(11)); @@ -261,6 +275,8 @@ - (void) test_AWSConnectEvaluationScore API_AVAILABLE(ios(11)); - (void) test_AWSConnectEvaluationSummary API_AVAILABLE(ios(11)); - (void) test_AWSConnectEventBridgeActionDefinition API_AVAILABLE(ios(11)); - (void) test_AWSConnectFailedRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectFieldValue API_AVAILABLE(ios(11)); +- (void) test_AWSConnectFieldValueUnion API_AVAILABLE(ios(11)); - (void) test_AWSConnectFilterV2 API_AVAILABLE(ios(11)); - (void) test_AWSConnectFilters API_AVAILABLE(ios(11)); - (void) test_AWSConnectFlowAssociationSummary API_AVAILABLE(ios(11)); @@ -361,6 +377,8 @@ - (void) test_AWSConnectListPhoneNumbersResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectListPhoneNumbersSummary API_AVAILABLE(ios(11)); - (void) test_AWSConnectListPhoneNumbersV2Request API_AVAILABLE(ios(11)); - (void) test_AWSConnectListPhoneNumbersV2Response API_AVAILABLE(ios(11)); +- (void) test_AWSConnectListPredefinedAttributesRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectListPredefinedAttributesResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectListPromptsRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectListPromptsResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectListQueueQuickConnectsRequest API_AVAILABLE(ios(11)); @@ -397,6 +415,8 @@ - (void) test_AWSConnectListUseCasesRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectListUseCasesResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectListUserHierarchyGroupsRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectListUserHierarchyGroupsResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectListUserProficienciesRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectListUserProficienciesResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectListUsersRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectListUsersResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectListViewVersionsRequest API_AVAILABLE(ios(11)); @@ -425,10 +445,16 @@ - (void) test_AWSConnectParticipantDetailsToAdd API_AVAILABLE(ios(11)); - (void) test_AWSConnectParticipantTimerConfiguration API_AVAILABLE(ios(11)); - (void) test_AWSConnectParticipantTimerValue API_AVAILABLE(ios(11)); - (void) test_AWSConnectParticipantTokenCredentials API_AVAILABLE(ios(11)); +- (void) test_AWSConnectPauseContactRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectPauseContactResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectPersistentChat API_AVAILABLE(ios(11)); - (void) test_AWSConnectPhoneNumberQuickConnectConfig API_AVAILABLE(ios(11)); - (void) test_AWSConnectPhoneNumberStatus API_AVAILABLE(ios(11)); - (void) test_AWSConnectPhoneNumberSummary API_AVAILABLE(ios(11)); +- (void) test_AWSConnectPredefinedAttribute API_AVAILABLE(ios(11)); +- (void) test_AWSConnectPredefinedAttributeSearchCriteria API_AVAILABLE(ios(11)); +- (void) test_AWSConnectPredefinedAttributeSummary API_AVAILABLE(ios(11)); +- (void) test_AWSConnectPredefinedAttributeValues API_AVAILABLE(ios(11)); - (void) test_AWSConnectProblemDetail API_AVAILABLE(ios(11)); - (void) test_AWSConnectPrompt API_AVAILABLE(ios(11)); - (void) test_AWSConnectPromptSearchCriteria API_AVAILABLE(ios(11)); @@ -474,6 +500,8 @@ - (void) test_AWSConnectRequiredFieldInfo API_AVAILABLE(ios(11)); - (void) test_AWSConnectResourceTagsSearchCriteria API_AVAILABLE(ios(11)); - (void) test_AWSConnectResumeContactRecordingRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectResumeContactRecordingResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectResumeContactRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectResumeContactResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectRoutingProfile API_AVAILABLE(ios(11)); - (void) test_AWSConnectRoutingProfileQueueConfig API_AVAILABLE(ios(11)); - (void) test_AWSConnectRoutingProfileQueueConfigSummary API_AVAILABLE(ios(11)); @@ -489,8 +517,14 @@ - (void) test_AWSConnectRuleTriggerEventSource API_AVAILABLE(ios(11)); - (void) test_AWSConnectS3Config API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchAvailablePhoneNumbersRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchAvailablePhoneNumbersResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectSearchContactsRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectSearchContactsResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectSearchContactsTimeRange API_AVAILABLE(ios(11)); +- (void) test_AWSConnectSearchCriteria API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchHoursOfOperationsRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchHoursOfOperationsResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectSearchPredefinedAttributesRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectSearchPredefinedAttributesResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchPromptsRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchPromptsResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchQueuesRequest API_AVAILABLE(ios(11)); @@ -507,6 +541,8 @@ - (void) test_AWSConnectSearchUsersRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchUsersResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchVocabulariesRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectSearchVocabulariesResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectSearchableContactAttributes API_AVAILABLE(ios(11)); +- (void) test_AWSConnectSearchableContactAttributesCriteria API_AVAILABLE(ios(11)); - (void) test_AWSConnectSecurityKey API_AVAILABLE(ios(11)); - (void) test_AWSConnectSecurityProfile API_AVAILABLE(ios(11)); - (void) test_AWSConnectSecurityProfileSearchCriteria API_AVAILABLE(ios(11)); @@ -520,6 +556,7 @@ - (void) test_AWSConnectSendNotificationActionDefinition API_AVAILABLE(ios(11)); - (void) test_AWSConnectSignInConfig API_AVAILABLE(ios(11)); - (void) test_AWSConnectSignInDistribution API_AVAILABLE(ios(11)); - (void) test_AWSConnectSingleSelectQuestionRuleCategoryAutomation API_AVAILABLE(ios(11)); +- (void) test_AWSConnectSort API_AVAILABLE(ios(11)); - (void) test_AWSConnectStartChatContactRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectStartChatContactResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectStartContactEvaluationRequest API_AVAILABLE(ios(11)); @@ -548,6 +585,8 @@ - (void) test_AWSConnectSuccessfulRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectSuspendContactRecordingRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectSuspendContactRecordingResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectTagCondition API_AVAILABLE(ios(11)); +- (void) test_AWSConnectTagContactRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectTagContactResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectTagResourceRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectTagSearchCondition API_AVAILABLE(ios(11)); - (void) test_AWSConnectTagSet API_AVAILABLE(ios(11)); @@ -564,10 +603,15 @@ - (void) test_AWSConnectThresholdV2 API_AVAILABLE(ios(11)); - (void) test_AWSConnectTrafficDistributionGroup API_AVAILABLE(ios(11)); - (void) test_AWSConnectTrafficDistributionGroupSummary API_AVAILABLE(ios(11)); - (void) test_AWSConnectTrafficDistributionGroupUserSummary API_AVAILABLE(ios(11)); +- (void) test_AWSConnectTranscript API_AVAILABLE(ios(11)); +- (void) test_AWSConnectTranscriptCriteria API_AVAILABLE(ios(11)); - (void) test_AWSConnectTransferContactRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectTransferContactResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectUntagContactRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectUntagContactResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectUntagResourceRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateAgentStatusRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectUpdateCaseActionDefinition API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateContactAttributesRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateContactAttributesResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateContactEvaluationRequest API_AVAILABLE(ios(11)); @@ -584,6 +628,8 @@ - (void) test_AWSConnectUpdateContactFlowNameRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateContactFlowNameResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateContactRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateContactResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectUpdateContactRoutingDataRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectUpdateContactRoutingDataResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateContactScheduleRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateContactScheduleResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateEvaluationFormRequest API_AVAILABLE(ios(11)); @@ -597,6 +643,7 @@ - (void) test_AWSConnectUpdateParticipantRoleConfigResponse API_AVAILABLE(ios(11 - (void) test_AWSConnectUpdatePhoneNumberMetadataRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdatePhoneNumberRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdatePhoneNumberResponse API_AVAILABLE(ios(11)); +- (void) test_AWSConnectUpdatePredefinedAttributeRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdatePromptRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdatePromptResponse API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateQueueHoursOfOperationRequest API_AVAILABLE(ios(11)); @@ -622,6 +669,7 @@ - (void) test_AWSConnectUpdateUserHierarchyRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateUserHierarchyStructureRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateUserIdentityInfoRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateUserPhoneConfigRequest API_AVAILABLE(ios(11)); +- (void) test_AWSConnectUpdateUserProficienciesRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateUserRoutingProfileRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateUserSecurityProfilesRequest API_AVAILABLE(ios(11)); - (void) test_AWSConnectUpdateViewContentRequest API_AVAILABLE(ios(11)); @@ -636,6 +684,8 @@ - (void) test_AWSConnectUserDataFilters API_AVAILABLE(ios(11)); - (void) test_AWSConnectUserIdentityInfo API_AVAILABLE(ios(11)); - (void) test_AWSConnectUserIdentityInfoLite API_AVAILABLE(ios(11)); - (void) test_AWSConnectUserPhoneConfig API_AVAILABLE(ios(11)); +- (void) test_AWSConnectUserProficiency API_AVAILABLE(ios(11)); +- (void) test_AWSConnectUserProficiencyDisassociate API_AVAILABLE(ios(11)); - (void) test_AWSConnectUserQuickConnectConfig API_AVAILABLE(ios(11)); - (void) test_AWSConnectUserReference API_AVAILABLE(ios(11)); - (void) test_AWSConnectUserSearchCriteria API_AVAILABLE(ios(11)); @@ -676,6 +726,10 @@ - (void) test_AWSConnectAgentContactReference { [self validateSecureCodingForClass:[AWSConnectAgentContactReference class]]; } +- (void) test_AWSConnectAgentHierarchyGroups { + [self validateSecureCodingForClass:[AWSConnectAgentHierarchyGroups class]]; +} + - (void) test_AWSConnectAgentInfo { [self validateSecureCodingForClass:[AWSConnectAgentInfo class]]; } @@ -788,6 +842,10 @@ - (void) test_AWSConnectAssociateTrafficDistributionGroupUserResponse { [self validateSecureCodingForClass:[AWSConnectAssociateTrafficDistributionGroupUserResponse class]]; } +- (void) test_AWSConnectAssociateUserProficienciesRequest { + [self validateSecureCodingForClass:[AWSConnectAssociateUserProficienciesRequest class]]; +} + - (void) test_AWSConnectAttachmentReference { [self validateSecureCodingForClass:[AWSConnectAttachmentReference class]]; } @@ -880,6 +938,10 @@ - (void) test_AWSConnectContact { [self validateSecureCodingForClass:[AWSConnectContact class]]; } +- (void) test_AWSConnectContactAnalysis { + [self validateSecureCodingForClass:[AWSConnectContactAnalysis class]]; +} + - (void) test_AWSConnectContactDataRequest { [self validateSecureCodingForClass:[AWSConnectContactDataRequest class]]; } @@ -904,6 +966,18 @@ - (void) test_AWSConnectContactFlowSummary { [self validateSecureCodingForClass:[AWSConnectContactFlowSummary class]]; } +- (void) test_AWSConnectContactSearchSummary { + [self validateSecureCodingForClass:[AWSConnectContactSearchSummary class]]; +} + +- (void) test_AWSConnectContactSearchSummaryAgentInfo { + [self validateSecureCodingForClass:[AWSConnectContactSearchSummaryAgentInfo class]]; +} + +- (void) test_AWSConnectContactSearchSummaryQueueInfo { + [self validateSecureCodingForClass:[AWSConnectContactSearchSummaryQueueInfo class]]; +} + - (void) test_AWSConnectControlPlaneTagFilter { [self validateSecureCodingForClass:[AWSConnectControlPlaneTagFilter class]]; } @@ -916,6 +990,10 @@ - (void) test_AWSConnectCreateAgentStatusResponse { [self validateSecureCodingForClass:[AWSConnectCreateAgentStatusResponse class]]; } +- (void) test_AWSConnectCreateCaseActionDefinition { + [self validateSecureCodingForClass:[AWSConnectCreateCaseActionDefinition class]]; +} + - (void) test_AWSConnectCreateContactFlowModuleRequest { [self validateSecureCodingForClass:[AWSConnectCreateContactFlowModuleRequest class]]; } @@ -980,6 +1058,10 @@ - (void) test_AWSConnectCreatePersistentContactAssociationResponse { [self validateSecureCodingForClass:[AWSConnectCreatePersistentContactAssociationResponse class]]; } +- (void) test_AWSConnectCreatePredefinedAttributeRequest { + [self validateSecureCodingForClass:[AWSConnectCreatePredefinedAttributeRequest class]]; +} + - (void) test_AWSConnectCreatePromptRequest { [self validateSecureCodingForClass:[AWSConnectCreatePromptRequest class]]; } @@ -1168,6 +1250,10 @@ - (void) test_AWSConnectDeleteIntegrationAssociationRequest { [self validateSecureCodingForClass:[AWSConnectDeleteIntegrationAssociationRequest class]]; } +- (void) test_AWSConnectDeletePredefinedAttributeRequest { + [self validateSecureCodingForClass:[AWSConnectDeletePredefinedAttributeRequest class]]; +} + - (void) test_AWSConnectDeletePromptRequest { [self validateSecureCodingForClass:[AWSConnectDeletePromptRequest class]]; } @@ -1332,6 +1418,14 @@ - (void) test_AWSConnectDescribePhoneNumberResponse { [self validateSecureCodingForClass:[AWSConnectDescribePhoneNumberResponse class]]; } +- (void) test_AWSConnectDescribePredefinedAttributeRequest { + [self validateSecureCodingForClass:[AWSConnectDescribePredefinedAttributeRequest class]]; +} + +- (void) test_AWSConnectDescribePredefinedAttributeResponse { + [self validateSecureCodingForClass:[AWSConnectDescribePredefinedAttributeResponse class]]; +} + - (void) test_AWSConnectDescribePromptRequest { [self validateSecureCodingForClass:[AWSConnectDescribePromptRequest class]]; } @@ -1488,6 +1582,10 @@ - (void) test_AWSConnectDisassociateTrafficDistributionGroupUserResponse { [self validateSecureCodingForClass:[AWSConnectDisassociateTrafficDistributionGroupUserResponse class]]; } +- (void) test_AWSConnectDisassociateUserProficienciesRequest { + [self validateSecureCodingForClass:[AWSConnectDisassociateUserProficienciesRequest class]]; +} + - (void) test_AWSConnectDisconnectReason { [self validateSecureCodingForClass:[AWSConnectDisconnectReason class]]; } @@ -1508,10 +1606,18 @@ - (void) test_AWSConnectEmailReference { [self validateSecureCodingForClass:[AWSConnectEmailReference class]]; } +- (void) test_AWSConnectEmptyFieldValue { + [self validateSecureCodingForClass:[AWSConnectEmptyFieldValue class]]; +} + - (void) test_AWSConnectEncryptionConfig { [self validateSecureCodingForClass:[AWSConnectEncryptionConfig class]]; } +- (void) test_AWSConnectEndAssociatedTasksActionDefinition { + [self validateSecureCodingForClass:[AWSConnectEndAssociatedTasksActionDefinition class]]; +} + - (void) test_AWSConnectEndpoint { [self validateSecureCodingForClass:[AWSConnectEndpoint class]]; } @@ -1624,6 +1730,14 @@ - (void) test_AWSConnectFailedRequest { [self validateSecureCodingForClass:[AWSConnectFailedRequest class]]; } +- (void) test_AWSConnectFieldValue { + [self validateSecureCodingForClass:[AWSConnectFieldValue class]]; +} + +- (void) test_AWSConnectFieldValueUnion { + [self validateSecureCodingForClass:[AWSConnectFieldValueUnion class]]; +} + - (void) test_AWSConnectFilterV2 { [self validateSecureCodingForClass:[AWSConnectFilterV2 class]]; } @@ -2024,6 +2138,14 @@ - (void) test_AWSConnectListPhoneNumbersV2Response { [self validateSecureCodingForClass:[AWSConnectListPhoneNumbersV2Response class]]; } +- (void) test_AWSConnectListPredefinedAttributesRequest { + [self validateSecureCodingForClass:[AWSConnectListPredefinedAttributesRequest class]]; +} + +- (void) test_AWSConnectListPredefinedAttributesResponse { + [self validateSecureCodingForClass:[AWSConnectListPredefinedAttributesResponse class]]; +} + - (void) test_AWSConnectListPromptsRequest { [self validateSecureCodingForClass:[AWSConnectListPromptsRequest class]]; } @@ -2168,6 +2290,14 @@ - (void) test_AWSConnectListUserHierarchyGroupsResponse { [self validateSecureCodingForClass:[AWSConnectListUserHierarchyGroupsResponse class]]; } +- (void) test_AWSConnectListUserProficienciesRequest { + [self validateSecureCodingForClass:[AWSConnectListUserProficienciesRequest class]]; +} + +- (void) test_AWSConnectListUserProficienciesResponse { + [self validateSecureCodingForClass:[AWSConnectListUserProficienciesResponse class]]; +} + - (void) test_AWSConnectListUsersRequest { [self validateSecureCodingForClass:[AWSConnectListUsersRequest class]]; } @@ -2280,6 +2410,14 @@ - (void) test_AWSConnectParticipantTokenCredentials { [self validateSecureCodingForClass:[AWSConnectParticipantTokenCredentials class]]; } +- (void) test_AWSConnectPauseContactRequest { + [self validateSecureCodingForClass:[AWSConnectPauseContactRequest class]]; +} + +- (void) test_AWSConnectPauseContactResponse { + [self validateSecureCodingForClass:[AWSConnectPauseContactResponse class]]; +} + - (void) test_AWSConnectPersistentChat { [self validateSecureCodingForClass:[AWSConnectPersistentChat class]]; } @@ -2296,6 +2434,22 @@ - (void) test_AWSConnectPhoneNumberSummary { [self validateSecureCodingForClass:[AWSConnectPhoneNumberSummary class]]; } +- (void) test_AWSConnectPredefinedAttribute { + [self validateSecureCodingForClass:[AWSConnectPredefinedAttribute class]]; +} + +- (void) test_AWSConnectPredefinedAttributeSearchCriteria { + [self validateSecureCodingForClass:[AWSConnectPredefinedAttributeSearchCriteria class]]; +} + +- (void) test_AWSConnectPredefinedAttributeSummary { + [self validateSecureCodingForClass:[AWSConnectPredefinedAttributeSummary class]]; +} + +- (void) test_AWSConnectPredefinedAttributeValues { + [self validateSecureCodingForClass:[AWSConnectPredefinedAttributeValues class]]; +} + - (void) test_AWSConnectProblemDetail { [self validateSecureCodingForClass:[AWSConnectProblemDetail class]]; } @@ -2476,6 +2630,14 @@ - (void) test_AWSConnectResumeContactRecordingResponse { [self validateSecureCodingForClass:[AWSConnectResumeContactRecordingResponse class]]; } +- (void) test_AWSConnectResumeContactRequest { + [self validateSecureCodingForClass:[AWSConnectResumeContactRequest class]]; +} + +- (void) test_AWSConnectResumeContactResponse { + [self validateSecureCodingForClass:[AWSConnectResumeContactResponse class]]; +} + - (void) test_AWSConnectRoutingProfile { [self validateSecureCodingForClass:[AWSConnectRoutingProfile class]]; } @@ -2536,6 +2698,22 @@ - (void) test_AWSConnectSearchAvailablePhoneNumbersResponse { [self validateSecureCodingForClass:[AWSConnectSearchAvailablePhoneNumbersResponse class]]; } +- (void) test_AWSConnectSearchContactsRequest { + [self validateSecureCodingForClass:[AWSConnectSearchContactsRequest class]]; +} + +- (void) test_AWSConnectSearchContactsResponse { + [self validateSecureCodingForClass:[AWSConnectSearchContactsResponse class]]; +} + +- (void) test_AWSConnectSearchContactsTimeRange { + [self validateSecureCodingForClass:[AWSConnectSearchContactsTimeRange class]]; +} + +- (void) test_AWSConnectSearchCriteria { + [self validateSecureCodingForClass:[AWSConnectSearchCriteria class]]; +} + - (void) test_AWSConnectSearchHoursOfOperationsRequest { [self validateSecureCodingForClass:[AWSConnectSearchHoursOfOperationsRequest class]]; } @@ -2544,6 +2722,14 @@ - (void) test_AWSConnectSearchHoursOfOperationsResponse { [self validateSecureCodingForClass:[AWSConnectSearchHoursOfOperationsResponse class]]; } +- (void) test_AWSConnectSearchPredefinedAttributesRequest { + [self validateSecureCodingForClass:[AWSConnectSearchPredefinedAttributesRequest class]]; +} + +- (void) test_AWSConnectSearchPredefinedAttributesResponse { + [self validateSecureCodingForClass:[AWSConnectSearchPredefinedAttributesResponse class]]; +} + - (void) test_AWSConnectSearchPromptsRequest { [self validateSecureCodingForClass:[AWSConnectSearchPromptsRequest class]]; } @@ -2608,6 +2794,14 @@ - (void) test_AWSConnectSearchVocabulariesResponse { [self validateSecureCodingForClass:[AWSConnectSearchVocabulariesResponse class]]; } +- (void) test_AWSConnectSearchableContactAttributes { + [self validateSecureCodingForClass:[AWSConnectSearchableContactAttributes class]]; +} + +- (void) test_AWSConnectSearchableContactAttributesCriteria { + [self validateSecureCodingForClass:[AWSConnectSearchableContactAttributesCriteria class]]; +} + - (void) test_AWSConnectSecurityKey { [self validateSecureCodingForClass:[AWSConnectSecurityKey class]]; } @@ -2660,6 +2854,10 @@ - (void) test_AWSConnectSingleSelectQuestionRuleCategoryAutomation { [self validateSecureCodingForClass:[AWSConnectSingleSelectQuestionRuleCategoryAutomation class]]; } +- (void) test_AWSConnectSort { + [self validateSecureCodingForClass:[AWSConnectSort class]]; +} + - (void) test_AWSConnectStartChatContactRequest { [self validateSecureCodingForClass:[AWSConnectStartChatContactRequest class]]; } @@ -2772,6 +2970,14 @@ - (void) test_AWSConnectTagCondition { [self validateSecureCodingForClass:[AWSConnectTagCondition class]]; } +- (void) test_AWSConnectTagContactRequest { + [self validateSecureCodingForClass:[AWSConnectTagContactRequest class]]; +} + +- (void) test_AWSConnectTagContactResponse { + [self validateSecureCodingForClass:[AWSConnectTagContactResponse class]]; +} + - (void) test_AWSConnectTagResourceRequest { [self validateSecureCodingForClass:[AWSConnectTagResourceRequest class]]; } @@ -2836,6 +3042,14 @@ - (void) test_AWSConnectTrafficDistributionGroupUserSummary { [self validateSecureCodingForClass:[AWSConnectTrafficDistributionGroupUserSummary class]]; } +- (void) test_AWSConnectTranscript { + [self validateSecureCodingForClass:[AWSConnectTranscript class]]; +} + +- (void) test_AWSConnectTranscriptCriteria { + [self validateSecureCodingForClass:[AWSConnectTranscriptCriteria class]]; +} + - (void) test_AWSConnectTransferContactRequest { [self validateSecureCodingForClass:[AWSConnectTransferContactRequest class]]; } @@ -2844,6 +3058,14 @@ - (void) test_AWSConnectTransferContactResponse { [self validateSecureCodingForClass:[AWSConnectTransferContactResponse class]]; } +- (void) test_AWSConnectUntagContactRequest { + [self validateSecureCodingForClass:[AWSConnectUntagContactRequest class]]; +} + +- (void) test_AWSConnectUntagContactResponse { + [self validateSecureCodingForClass:[AWSConnectUntagContactResponse class]]; +} + - (void) test_AWSConnectUntagResourceRequest { [self validateSecureCodingForClass:[AWSConnectUntagResourceRequest class]]; } @@ -2852,6 +3074,10 @@ - (void) test_AWSConnectUpdateAgentStatusRequest { [self validateSecureCodingForClass:[AWSConnectUpdateAgentStatusRequest class]]; } +- (void) test_AWSConnectUpdateCaseActionDefinition { + [self validateSecureCodingForClass:[AWSConnectUpdateCaseActionDefinition class]]; +} + - (void) test_AWSConnectUpdateContactAttributesRequest { [self validateSecureCodingForClass:[AWSConnectUpdateContactAttributesRequest class]]; } @@ -2916,6 +3142,14 @@ - (void) test_AWSConnectUpdateContactResponse { [self validateSecureCodingForClass:[AWSConnectUpdateContactResponse class]]; } +- (void) test_AWSConnectUpdateContactRoutingDataRequest { + [self validateSecureCodingForClass:[AWSConnectUpdateContactRoutingDataRequest class]]; +} + +- (void) test_AWSConnectUpdateContactRoutingDataResponse { + [self validateSecureCodingForClass:[AWSConnectUpdateContactRoutingDataResponse class]]; +} + - (void) test_AWSConnectUpdateContactScheduleRequest { [self validateSecureCodingForClass:[AWSConnectUpdateContactScheduleRequest class]]; } @@ -2968,6 +3202,10 @@ - (void) test_AWSConnectUpdatePhoneNumberResponse { [self validateSecureCodingForClass:[AWSConnectUpdatePhoneNumberResponse class]]; } +- (void) test_AWSConnectUpdatePredefinedAttributeRequest { + [self validateSecureCodingForClass:[AWSConnectUpdatePredefinedAttributeRequest class]]; +} + - (void) test_AWSConnectUpdatePromptRequest { [self validateSecureCodingForClass:[AWSConnectUpdatePromptRequest class]]; } @@ -3068,6 +3306,10 @@ - (void) test_AWSConnectUpdateUserPhoneConfigRequest { [self validateSecureCodingForClass:[AWSConnectUpdateUserPhoneConfigRequest class]]; } +- (void) test_AWSConnectUpdateUserProficienciesRequest { + [self validateSecureCodingForClass:[AWSConnectUpdateUserProficienciesRequest class]]; +} + - (void) test_AWSConnectUpdateUserRoutingProfileRequest { [self validateSecureCodingForClass:[AWSConnectUpdateUserRoutingProfileRequest class]]; } @@ -3124,6 +3366,14 @@ - (void) test_AWSConnectUserPhoneConfig { [self validateSecureCodingForClass:[AWSConnectUserPhoneConfig class]]; } +- (void) test_AWSConnectUserProficiency { + [self validateSecureCodingForClass:[AWSConnectUserProficiency class]]; +} + +- (void) test_AWSConnectUserProficiencyDisassociate { + [self validateSecureCodingForClass:[AWSConnectUserProficiencyDisassociate class]]; +} + - (void) test_AWSConnectUserQuickConnectConfig { [self validateSecureCodingForClass:[AWSConnectUserQuickConnectConfig class]]; } diff --git a/AWSConnectUnitTests/AWSGeneralConnectTests.m b/AWSConnectUnitTests/AWSGeneralConnectTests.m index 85294fb866d..0d582b05694 100644 --- a/AWSConnectUnitTests/AWSGeneralConnectTests.m +++ b/AWSConnectUnitTests/AWSGeneralConnectTests.m @@ -722,6 +722,53 @@ - (void)testAssociateTrafficDistributionGroupUserCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testAssociateUserProficiencies { + NSString *key = @"testAssociateUserProficiencies"; + 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] associateUserProficiencies:[AWSConnectAssociateUserProficienciesRequest 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)testAssociateUserProficienciesCompletionHandler { + NSString *key = @"testAssociateUserProficiencies"; + 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] associateUserProficiencies:[AWSConnectAssociateUserProficienciesRequest new] completionHandler:^(NSError * _Nullable error) { + XCTAssertNotNil(error); + XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", error.domain); + XCTAssertEqual(8848, error.code); + 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)testBatchAssociateAnalyticsDataSet { NSString *key = @"testBatchAssociateAnalyticsDataSet"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -1394,6 +1441,53 @@ - (void)testCreatePersistentContactAssociationCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testCreatePredefinedAttribute { + NSString *key = @"testCreatePredefinedAttribute"; + 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] createPredefinedAttribute:[AWSConnectCreatePredefinedAttributeRequest 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)testCreatePredefinedAttributeCompletionHandler { + NSString *key = @"testCreatePredefinedAttribute"; + 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] createPredefinedAttribute:[AWSConnectCreatePredefinedAttributeRequest new] completionHandler:^(NSError * _Nullable error) { + XCTAssertNotNil(error); + XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", error.domain); + XCTAssertEqual(8848, error.code); + 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)testCreatePrompt { NSString *key = @"testCreatePrompt"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -2445,6 +2539,53 @@ - (void)testDeleteIntegrationAssociationCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testDeletePredefinedAttribute { + NSString *key = @"testDeletePredefinedAttribute"; + 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] deletePredefinedAttribute:[AWSConnectDeletePredefinedAttributeRequest 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)testDeletePredefinedAttributeCompletionHandler { + NSString *key = @"testDeletePredefinedAttribute"; + 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] deletePredefinedAttribute:[AWSConnectDeletePredefinedAttributeRequest new] completionHandler:^(NSError * _Nullable error) { + XCTAssertNotNil(error); + XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", error.domain); + XCTAssertEqual(8848, error.code); + 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)testDeletePrompt { NSString *key = @"testDeletePrompt"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -3636,6 +3777,54 @@ - (void)testDescribePhoneNumberCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testDescribePredefinedAttribute { + NSString *key = @"testDescribePredefinedAttribute"; + 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] describePredefinedAttribute:[AWSConnectDescribePredefinedAttributeRequest 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)testDescribePredefinedAttributeCompletionHandler { + NSString *key = @"testDescribePredefinedAttribute"; + 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] describePredefinedAttribute:[AWSConnectDescribePredefinedAttributeRequest new] completionHandler:^(AWSConnectDescribePredefinedAttributeResponse* _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)testDescribePrompt { NSString *key = @"testDescribePrompt"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -4778,6 +4967,53 @@ - (void)testDisassociateTrafficDistributionGroupUserCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testDisassociateUserProficiencies { + NSString *key = @"testDisassociateUserProficiencies"; + 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] disassociateUserProficiencies:[AWSConnectDisassociateUserProficienciesRequest 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)testDisassociateUserProficienciesCompletionHandler { + NSString *key = @"testDisassociateUserProficiencies"; + 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] disassociateUserProficiencies:[AWSConnectDisassociateUserProficienciesRequest new] completionHandler:^(NSError * _Nullable error) { + XCTAssertNotNil(error); + XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", error.domain); + XCTAssertEqual(8848, error.code); + 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)testDismissUserContact { NSString *key = @"testDismissUserContact"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -6362,6 +6598,54 @@ - (void)testListPhoneNumbersV2CompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testListPredefinedAttributes { + NSString *key = @"testListPredefinedAttributes"; + 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] listPredefinedAttributes:[AWSConnectListPredefinedAttributesRequest 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)testListPredefinedAttributesCompletionHandler { + NSString *key = @"testListPredefinedAttributes"; + 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] listPredefinedAttributes:[AWSConnectListPredefinedAttributesRequest new] completionHandler:^(AWSConnectListPredefinedAttributesResponse* _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)testListPrompts { NSString *key = @"testListPrompts"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -7226,8 +7510,8 @@ - (void)testListUserHierarchyGroupsCompletionHandler { [AWSConnect removeConnectForKey:key]; } -- (void)testListUsers { - NSString *key = @"testListUsers"; +- (void)testListUserProficiencies { + NSString *key = @"testListUserProficiencies"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; [AWSConnect registerConnectWithConfiguration:configuration forKey:key]; @@ -7235,7 +7519,7 @@ - (void)testListUsers { XCTAssertNotNil(awsClient); XCTAssertNotNil(mockNetworking); [awsClient setValue:mockNetworking forKey:@"networking"]; - [[[[AWSConnect ConnectForKey:key] listUsers:[AWSConnectListUsersRequest new]] continueWithBlock:^id(AWSTask *task) { + [[[[AWSConnect ConnectForKey:key] listUserProficiencies:[AWSConnectListUserProficienciesRequest new]] continueWithBlock:^id(AWSTask *task) { XCTAssertNotNil(task.error); XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", task.error.domain); XCTAssertEqual(8848, task.error.code); @@ -7248,8 +7532,8 @@ - (void)testListUsers { [AWSConnect removeConnectForKey:key]; } -- (void)testListUsersCompletionHandler { - NSString *key = @"testListUsers"; +- (void)testListUserProficienciesCompletionHandler { + NSString *key = @"testListUserProficiencies"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; [AWSConnect registerConnectWithConfiguration:configuration forKey:key]; @@ -7260,7 +7544,7 @@ - (void)testListUsersCompletionHandler { dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); - [[AWSConnect ConnectForKey:key] listUsers:[AWSConnectListUsersRequest new] completionHandler:^(AWSConnectListUsersResponse* _Nullable response, NSError * _Nullable error) { + [[AWSConnect ConnectForKey:key] listUserProficiencies:[AWSConnectListUserProficienciesRequest new] completionHandler:^(AWSConnectListUserProficienciesResponse* _Nullable response, NSError * _Nullable error) { XCTAssertNotNil(error); XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", error.domain); XCTAssertEqual(8848, error.code); @@ -7274,8 +7558,56 @@ - (void)testListUsersCompletionHandler { [AWSConnect removeConnectForKey:key]; } -- (void)testListViewVersions { - NSString *key = @"testListViewVersions"; +- (void)testListUsers { + NSString *key = @"testListUsers"; + 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] listUsers:[AWSConnectListUsersRequest 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)testListUsersCompletionHandler { + NSString *key = @"testListUsers"; + 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] listUsers:[AWSConnectListUsersRequest new] completionHandler:^(AWSConnectListUsersResponse* _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)testListViewVersions { + NSString *key = @"testListViewVersions"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; [AWSConnect registerConnectWithConfiguration:configuration forKey:key]; @@ -7418,6 +7750,54 @@ - (void)testMonitorContactCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testPauseContact { + NSString *key = @"testPauseContact"; + 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] pauseContact:[AWSConnectPauseContactRequest 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)testPauseContactCompletionHandler { + NSString *key = @"testPauseContact"; + 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] pauseContact:[AWSConnectPauseContactRequest new] completionHandler:^(AWSConnectPauseContactResponse* _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)testPutUserStatus { NSString *key = @"testPutUserStatus"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -7561,6 +7941,54 @@ - (void)testReplicateInstanceCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testResumeContact { + NSString *key = @"testResumeContact"; + 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] resumeContact:[AWSConnectResumeContactRequest 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)testResumeContactCompletionHandler { + NSString *key = @"testResumeContact"; + 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] resumeContact:[AWSConnectResumeContactRequest new] completionHandler:^(AWSConnectResumeContactResponse* _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)testResumeContactRecording { NSString *key = @"testResumeContactRecording"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -7657,6 +8085,54 @@ - (void)testSearchAvailablePhoneNumbersCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testSearchContacts { + NSString *key = @"testSearchContacts"; + 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] searchContacts:[AWSConnectSearchContactsRequest 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)testSearchContactsCompletionHandler { + NSString *key = @"testSearchContacts"; + 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] searchContacts:[AWSConnectSearchContactsRequest new] completionHandler:^(AWSConnectSearchContactsResponse* _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)testSearchHoursOfOperations { NSString *key = @"testSearchHoursOfOperations"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -7705,6 +8181,54 @@ - (void)testSearchHoursOfOperationsCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testSearchPredefinedAttributes { + NSString *key = @"testSearchPredefinedAttributes"; + 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] searchPredefinedAttributes:[AWSConnectSearchPredefinedAttributesRequest 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)testSearchPredefinedAttributesCompletionHandler { + NSString *key = @"testSearchPredefinedAttributes"; + 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] searchPredefinedAttributes:[AWSConnectSearchPredefinedAttributesRequest new] completionHandler:^(AWSConnectSearchPredefinedAttributesResponse* _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)testSearchPrompts { NSString *key = @"testSearchPrompts"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -8713,6 +9237,54 @@ - (void)testSuspendContactRecordingCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testTagContact { + NSString *key = @"testTagContact"; + 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] tagContact:[AWSConnectTagContactRequest 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)testTagContactCompletionHandler { + NSString *key = @"testTagContact"; + 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] tagContact:[AWSConnectTagContactRequest new] completionHandler:^(AWSConnectTagContactResponse* _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)testTagResource { NSString *key = @"testTagResource"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -8808,6 +9380,54 @@ - (void)testTransferContactCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testUntagContact { + NSString *key = @"testUntagContact"; + 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] untagContact:[AWSConnectUntagContactRequest 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)testUntagContactCompletionHandler { + NSString *key = @"testUntagContact"; + 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] untagContact:[AWSConnectUntagContactRequest new] completionHandler:^(AWSConnectUntagContactResponse* _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)testUntagResource { NSString *key = @"testUntagResource"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -9286,6 +9906,54 @@ - (void)testUpdateContactFlowNameCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testUpdateContactRoutingData { + NSString *key = @"testUpdateContactRoutingData"; + 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] updateContactRoutingData:[AWSConnectUpdateContactRoutingDataRequest 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)testUpdateContactRoutingDataCompletionHandler { + NSString *key = @"testUpdateContactRoutingData"; + 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] updateContactRoutingData:[AWSConnectUpdateContactRoutingDataRequest new] completionHandler:^(AWSConnectUpdateContactRoutingDataResponse* _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)testUpdateContactSchedule { NSString *key = @"testUpdateContactSchedule"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -9666,6 +10334,53 @@ - (void)testUpdatePhoneNumberMetadataCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testUpdatePredefinedAttribute { + NSString *key = @"testUpdatePredefinedAttribute"; + 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] updatePredefinedAttribute:[AWSConnectUpdatePredefinedAttributeRequest 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)testUpdatePredefinedAttributeCompletionHandler { + NSString *key = @"testUpdatePredefinedAttribute"; + 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] updatePredefinedAttribute:[AWSConnectUpdatePredefinedAttributeRequest new] completionHandler:^(NSError * _Nullable error) { + XCTAssertNotNil(error); + XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", error.domain); + XCTAssertEqual(8848, error.code); + 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)testUpdatePrompt { NSString *key = @"testUpdatePrompt"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -10703,6 +11418,53 @@ - (void)testUpdateUserPhoneConfigCompletionHandler { [AWSConnect removeConnectForKey:key]; } +- (void)testUpdateUserProficiencies { + NSString *key = @"testUpdateUserProficiencies"; + 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] updateUserProficiencies:[AWSConnectUpdateUserProficienciesRequest 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)testUpdateUserProficienciesCompletionHandler { + NSString *key = @"testUpdateUserProficiencies"; + 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] updateUserProficiencies:[AWSConnectUpdateUserProficienciesRequest new] completionHandler:^(NSError * _Nullable error) { + XCTAssertNotNil(error); + XCTAssertEqualObjects(@"OCMockExpectedNetworkingError", error.domain); + XCTAssertEqual(8848, error.code); + 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)testUpdateUserRoutingProfile { NSString *key = @"testUpdateUserRoutingProfile"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; From 03122c39e28c06bfacfdfba75e494482c6793a47 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 28 Dec 2023 08:59:10 -0800 Subject: [PATCH 02/13] feat(AWSEC2): update models to latest (#5134) --- AWSEC2/AWSEC2Model.h | 36 +- AWSEC2/AWSEC2Model.m | 993 +++++++++++++++++++++++++++++++++++++++ AWSEC2/AWSEC2Resources.m | 37 +- 3 files changed, 1053 insertions(+), 13 deletions(-) diff --git a/AWSEC2/AWSEC2Model.h b/AWSEC2/AWSEC2Model.h index 96414c6db29..b1d52cbb296 100644 --- a/AWSEC2/AWSEC2Model.h +++ b/AWSEC2/AWSEC2Model.h @@ -1822,6 +1822,15 @@ typedef NS_ENUM(NSInteger, AWSEC2InstanceType) { AWSEC2InstanceTypeR7I_24xlarge, AWSEC2InstanceTypeR7I_48xlarge, AWSEC2InstanceTypeDL2q_24xlarge, + AWSEC2InstanceTypeMAC2_m2_metal, + AWSEC2InstanceTypeI4I_12xlarge, + AWSEC2InstanceTypeI4I_24xlarge, + AWSEC2InstanceTypeC7I_metal_24xl, + AWSEC2InstanceTypeC7I_metal_48xl, + AWSEC2InstanceTypeM7I_metal_24xl, + AWSEC2InstanceTypeM7I_metal_48xl, + AWSEC2InstanceTypeR7I_metal_24xl, + AWSEC2InstanceTypeR7I_metal_48xl, }; typedef NS_ENUM(NSInteger, AWSEC2InstanceTypeHypervisor) { @@ -5937,6 +5946,11 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) { */ @property (nonatomic, strong) NSNumber * _Nullable dryRun; +/** +

If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. Choose the network border group carefully as the EIP and the Amazon Web Services resource it is associated with must reside in the same network border group.

You can provision BYOIP address ranges to and advertise them in the following Local Zone network border groups:

  • us-east-1-dfw-2

  • us-west-2-lax-1

  • us-west-2-phx-2

You cannot provision or advertise BYOIPv6 address ranges in Local Zones at this time.

+ */ +@property (nonatomic, strong) NSString * _Nullable networkBorderGroup; + @end /** @@ -8421,6 +8435,11 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) { */ @property (nonatomic, strong) NSString * _Nullable detail; +/** +

If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. Choose the network border group carefully as the EIP and the Amazon Web Services resource it is associated with must reside in the same network border group.

You can provision BYOIP address ranges to and advertise them in the following Local Zone network border groups:

  • us-east-1-dfw-2

  • us-west-2-lax-1

  • us-west-2-phx-2

You cannot provision or advertise BYOIPv6 address ranges in Local Zones at this time.

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

The state of the address pool.

*/ @@ -35466,7 +35485,7 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) { @property (nonatomic, strong) NSNumber * _Nullable associateCarrierIpAddress; /** -

Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

+

Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.

*/ @property (nonatomic, strong) NSNumber * _Nullable associatePublicIpAddress; @@ -38390,7 +38409,7 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) { @property (nonatomic, strong) NSNumber * _Nullable httpPutResponseHopLimit; /** -

Indicates whether IMDSv2 is optional or required.

optional - When IMDSv2 is optional, you can choose to retrieve instance metadata with or without a session token in your request. If you retrieve the IAM role credentials without a token, the IMDSv1 role credentials are returned. If you retrieve the IAM role credentials using a valid session token, the IMDSv2 role credentials are returned.

required - When IMDSv2 is required, you must send a session token with any instance metadata retrieval requests. In this state, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.

Default: optional

+

Indicates whether IMDSv2 is required.

  • optional - IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.

  • required - IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.

*/ @property (nonatomic, assign) AWSEC2LaunchTemplateHttpTokensState httpTokens; @@ -38428,7 +38447,7 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) { @property (nonatomic, strong) NSNumber * _Nullable httpPutResponseHopLimit; /** -

IMDSv2 uses token-backed sessions. Set the use of HTTP tokens to optional (in other words, set the use of IMDSv2 to optional) or required (in other words, set the use of IMDSv2 to required).

  • optional - When IMDSv2 is optional, you can choose to retrieve instance metadata with or without a session token in your request. If you retrieve the IAM role credentials without a token, the IMDSv1 role credentials are returned. If you retrieve the IAM role credentials using a valid session token, the IMDSv2 role credentials are returned.

  • required - When IMDSv2 is required, you must send a session token with any instance metadata retrieval requests. In this state, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.

Default: optional

+

Indicates whether IMDSv2 is required.

  • optional - IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.

  • required - IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.

Default: If the value of ImdsSupport for the Amazon Machine Image (AMI) for your instance is v2.0, the default is required.

*/ @property (nonatomic, assign) AWSEC2LaunchTemplateHttpTokensState httpTokens; @@ -38451,7 +38470,7 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) { @property (nonatomic, strong) NSNumber * _Nullable associateCarrierIpAddress; /** -

Indicates whether to associate a public IPv4 address with eth0 for a new network interface.

+

Indicates whether to associate a public IPv4 address with eth0 for a new network interface.

Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.

*/ @property (nonatomic, strong) NSNumber * _Nullable associatePublicIpAddress; @@ -38569,7 +38588,7 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) { @property (nonatomic, strong) NSNumber * _Nullable associateCarrierIpAddress; /** -

Associates a public IPv4 address with eth0 for a new network interface.

+

Associates a public IPv4 address with eth0 for a new network interface.

Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.

*/ @property (nonatomic, strong) NSNumber * _Nullable associatePublicIpAddress; @@ -45860,6 +45879,11 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) { */ @property (nonatomic, strong) NSNumber * _Nullable multiRegion; +/** +

If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. Choose the network border group carefully as the EIP and the Amazon Web Services resource it is associated with must reside in the same network border group.

You can provision BYOIP address ranges to and advertise them in the following Local Zone network border groups:

  • us-east-1-dfw-2

  • us-west-2-lax-1

  • us-west-2-phx-2

You cannot provision or advertise BYOIPv6 address ranges in Local Zones at this time.

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

The tags to apply to the address pool.

*/ @@ -47670,7 +47694,7 @@ typedef NS_ENUM(NSInteger, AWSEC2scope) { @property (nonatomic, strong) NSArray * _Nullable securityGroups; /** -

The tags to apply to the resources that are created during instance launch.

You can specify tags for the following resources only:

  • Instances

  • Volumes

  • Elastic graphics

  • Spot Instance requests

  • Network interfaces

To tag a resource after it has been created, see CreateTags.

To tag the launch template itself, you must use the TagSpecification parameter.

+

The tags to apply to the resources that are created during instance launch. These tags are not applied to the launch template.

*/ @property (nonatomic, strong) NSArray * _Nullable tagSpecifications; diff --git a/AWSEC2/AWSEC2Model.m b/AWSEC2/AWSEC2Model.m index 96b3097c626..6bc27391d77 100644 --- a/AWSEC2/AWSEC2Model.m +++ b/AWSEC2/AWSEC2Model.m @@ -743,6 +743,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"asn" : @"Asn", @"cidr" : @"Cidr", @"dryRun" : @"DryRun", + @"networkBorderGroup" : @"NetworkBorderGroup", }; } @@ -2979,6 +2980,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"asnAssociations" : @"AsnAssociations", @"cidr" : @"Cidr", @"detail" : @"Description", + @"networkBorderGroup" : @"NetworkBorderGroup", @"state" : @"State", @"statusMessage" : @"StatusMessage", }; @@ -9020,6 +9022,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -10567,6 +10596,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -21525,6 +21572,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -23072,6 +23146,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -28203,6 +28295,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -29750,6 +29869,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -38980,6 +39117,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -40527,6 +40691,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -43133,6 +43315,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -44680,6 +44889,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -47034,6 +47261,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -48581,6 +48835,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -54934,6 +55206,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -56481,6 +56780,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -59420,6 +59737,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -60967,6 +61311,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -65659,6 +66021,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -67206,6 +67595,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -69626,6 +70033,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -71173,6 +71607,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -75600,6 +76052,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -77147,6 +77626,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -80590,6 +81087,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -82137,6 +82661,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -90661,6 +91203,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"detail" : @"Description", @"dryRun" : @"DryRun", @"multiRegion" : @"MultiRegion", + @"networkBorderGroup" : @"NetworkBorderGroup", @"poolTagSpecifications" : @"PoolTagSpecifications", @"publiclyAdvertisable" : @"PubliclyAdvertisable", }; @@ -94729,6 +95272,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -96276,6 +96846,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -98817,6 +99405,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -100364,6 +100979,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -102847,6 +103480,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -104394,6 +105054,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -106865,6 +107543,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -108412,6 +109117,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -110925,6 +111648,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -112472,6 +113222,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -115056,6 +115824,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -116603,6 +117398,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -119560,6 +120373,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -121107,6 +121947,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -124227,6 +125085,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -125774,6 +126659,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -129768,6 +130671,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -131315,6 +132245,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } @@ -135047,6 +135995,33 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { if ([value caseInsensitiveCompare:@"dl2q.24xlarge"] == NSOrderedSame) { return @(AWSEC2InstanceTypeDL2q_24xlarge); } + if ([value caseInsensitiveCompare:@"mac2-m2.metal"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeMAC2_m2_metal); + } + if ([value caseInsensitiveCompare:@"i4i.12xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_12xlarge); + } + if ([value caseInsensitiveCompare:@"i4i.24xlarge"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeI4I_24xlarge); + } + if ([value caseInsensitiveCompare:@"c7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"c7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeC7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"m7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeM7I_metal_48xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-24xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_24xl); + } + if ([value caseInsensitiveCompare:@"r7i.metal-48xl"] == NSOrderedSame) { + return @(AWSEC2InstanceTypeR7I_metal_48xl); + } return @(AWSEC2InstanceTypeUnknown); } reverseBlock:^NSString *(NSNumber *value) { switch ([value integerValue]) { @@ -136594,6 +137569,24 @@ + (NSValueTransformer *)instanceTypeJSONTransformer { return @"r7i.48xlarge"; case AWSEC2InstanceTypeDL2q_24xlarge: return @"dl2q.24xlarge"; + case AWSEC2InstanceTypeMAC2_m2_metal: + return @"mac2-m2.metal"; + case AWSEC2InstanceTypeI4I_12xlarge: + return @"i4i.12xlarge"; + case AWSEC2InstanceTypeI4I_24xlarge: + return @"i4i.24xlarge"; + case AWSEC2InstanceTypeC7I_metal_24xl: + return @"c7i.metal-24xl"; + case AWSEC2InstanceTypeC7I_metal_48xl: + return @"c7i.metal-48xl"; + case AWSEC2InstanceTypeM7I_metal_24xl: + return @"m7i.metal-24xl"; + case AWSEC2InstanceTypeM7I_metal_48xl: + return @"m7i.metal-48xl"; + case AWSEC2InstanceTypeR7I_metal_24xl: + return @"r7i.metal-24xl"; + case AWSEC2InstanceTypeR7I_metal_48xl: + return @"r7i.metal-48xl"; default: return nil; } diff --git a/AWSEC2/AWSEC2Resources.m b/AWSEC2/AWSEC2Resources.m index e2d180881dd..849bcd093c2 100644 --- a/AWSEC2/AWSEC2Resources.m +++ b/AWSEC2/AWSEC2Resources.m @@ -6986,6 +6986,10 @@ - (NSString *)definitionString { \"DryRun\":{\ \"shape\":\"Boolean\",\ \"documentation\":\"

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

\"\ + },\ + \"NetworkBorderGroup\":{\ + \"shape\":\"String\",\ + \"documentation\":\"

If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. Choose the network border group carefully as the EIP and the Amazon Web Services resource it is associated with must reside in the same network border group.

You can provision BYOIP address ranges to and advertise them in the following Local Zone network border groups:

  • us-east-1-dfw-2

  • us-west-2-lax-1

  • us-west-2-phx-2

You cannot provision or advertise BYOIPv6 address ranges in Local Zones at this time.

\"\ }\ }\ },\ @@ -9667,6 +9671,11 @@ - (NSString *)definitionString { \"shape\":\"ByoipCidrState\",\ \"documentation\":\"

The state of the address pool.

\",\ \"locationName\":\"state\"\ + },\ + \"NetworkBorderGroup\":{\ + \"shape\":\"String\",\ + \"documentation\":\"

If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. Choose the network border group carefully as the EIP and the Amazon Web Services resource it is associated with must reside in the same network border group.

You can provision BYOIP address ranges to and advertise them in the following Local Zone network border groups:

  • us-east-1-dfw-2

  • us-west-2-lax-1

  • us-west-2-phx-2

You cannot provision or advertise BYOIPv6 address ranges in Local Zones at this time.

\",\ + \"locationName\":\"networkBorderGroup\"\ }\ },\ \"documentation\":\"

Information about an address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP).

\"\ @@ -35308,7 +35317,7 @@ - (NSString *)definitionString { \"members\":{\ \"AssociatePublicIpAddress\":{\ \"shape\":\"Boolean\",\ - \"documentation\":\"

Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

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

Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.

\",\ \"locationName\":\"associatePublicIpAddress\"\ },\ \"DeleteOnTermination\":{\ @@ -36788,7 +36797,16 @@ - (NSString *)definitionString { \"r7i.16xlarge\",\ \"r7i.24xlarge\",\ \"r7i.48xlarge\",\ - \"dl2q.24xlarge\"\ + \"dl2q.24xlarge\",\ + \"mac2-m2.metal\",\ + \"i4i.12xlarge\",\ + \"i4i.24xlarge\",\ + \"c7i.metal-24xl\",\ + \"c7i.metal-48xl\",\ + \"m7i.metal-24xl\",\ + \"m7i.metal-48xl\",\ + \"r7i.metal-24xl\",\ + \"r7i.metal-48xl\"\ ]\ },\ \"InstanceTypeHypervisor\":{\ @@ -37836,6 +37854,7 @@ - (NSString *)definitionString { },\ \"SourceResource\":{\ \"shape\":\"IpamPoolSourceResource\",\ + \"documentation\":\"

The resource used to provision CIDRs to a resource planning pool.

\",\ \"locationName\":\"sourceResource\"\ }\ },\ @@ -39610,7 +39629,7 @@ - (NSString *)definitionString { },\ \"HttpTokens\":{\ \"shape\":\"LaunchTemplateHttpTokensState\",\ - \"documentation\":\"

Indicates whether IMDSv2 is optional or required.

optional - When IMDSv2 is optional, you can choose to retrieve instance metadata with or without a session token in your request. If you retrieve the IAM role credentials without a token, the IMDSv1 role credentials are returned. If you retrieve the IAM role credentials using a valid session token, the IMDSv2 role credentials are returned.

required - When IMDSv2 is required, you must send a session token with any instance metadata retrieval requests. In this state, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.

Default: optional

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

Indicates whether IMDSv2 is required.

  • optional - IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.

  • required - IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.

\",\ \"locationName\":\"httpTokens\"\ },\ \"HttpPutResponseHopLimit\":{\ @@ -39641,7 +39660,7 @@ - (NSString *)definitionString { \"members\":{\ \"HttpTokens\":{\ \"shape\":\"LaunchTemplateHttpTokensState\",\ - \"documentation\":\"

IMDSv2 uses token-backed sessions. Set the use of HTTP tokens to optional (in other words, set the use of IMDSv2 to optional) or required (in other words, set the use of IMDSv2 to required).

  • optional - When IMDSv2 is optional, you can choose to retrieve instance metadata with or without a session token in your request. If you retrieve the IAM role credentials without a token, the IMDSv1 role credentials are returned. If you retrieve the IAM role credentials using a valid session token, the IMDSv2 role credentials are returned.

  • required - When IMDSv2 is required, you must send a session token with any instance metadata retrieval requests. In this state, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.

Default: optional

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

Indicates whether IMDSv2 is required.

  • optional - IMDSv2 is optional. You can choose whether to send a session token in your instance metadata retrieval requests. If you retrieve IAM role credentials without a session token, you receive the IMDSv1 role credentials. If you retrieve IAM role credentials using a valid session token, you receive the IMDSv2 role credentials.

  • required - IMDSv2 is required. You must send a session token in your instance metadata retrieval requests. With this option, retrieving the IAM role credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.

Default: If the value of ImdsSupport for the Amazon Machine Image (AMI) for your instance is v2.0, the default is required.

\"\ },\ \"HttpPutResponseHopLimit\":{\ \"shape\":\"Integer\",\ @@ -39693,7 +39712,7 @@ - (NSString *)definitionString { },\ \"AssociatePublicIpAddress\":{\ \"shape\":\"Boolean\",\ - \"documentation\":\"

Indicates whether to associate a public IPv4 address with eth0 for a new network interface.

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

Indicates whether to associate a public IPv4 address with eth0 for a new network interface.

Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.

\",\ \"locationName\":\"associatePublicIpAddress\"\ },\ \"DeleteOnTermination\":{\ @@ -39815,7 +39834,7 @@ - (NSString *)definitionString { },\ \"AssociatePublicIpAddress\":{\ \"shape\":\"Boolean\",\ - \"documentation\":\"

Associates a public IPv4 address with eth0 for a new network interface.

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

Associates a public IPv4 address with eth0 for a new network interface.

Starting on February 1, 2024, Amazon Web Services will charge for all public IPv4 addresses, including public IPv4 addresses associated with running instances and Elastic IP addresses. For more information, see the Public IPv4 Address tab on the Amazon VPC pricing page.

\"\ },\ \"DeleteOnTermination\":{\ \"shape\":\"Boolean\",\ @@ -47363,6 +47382,10 @@ - (NSString *)definitionString { \"MultiRegion\":{\ \"shape\":\"Boolean\",\ \"documentation\":\"

Reserved.

\"\ + },\ + \"NetworkBorderGroup\":{\ + \"shape\":\"String\",\ + \"documentation\":\"

If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. Choose the network border group carefully as the EIP and the Amazon Web Services resource it is associated with must reside in the same network border group.

You can provision BYOIP address ranges to and advertise them in the following Local Zone network border groups:

  • us-east-1-dfw-2

  • us-west-2-lax-1

  • us-west-2-phx-2

You cannot provision or advertise BYOIPv6 address ranges in Local Zones at this time.

\"\ }\ }\ },\ @@ -49085,7 +49108,7 @@ - (NSString *)definitionString { },\ \"TagSpecifications\":{\ \"shape\":\"LaunchTemplateTagSpecificationRequestList\",\ - \"documentation\":\"

The tags to apply to the resources that are created during instance launch.

You can specify tags for the following resources only:

  • Instances

  • Volumes

  • Elastic graphics

  • Spot Instance requests

  • Network interfaces

To tag a resource after it has been created, see CreateTags.

To tag the launch template itself, you must use the TagSpecification parameter.

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

The tags to apply to the resources that are created during instance launch. These tags are not applied to the launch template.

\",\ \"locationName\":\"TagSpecification\"\ },\ \"ElasticGpuSpecifications\":{\ From 1ead57c82cba943cbab59ed892fa9d70a0fd7fdf Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 28 Dec 2023 09:00:01 -0800 Subject: [PATCH 03/13] feat(AWSCognitoIdentityProvider): update models to latest (#5132) --- .../AWSCognitoIdentityProviderModel.h | 161 +++++++++------- .../AWSCognitoIdentityProviderModel.m | 41 ++++ .../AWSCognitoIdentityProviderResources.m | 179 ++++++++++-------- .../AWSCognitoIdentityProviderService.h | 38 ++-- ...gnitoIdentityProviderNSSecureCodingTests.m | 5 + 5 files changed, 265 insertions(+), 159 deletions(-) diff --git a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.h b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.h index c590c618975..96253c086ec 100644 --- a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.h +++ b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.h @@ -262,6 +262,12 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderOAuthFlowType) { AWSCognitoIdentityProviderOAuthFlowTypeClientCredentials, }; +typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionType) { + AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionTypeUnknown, + AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionTypeV10, + AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionTypeV20, +}; + typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderPreventUserExistenceErrorTypes) { AWSCognitoIdentityProviderPreventUserExistenceErrorTypesUnknown, AWSCognitoIdentityProviderPreventUserExistenceErrorTypesLegacy, @@ -535,6 +541,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @class AWSCognitoIdentityProviderNotifyEmailType; @class AWSCognitoIdentityProviderNumberAttributeConstraintsType; @class AWSCognitoIdentityProviderPasswordPolicyType; +@class AWSCognitoIdentityProviderPreTokenGenerationVersionConfigType; @class AWSCognitoIdentityProviderProviderDescription; @class AWSCognitoIdentityProviderProviderUserIdentifierType; @class AWSCognitoIdentityProviderRecoveryOptionType; @@ -722,7 +729,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse /** -

The group name.

+

The name of the group that you want to add your user to.

*/ @property (nonatomic, strong) NSString * _Nullable groupName; @@ -732,7 +739,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The username for the user.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -756,7 +763,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name for which you want to confirm user registration.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -787,7 +794,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) AWSCognitoIdentityProviderMessageTemplateType * _Nullable inviteMessageTemplate; /** -

The user account expiration limit, in days, after which a new account that hasn't signed in is no longer usable. To reset the account after that time limit, you must call AdminCreateUser again, specifying "RESEND" for the MessageAction parameter. The default value for this parameter is 7.

If you set a value for TemporaryPasswordValidityDays in PasswordPolicy, that value will be used, and UnusedAccountValidityDays will be no longer be an available parameter for that user pool.

+

The user account expiration limit, in days, after which a new account that hasn't signed in is no longer usable. To reset the account after that time limit, you must call AdminCreateUser again, specifying "RESEND" for the MessageAction parameter. The default value for this parameter is 7.

If you set a value for TemporaryPasswordValidityDays in PasswordPolicy, that value will be used, and UnusedAccountValidityDays will be no longer be an available parameter for that user pool.

*/ @property (nonatomic, strong) NSNumber * _Nullable unusedAccountValidityDays; @@ -841,7 +848,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable username; /** -

The user's validation data. This is an array of name-value pairs that contain user attributes and attribute values that you can use for custom validation, such as restricting the types of user accounts that can be registered. For example, you might choose to allow or disallow user sign-up based on the user's domain.

To configure custom validation, you must create a Pre Sign-up Lambda trigger for the user pool as described in the Amazon Cognito Developer Guide. The Lambda trigger receives the validation data and uses it in the validation process.

The user's validation data isn't persisted.

+

Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.

Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.

For more information about the pre sign-up Lambda trigger, see Pre sign-up Lambda trigger.

*/ @property (nonatomic, strong) NSArray * _Nullable validationData; @@ -878,7 +885,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name of the user from which you would like to delete attributes.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -905,7 +912,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name of the user you want to delete.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -950,7 +957,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name of the user you want to disable.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -977,7 +984,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name of the user you want to enable.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1009,7 +1016,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1033,7 +1040,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1066,7 +1073,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name of the user you want to retrieve.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1154,7 +1161,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable clientId; /** -

A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.

You create custom workflows by assigning Lambda functions to user pool triggers. When you use the AdminInitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:

  • Pre signup

  • Pre authentication

  • User migration

When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a validationData attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminInitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow for your specific needs.

When you use the AdminInitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:

  • Post authentication

  • Custom message

  • Pre token generation

  • Create auth challenge

  • Define auth challenge

  • Verify auth challenge

For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.

  • Validate the ClientMetadata value.

  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

+

A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.

You create custom workflows by assigning Lambda functions to user pool triggers. When you use the AdminInitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:

  • Pre signup

  • Pre authentication

  • User migration

When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a validationData attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminInitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow for your specific needs.

When you use the AdminInitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:

  • Post authentication

  • Custom message

  • Pre token generation

  • Create auth challenge

  • Define auth challenge

For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.

  • Validate the ClientMetadata value.

  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

*/ @property (nonatomic, strong) NSDictionary * _Nullable clientMetadata; @@ -1182,7 +1189,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) AWSCognitoIdentityProviderAuthenticationResultType * _Nullable authenticationResult; /** -

The name of the challenge that you're responding to with this call. This is returned in the AdminInitiateAuth response if you must pass another challenge.

  • MFA_SETUP: If MFA is required, users who don't have at least one of the MFA methods set up are presented with an MFA_SETUP challenge. The user must set up at least one MFA type to continue to authenticate.

  • SELECT_MFA_TYPE: Selects the MFA type. Valid MFA options are SMS_MFA for text SMS MFA, and SOFTWARE_TOKEN_MFA for time-based one-time password (TOTP) software token MFA.

  • SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via SMS.

  • PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations.

  • CUSTOM_CHALLENGE: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.

  • DEVICE_SRP_AUTH: If device tracking was activated in your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.

  • DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices only.

  • ADMIN_NO_SRP_AUTH: This is returned if you must authenticate with USERNAME and PASSWORD directly. An app client must be enabled to use this flow.

  • NEW_PASSWORD_REQUIRED: For users who are required to change their passwords after successful first login. Respond to this challenge with NEW_PASSWORD and any required attributes that Amazon Cognito returned in the requiredAttributes parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see AdminRespondToAuthChallenge.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In AdminRespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the AdminUpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP: For users who are required to set up an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters MFA_CAN_SETUP value.

    To set up software token MFA, use the session returned here from InitiateAuth as an input to AssociateSoftwareToken, and use the session returned by VerifySoftwareToken as an input to RespondToAuthChallenge with challenge name MFA_SETUP to complete sign-in. To set up SMS MFA, users will need help from an administrator to add a phone number to their account and then call InitiateAuth again to restart sign-in.

+

The name of the challenge that you're responding to with this call. This is returned in the AdminInitiateAuth response if you must pass another challenge.

  • MFA_SETUP: If MFA is required, users who don't have at least one of the MFA methods set up are presented with an MFA_SETUP challenge. The user must set up at least one MFA type to continue to authenticate.

  • SELECT_MFA_TYPE: Selects the MFA type. Valid MFA options are SMS_MFA for text SMS MFA, and SOFTWARE_TOKEN_MFA for time-based one-time password (TOTP) software token MFA.

  • SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via SMS.

  • PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations.

  • CUSTOM_CHALLENGE: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.

  • DEVICE_SRP_AUTH: If device tracking was activated in your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.

  • DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices only.

  • ADMIN_NO_SRP_AUTH: This is returned if you must authenticate with USERNAME and PASSWORD directly. An app client must be enabled to use this flow.

  • NEW_PASSWORD_REQUIRED: For users who are required to change their passwords after successful first login. Respond to this challenge with NEW_PASSWORD and any required attributes that Amazon Cognito returned in the requiredAttributes parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see AdminRespondToAuthChallenge.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In AdminRespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the AdminUpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP: For users who are required to set up an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters MFAS_CAN_SETUP value.

    To set up software token MFA, use the session returned here from InitiateAuth as an input to AssociateSoftwareToken, and use the session returned by VerifySoftwareToken as an input to RespondToAuthChallenge with challenge name MFA_SETUP to complete sign-in. To set up SMS MFA, users will need help from an administrator to add a phone number to their account and then call InitiateAuth again to restart sign-in.

*/ @property (nonatomic, assign) AWSCognitoIdentityProviderChallengeNameType challengeName; @@ -1242,7 +1249,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSNumber * _Nullable limit; /** -

The pagination token.

+

This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.

*/ @property (nonatomic, strong) NSString * _Nullable paginationToken; @@ -1252,7 +1259,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1270,7 +1277,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSArray * _Nullable devices; /** -

The pagination token.

+

The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.

*/ @property (nonatomic, strong) NSString * _Nullable paginationToken; @@ -1298,7 +1305,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The username for the user.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1344,7 +1351,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user pool username or an alias.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1385,7 +1392,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The username for the user.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1409,7 +1416,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name of the user whose password you want to reset.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1441,7 +1448,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, assign) AWSCognitoIdentityProviderChallengeNameType challengeName; /** -

The challenge responses. These are inputs corresponding to the value of ChallengeName, for example:

  • SMS_MFA: SMS_MFA_CODE, USERNAME, SECRET_HASH (if app client is configured with client secret).

  • PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, TIMESTAMP, USERNAME, SECRET_HASH (if app client is configured with client secret).

    PASSWORD_VERIFIER requires DEVICE_KEY when signing in with a remembered device.

  • ADMIN_NO_SRP_AUTH: PASSWORD, USERNAME, SECRET_HASH (if app client is configured with client secret).

  • NEW_PASSWORD_REQUIRED: NEW_PASSWORD, USERNAME, SECRET_HASH (if app client is configured with client secret). To set any required attributes that Amazon Cognito returned as requiredAttributes in the AdminInitiateAuth response, add a userAttributes.attributename parameter. This parameter can also set values for writable attributes that aren't required by your user pool.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In AdminRespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the AdminUpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP requires USERNAME, plus you must use the session value returned by VerifySoftwareToken in the Session parameter.

The value of the USERNAME attribute must be the user's actual username, not an alias (such as an email address or phone number). To make this simpler, the AdminInitiateAuth response includes the actual username value in the USERNAMEUSER_ID_FOR_SRP attribute. This happens even if you specified an alias in your call to AdminInitiateAuth.

For more information about SECRET_HASH, see Computing secret hash values. For information about DEVICE_KEY, see Working with user devices in your user pool.

+

The responses to the challenge that you received in the previous request. Each challenge has its own required response parameters. The following examples are partial JSON request bodies that highlight challenge-response parameters.

You must provide a SECRET_HASH parameter in all challenge responses to an app client that has a client secret.

SMS_MFA

"ChallengeName": "SMS_MFA", "ChallengeResponses": {"SMS_MFA_CODE": "[SMS_code]", "USERNAME": "[username]"}

PASSWORD_VERIFIER

"ChallengeName": "PASSWORD_VERIFIER", "ChallengeResponses": {"PASSWORD_CLAIM_SIGNATURE": "[claim_signature]", "PASSWORD_CLAIM_SECRET_BLOCK": "[secret_block]", "TIMESTAMP": [timestamp], "USERNAME": "[username]"}

Add "DEVICE_KEY" when you sign in with a remembered device.

CUSTOM_CHALLENGE

"ChallengeName": "CUSTOM_CHALLENGE", "ChallengeResponses": {"USERNAME": "[username]", "ANSWER": "[challenge_answer]"}

Add "DEVICE_KEY" when you sign in with a remembered device.

NEW_PASSWORD_REQUIRED

"ChallengeName": "NEW_PASSWORD_REQUIRED", "ChallengeResponses": {"NEW_PASSWORD": "[new_password]", "USERNAME": "[username]"}

To set any required attributes that InitiateAuth returned in an requiredAttributes parameter, add "userAttributes.[attribute_name]": "[attribute_value]". This parameter can also set values for writable attributes that aren't required by your user pool.

In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

SOFTWARE_TOKEN_MFA

"ChallengeName": "SOFTWARE_TOKEN_MFA", "ChallengeResponses": {"USERNAME": "[username]", "SOFTWARE_TOKEN_MFA_CODE": [authenticator_code]}

DEVICE_SRP_AUTH

"ChallengeName": "DEVICE_SRP_AUTH", "ChallengeResponses": {"USERNAME": "[username]", "DEVICE_KEY": "[device_key]", "SRP_A": "[srp_a]"}

DEVICE_PASSWORD_VERIFIER

"ChallengeName": "DEVICE_PASSWORD_VERIFIER", "ChallengeResponses": {"DEVICE_KEY": "[device_key]", "PASSWORD_CLAIM_SIGNATURE": "[claim_signature]", "PASSWORD_CLAIM_SECRET_BLOCK": "[secret_block]", "TIMESTAMP": [timestamp], "USERNAME": "[username]"}

MFA_SETUP

"ChallengeName": "MFA_SETUP", "ChallengeResponses": {"USERNAME": "[username]"}, "SESSION": "[Session ID from VerifySoftwareToken]"

SELECT_MFA_TYPE

"ChallengeName": "SELECT_MFA_TYPE", "ChallengeResponses": {"USERNAME": "[username]", "ANSWER": "[SMS_MFA or SOFTWARE_TOKEN_MFA]"}

For more information about SECRET_HASH, see Computing secret hash values. For information about DEVICE_KEY, see Working with user devices in your user pool.

*/ @property (nonatomic, strong) NSDictionary * _Nullable challengeResponses; @@ -1522,7 +1529,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user pool username or alias.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1558,7 +1565,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name of the user whose password you want to set.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1590,7 +1597,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name of the user whose options you're setting.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1626,7 +1633,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user pool username.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1663,7 +1670,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1700,7 +1707,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name of the user for whom you want to update user attributes.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -1727,7 +1734,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user name.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -2132,7 +2139,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) AWSCognitoIdentityProviderUserContextDataType * _Nullable userContextData; /** -

The user name of the user for whom you want to enter a code to retrieve a forgotten password.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -2189,7 +2196,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) AWSCognitoIdentityProviderUserContextDataType * _Nullable userContextData; /** -

The user name of the user whose registration you want to confirm.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -2500,7 +2507,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, assign) AWSCognitoIdentityProviderPreventUserExistenceErrorTypes preventUserExistenceErrors; /** -

The read attributes.

+

The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An example of this kind of activity is when your user selects a link to view their profile information. Your app makes a GetUser API request to retrieve and display your user's profile data.

When you don't specify the ReadAttributes for your app client, your app can read the values of email_verified, phone_number_verified, and the Standard attributes of your user pool. When your user pool has read access to these default attributes, ReadAttributes doesn't return any information. Amazon Cognito only populates ReadAttributes in the API response if you have specified your own custom set of read attributes.

*/ @property (nonatomic, strong) NSArray * _Nullable readAttributes; @@ -2525,7 +2532,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user pool attributes that the app client can write to.

If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool.

+

The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list. An example of this kind of activity is when you present your user with a form to update their profile information and they change their last name. Your app then makes an UpdateUserAttributes API request and sets family_name to the new value.

When you don't specify the WriteAttributes for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, WriteAttributes doesn't return any information. Amazon Cognito only populates WriteAttributes in the API response if you have specified your own custom set of write attributes.

If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool.

*/ @property (nonatomic, strong) NSArray * _Nullable writeAttributes; @@ -2732,38 +2739,38 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @end /** -

A custom email sender Lambda configuration type.

+

The properties of a custom email sender Lambda trigger.

Required parameters: [LambdaVersion, LambdaArn] */ @interface AWSCognitoIdentityProviderCustomEmailLambdaVersionConfigType : AWSModel /** -

The Amazon Resource Name (ARN) of the Lambda function that Amazon Cognito activates to send email notifications to users.

+

The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.

*/ @property (nonatomic, strong) NSString * _Nullable lambdaArn; /** -

Signature of the "request" attribute in the "event" information Amazon Cognito passes to your custom email Lambda function. The only supported value is V1_0.

+

The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.

You must use a LambdaVersion of V1_0 with a custom sender function.

*/ @property (nonatomic, assign) AWSCognitoIdentityProviderCustomEmailSenderLambdaVersionType lambdaVersion; @end /** -

A custom SMS sender Lambda configuration type.

+

The properties of a custom SMS sender Lambda trigger.

Required parameters: [LambdaVersion, LambdaArn] */ @interface AWSCognitoIdentityProviderCustomSMSLambdaVersionConfigType : AWSModel /** -

The Amazon Resource Name (ARN) of the Lambda function that Amazon Cognito activates to send SMS notifications to users.

+

The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.

*/ @property (nonatomic, strong) NSString * _Nullable lambdaArn; /** -

Signature of the "request" attribute in the "event" information that Amazon Cognito passes to your custom SMS Lambda function. The only supported value is V1_0.

+

The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.

You must use a LambdaVersion of V1_0 with a custom sender function.

*/ @property (nonatomic, assign) AWSCognitoIdentityProviderCustomSMSSenderLambdaVersionType lambdaVersion; @@ -3415,7 +3422,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) AWSCognitoIdentityProviderUserContextDataType * _Nullable userContextData; /** -

The user name of the user for whom you want to enter a code to reset a forgotten password.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -3925,7 +3932,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable clientId; /** -

A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.

You create custom workflows by assigning Lambda functions to user pool triggers. When you use the InitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:

  • Pre signup

  • Pre authentication

  • User migration

When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a validationData attribute, which provides the data that you assigned to the ClientMetadata parameter in your InitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow for your specific needs.

When you use the InitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:

  • Post authentication

  • Custom message

  • Pre token generation

  • Create auth challenge

  • Define auth challenge

  • Verify auth challenge

For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.

  • Validate the ClientMetadata value.

  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

+

A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.

You create custom workflows by assigning Lambda functions to user pool triggers. When you use the InitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:

  • Pre signup

  • Pre authentication

  • User migration

When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a validationData attribute, which provides the data that you assigned to the ClientMetadata parameter in your InitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow for your specific needs.

When you use the InitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:

  • Post authentication

  • Custom message

  • Pre token generation

  • Create auth challenge

  • Define auth challenge

For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.

  • Validate the ClientMetadata value.

  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

*/ @property (nonatomic, strong) NSDictionary * _Nullable clientMetadata; @@ -3948,7 +3955,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) AWSCognitoIdentityProviderAuthenticationResultType * _Nullable authenticationResult; /** -

The name of the challenge that you're responding to with this call. This name is returned in the AdminInitiateAuth response if you must pass another challenge.

Valid values include the following:

All of the following challenges require USERNAME and SECRET_HASH (if applicable) in the parameters.

  • SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via SMS.

  • PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations.

  • CUSTOM_CHALLENGE: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.

  • DEVICE_SRP_AUTH: If device tracking was activated on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.

  • DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices only.

  • NEW_PASSWORD_REQUIRED: For users who are required to change their passwords after successful first login.

    Respond to this challenge with NEW_PASSWORD and any required attributes that Amazon Cognito returned in the requiredAttributes parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see RespondToAuthChallenge.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP: For users who are required to setup an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters MFA_CAN_SETUP value.

    To set up software token MFA, use the session returned here from InitiateAuth as an input to AssociateSoftwareToken. Use the session returned by VerifySoftwareToken as an input to RespondToAuthChallenge with challenge name MFA_SETUP to complete sign-in. To set up SMS MFA, an administrator should help the user to add a phone number to their account, and then the user should call InitiateAuth again to restart sign-in.

+

The name of the challenge that you're responding to with this call. This name is returned in the InitiateAuth response if you must pass another challenge.

Valid values include the following:

All of the following challenges require USERNAME and SECRET_HASH (if applicable) in the parameters.

  • SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via SMS.

  • PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations.

  • CUSTOM_CHALLENGE: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.

  • DEVICE_SRP_AUTH: If device tracking was activated on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.

  • DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices only.

  • NEW_PASSWORD_REQUIRED: For users who are required to change their passwords after successful first login.

    Respond to this challenge with NEW_PASSWORD and any required attributes that Amazon Cognito returned in the requiredAttributes parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see RespondToAuthChallenge.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP: For users who are required to setup an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters MFAS_CAN_SETUP value.

    To set up software token MFA, use the session returned here from InitiateAuth as an input to AssociateSoftwareToken. Use the session returned by VerifySoftwareToken as an input to RespondToAuthChallenge with challenge name MFA_SETUP to complete sign-in. To set up SMS MFA, an administrator should help the user to add a phone number to their account, and then the user should call InitiateAuth again to restart sign-in.

*/ @property (nonatomic, assign) AWSCognitoIdentityProviderChallengeNameType challengeName; @@ -4021,10 +4028,15 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable preSignUp; /** -

A Lambda trigger that is invoked before token generation.

+

The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.

Set this parameter for legacy purposes. If you also set an ARN in PreTokenGenerationConfig, its value must be identical to PreTokenGeneration. For new instances of pre token generation triggers, set the LambdaArn of PreTokenGenerationConfig.

You can set

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

The detailed configuration of a pre token generation trigger. If you also set an ARN in PreTokenGeneration, its value must be identical to PreTokenGenerationConfig.

+ */ +@property (nonatomic, strong) AWSCognitoIdentityProviderPreTokenGenerationVersionConfigType * _Nullable preTokenGenerationConfig; + /**

The user migration Lambda config type.

*/ @@ -4055,7 +4067,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSNumber * _Nullable limit; /** -

The pagination token for the list request.

+

This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.

*/ @property (nonatomic, strong) NSString * _Nullable paginationToken; @@ -4073,7 +4085,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSArray * _Nullable devices; /** -

The pagination token for the list device response.

+

The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.

*/ @property (nonatomic, strong) NSString * _Nullable paginationToken; @@ -4241,7 +4253,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSNumber * _Nullable maxResults; /** -

An identifier that was returned from the previous call to ListUserImportJobs, which can be used to return the next set of import jobs in the list.

+

This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.

*/ @property (nonatomic, strong) NSString * _Nullable paginationToken; @@ -4259,7 +4271,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse /** -

An identifier that can be used to return the next set of user import jobs in the list.

+

The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.

*/ @property (nonatomic, strong) NSString * _Nullable paginationToken; @@ -4361,7 +4373,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable groupName; /** -

The limit of the request to list users.

+

The maximum number of users that you want to retrieve before pagination.

*/ @property (nonatomic, strong) NSNumber * _Nullable limit; @@ -4389,7 +4401,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable nextToken; /** -

The users returned in the request to list users.

+

A list of users in the group, and their attributes.

*/ @property (nonatomic, strong) NSArray * _Nullable users; @@ -4403,7 +4415,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse /** -

A JSON array of user attribute names, for example given_name, that you want Amazon Cognito to include in the response for each user. When you don't provide an AttributesToGet parameter, Amazon Cognito returns all attributes for each user.

+

A JSON array of user attribute names, for example given_name, that you want Amazon Cognito to include in the response for each user. When you don't provide an AttributesToGet parameter, Amazon Cognito returns all attributes for each user.

Use AttributesToGet with required attributes in your user pool, or in conjunction with Filter. Amazon Cognito returns an error if not all users in the results have set a value for the attribute you request. Attributes that you can't filter on, including custom attributes, must have a value set in every user profile before an AttributesToGet parameter returns results.

*/ @property (nonatomic, strong) NSArray * _Nullable attributesToGet; @@ -4418,7 +4430,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSNumber * _Nullable limit; /** -

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

+

This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.

*/ @property (nonatomic, strong) NSString * _Nullable paginationToken; @@ -4436,7 +4448,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse /** -

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

+

The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.

*/ @property (nonatomic, strong) NSString * _Nullable paginationToken; @@ -4662,12 +4674,31 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSNumber * _Nullable requireUppercase; /** -

The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this time, an administrator must reset their password.

When you set TemporaryPasswordValidityDays for a user pool, you can no longer set a value for the legacy UnusedAccountValidityDays parameter in that user pool.

+

The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this time, an administrator must reset their password. Defaults to 7. If you submit a value of 0, Amazon Cognito treats it as a null value and sets TemporaryPasswordValidityDays to its default value.

When you set TemporaryPasswordValidityDays for a user pool, you can no longer set a value for the legacy UnusedAccountValidityDays parameter in that user pool.

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

The properties of a pre token generation Lambda trigger.

+ Required parameters: [LambdaVersion, LambdaArn] + */ +@interface AWSCognitoIdentityProviderPreTokenGenerationVersionConfigType : AWSModel + + +/** +

The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.

This parameter and the PreTokenGeneration property of LambdaConfig have the same value. For new instances of pre token generation triggers, set LambdaArn.

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

The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.

+ */ +@property (nonatomic, assign) AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionType lambdaVersion; + +@end + /**

A container for IdP details.

*/ @@ -4771,7 +4802,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) AWSCognitoIdentityProviderUserContextDataType * _Nullable userContextData; /** -

The username attribute of the user to whom you want to resend a confirmation code.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -4855,7 +4886,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, assign) AWSCognitoIdentityProviderChallengeNameType challengeName; /** -

The challenge responses. These are inputs corresponding to the value of ChallengeName, for example:

SECRET_HASH (if app client is configured with client secret) applies to all of the inputs that follow (including SOFTWARE_TOKEN_MFA).

  • SMS_MFA: SMS_MFA_CODE, USERNAME.

  • PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, TIMESTAMP, USERNAME.

    PASSWORD_VERIFIER requires DEVICE_KEY when you sign in with a remembered device.

  • NEW_PASSWORD_REQUIRED: NEW_PASSWORD, USERNAME, SECRET_HASH (if app client is configured with client secret). To set any required attributes that Amazon Cognito returned as requiredAttributes in the InitiateAuth response, add a userAttributes.attributename parameter. This parameter can also set values for writable attributes that aren't required by your user pool.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

  • SOFTWARE_TOKEN_MFA: USERNAME and SOFTWARE_TOKEN_MFA_CODE are required attributes.

  • DEVICE_SRP_AUTH requires USERNAME, DEVICE_KEY, SRP_A (and SECRET_HASH).

  • DEVICE_PASSWORD_VERIFIER requires everything that PASSWORD_VERIFIER requires, plus DEVICE_KEY.

  • MFA_SETUP requires USERNAME, plus you must use the session value returned by VerifySoftwareToken in the Session parameter.

For more information about SECRET_HASH, see Computing secret hash values. For information about DEVICE_KEY, see Working with user devices in your user pool.

+

The responses to the challenge that you received in the previous request. Each challenge has its own required response parameters. The following examples are partial JSON request bodies that highlight challenge-response parameters.

You must provide a SECRET_HASH parameter in all challenge responses to an app client that has a client secret.

SMS_MFA

"ChallengeName": "SMS_MFA", "ChallengeResponses": {"SMS_MFA_CODE": "[SMS_code]", "USERNAME": "[username]"}

PASSWORD_VERIFIER

"ChallengeName": "PASSWORD_VERIFIER", "ChallengeResponses": {"PASSWORD_CLAIM_SIGNATURE": "[claim_signature]", "PASSWORD_CLAIM_SECRET_BLOCK": "[secret_block]", "TIMESTAMP": [timestamp], "USERNAME": "[username]"}

Add "DEVICE_KEY" when you sign in with a remembered device.

CUSTOM_CHALLENGE

"ChallengeName": "CUSTOM_CHALLENGE", "ChallengeResponses": {"USERNAME": "[username]", "ANSWER": "[challenge_answer]"}

Add "DEVICE_KEY" when you sign in with a remembered device.

NEW_PASSWORD_REQUIRED

"ChallengeName": "NEW_PASSWORD_REQUIRED", "ChallengeResponses": {"NEW_PASSWORD": "[new_password]", "USERNAME": "[username]"}

To set any required attributes that InitiateAuth returned in an requiredAttributes parameter, add "userAttributes.[attribute_name]": "[attribute_value]". This parameter can also set values for writable attributes that aren't required by your user pool.

In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

SOFTWARE_TOKEN_MFA

"ChallengeName": "SOFTWARE_TOKEN_MFA", "ChallengeResponses": {"USERNAME": "[username]", "SOFTWARE_TOKEN_MFA_CODE": [authenticator_code]}

DEVICE_SRP_AUTH

"ChallengeName": "DEVICE_SRP_AUTH", "ChallengeResponses": {"USERNAME": "[username]", "DEVICE_KEY": "[device_key]", "SRP_A": "[srp_a]"}

DEVICE_PASSWORD_VERIFIER

"ChallengeName": "DEVICE_PASSWORD_VERIFIER", "ChallengeResponses": {"DEVICE_KEY": "[device_key]", "PASSWORD_CLAIM_SIGNATURE": "[claim_signature]", "PASSWORD_CLAIM_SECRET_BLOCK": "[secret_block]", "TIMESTAMP": [timestamp], "USERNAME": "[username]"}

MFA_SETUP

"ChallengeName": "MFA_SETUP", "ChallengeResponses": {"USERNAME": "[username]"}, "SESSION": "[Session ID from VerifySoftwareToken]"

SELECT_MFA_TYPE

"ChallengeName": "SELECT_MFA_TYPE", "ChallengeResponses": {"USERNAME": "[username]", "ANSWER": "[SMS_MFA or SOFTWARE_TOKEN_MFA]"}

For more information about SECRET_HASH, see Computing secret hash values. For information about DEVICE_KEY, see Working with user devices in your user pool.

*/ @property (nonatomic, strong) NSDictionary * _Nullable challengeResponses; @@ -5021,7 +5052,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse /** -

The data format of the values for your attribute.

+

The data format of the values for your attribute. When you choose an AttributeDataType, Amazon Cognito validates the input against the data type. A custom attribute value in your user's ID token is always a string, for example "custom:isMember" : "true" or "custom:YearsAsMember" : "12".

*/ @property (nonatomic, assign) AWSCognitoIdentityProviderAttributeDataType attributeDataType; @@ -5036,7 +5067,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSNumber * _Nullable varying; /** -

The name of your user pool attribute, for example username or custom:costcenter.

+

The name of your user pool attribute. When you create or update a user pool, adding a schema attribute creates a custom or developer-only attribute. When you add an attribute with a Name value of MyAttribute, Amazon Cognito creates the custom attribute custom:MyAttribute. When DeveloperOnlyAttribute is true, Amazon Cognito creates your attribute as dev:MyAttribute. In an operation that describes a user pool, Amazon Cognito returns this value as value for standard attributes, custom:value for custom attributes, and dev:value for developer-only attributes..

*/ @property (nonatomic, strong) NSString * _Nullable name; @@ -5327,12 +5358,12 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) AWSCognitoIdentityProviderUserContextDataType * _Nullable userContextData; /** -

The user name of the user you want to register.

+

The username of the user that you want to sign up. The value of this parameter is typically a username, but can be any alias attribute in your user pool.

*/ @property (nonatomic, strong) NSString * _Nullable username; /** -

The validation data in the request to register a user.

+

Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.

Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.

For more information about the pre sign-up Lambda trigger, see Pre sign-up Lambda trigger.

*/ @property (nonatomic, strong) NSArray * _Nullable validationData; @@ -5662,7 +5693,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The user pool username.

+

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

*/ @property (nonatomic, strong) NSString * _Nullable username; @@ -5966,7 +5997,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, assign) AWSCognitoIdentityProviderPreventUserExistenceErrorTypes preventUserExistenceErrors; /** -

The read-only attributes of the user pool.

+

The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An example of this kind of activity is when your user selects a link to view their profile information. Your app makes a GetUser API request to retrieve and display your user's profile data.

When you don't specify the ReadAttributes for your app client, your app can read the values of email_verified, phone_number_verified, and the Standard attributes of your user pool. When your user pool has read access to these default attributes, ReadAttributes doesn't return any information. Amazon Cognito only populates ReadAttributes in the API response if you have specified your own custom set of read attributes.

*/ @property (nonatomic, strong) NSArray * _Nullable readAttributes; @@ -5991,7 +6022,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The writeable attributes of the user pool.

+

The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list. An example of this kind of activity is when you present your user with a form to update their profile information and they change their last name. Your app then makes an UpdateUserAttributes API request and sets family_name to the new value.

When you don't specify the WriteAttributes for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, WriteAttributes doesn't return any information. Amazon Cognito only populates WriteAttributes in the API response if you have specified your own custom set of write attributes.

If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool.

*/ @property (nonatomic, strong) NSArray * _Nullable writeAttributes; @@ -6402,7 +6433,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, assign) AWSCognitoIdentityProviderPreventUserExistenceErrorTypes preventUserExistenceErrors; /** -

The Read-only attributes.

+

The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An example of this kind of activity is when your user selects a link to view their profile information. Your app makes a GetUser API request to retrieve and display your user's profile data.

When you don't specify the ReadAttributes for your app client, your app can read the values of email_verified, phone_number_verified, and the Standard attributes of your user pool. When your user pool has read access to these default attributes, ReadAttributes doesn't return any information. Amazon Cognito only populates ReadAttributes in the API response if you have specified your own custom set of read attributes.

*/ @property (nonatomic, strong) NSArray * _Nullable readAttributes; @@ -6427,7 +6458,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable userPoolId; /** -

The writeable attributes.

+

The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list. An example of this kind of activity is when you present your user with a form to update their profile information and they change their last name. Your app then makes an UpdateUserAttributes API request and sets family_name to the new value.

When you don't specify the WriteAttributes for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, WriteAttributes doesn't return any information. Amazon Cognito only populates WriteAttributes in the API response if you have specified your own custom set of write attributes.

If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool.

*/ @property (nonatomic, strong) NSArray * _Nullable writeAttributes; @@ -6621,7 +6652,7 @@ typedef NS_ENUM(NSInteger, AWSCognitoIdentityProviderVerifySoftwareTokenResponse @property (nonatomic, strong) NSString * _Nullable smsVerificationMessage; /** -

The status of a user pool.

+

This parameter is no longer used.

*/ @property (nonatomic, assign) AWSCognitoIdentityProviderStatusType status; diff --git a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.m b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.m index b80f1db7cc3..de9511fa69f 100644 --- a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.m +++ b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderModel.m @@ -3762,6 +3762,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"preAuthentication" : @"PreAuthentication", @"preSignUp" : @"PreSignUp", @"preTokenGeneration" : @"PreTokenGeneration", + @"preTokenGenerationConfig" : @"PreTokenGenerationConfig", @"userMigration" : @"UserMigration", @"verifyAuthChallengeResponse" : @"VerifyAuthChallengeResponse", }; @@ -3775,6 +3776,10 @@ + (NSValueTransformer *)customSMSSenderJSONTransformer { return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSCognitoIdentityProviderCustomSMSLambdaVersionConfigType class]]; } ++ (NSValueTransformer *)preTokenGenerationConfigJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSCognitoIdentityProviderPreTokenGenerationVersionConfigType class]]; +} + @end @implementation AWSCognitoIdentityProviderListDevicesRequest @@ -4341,6 +4346,42 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSCognitoIdentityProviderPreTokenGenerationVersionConfigType + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"lambdaArn" : @"LambdaArn", + @"lambdaVersion" : @"LambdaVersion", + }; +} + ++ (NSValueTransformer *)lambdaVersionJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"V1_0"] == NSOrderedSame) { + return @(AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionTypeV10); + } + if ([value caseInsensitiveCompare:@"V2_0"] == NSOrderedSame) { + return @(AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionTypeV20); + } + return @(AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionTypeUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionTypeV10: + return @"V1_0"; + case AWSCognitoIdentityProviderPreTokenGenerationLambdaVersionTypeV20: + return @"V2_0"; + default: + return nil; + } + }]; +} + +@end + @implementation AWSCognitoIdentityProviderProviderDescription + (BOOL)supportsSecureCoding { diff --git a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderResources.m b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderResources.m index 18aa0ccaf08..560a196d2f2 100644 --- a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderResources.m +++ b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderResources.m @@ -103,7 +103,7 @@ - (NSString *)definitionString { {\"shape\":\"UserNotFoundException\"},\ {\"shape\":\"InternalErrorException\"}\ ],\ - \"documentation\":\"

Adds the specified user to the specified group.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

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

Adds a user to a group. A user who is in a group can present a preferred-role claim to an identity pool, and populates a cognito:groups claim to their access and identity tokens.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

\"\ },\ \"AdminConfirmSignUp\":{\ \"name\":\"AdminConfirmSignUp\",\ @@ -126,7 +126,7 @@ - (NSString *)definitionString { {\"shape\":\"UserNotFoundException\"},\ {\"shape\":\"InternalErrorException\"}\ ],\ - \"documentation\":\"

Confirms user registration as an admin without using a confirmation code. Works on any user.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

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

This IAM-authenticated API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message.

Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users confirm their accounts when they respond to their invitation email message and choose a password.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

\"\ },\ \"AdminCreateUser\":{\ \"name\":\"AdminCreateUser\",\ @@ -381,7 +381,7 @@ - (NSString *)definitionString { {\"shape\":\"UserNotFoundException\"},\ {\"shape\":\"InternalErrorException\"}\ ],\ - \"documentation\":\"

Lists the groups that the user belongs to.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

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

Lists the groups that a user belongs to.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

\"\ },\ \"AdminListUserAuthEvents\":{\ \"name\":\"AdminListUserAuthEvents\",\ @@ -474,7 +474,7 @@ - (NSString *)definitionString { {\"shape\":\"UserNotConfirmedException\"},\ {\"shape\":\"SoftwareTokenMFANotFoundException\"}\ ],\ - \"documentation\":\"

Responds to an authentication challenge, as an administrator.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

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

Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. An AdminRespondToAuthChallenge API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge.

For more information about custom authentication challenges, see Custom authentication challenge Lambda triggers.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

\"\ },\ \"AdminSetUserMFAPreference\":{\ \"name\":\"AdminSetUserMFAPreference\",\ @@ -610,7 +610,7 @@ - (NSString *)definitionString { {\"shape\":\"UserNotFoundException\"},\ {\"shape\":\"InternalErrorException\"}\ ],\ - \"documentation\":\"

Signs out a user from all devices. AdminUserGlobalSignOut invalidates all identity, access and refresh tokens that Amazon Cognito has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens for the duration of the 1-hour cookie validity period.

Your app isn't aware that a user's access token is revoked unless it attempts to authorize a user pools API request with an access token that contains the scope aws.cognito.signin.user.admin. Your app might otherwise accept access tokens until they expire.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

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

Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation with your administrative credentials when your user signs out of your app. This results in the following behavior.

  • Amazon Cognito no longer accepts token-authorized user operations that you authorize with a signed-out user's access tokens. For more information, see Using the Amazon Cognito user pools API and user pool endpoints.

    Amazon Cognito returns an Access Token has been revoked error when your app attempts to authorize a user pools API request with a revoked access token that contains the scope aws.cognito.signin.user.admin.

  • Amazon Cognito no longer accepts a signed-out user's ID token in a GetId request to an identity pool with ServerSideTokenCheck enabled for its user pool IdP configuration in CognitoIdentityProvider.

  • Amazon Cognito no longer accepts a signed-out user's refresh tokens in refresh requests.

Other requests might be valid until your user's token expires.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

\"\ },\ \"AssociateSoftwareToken\":{\ \"name\":\"AssociateSoftwareToken\",\ @@ -736,7 +736,7 @@ - (NSString *)definitionString { {\"shape\":\"InternalErrorException\"},\ {\"shape\":\"ForbiddenException\"}\ ],\ - \"documentation\":\"

Confirms registration of a new user.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

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

This public API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool via the SignUp API operation. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message.

Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users, users created with the AdminCreateUser API operation, confirm their accounts when they respond to their invitation email message and choose a password. They do not receive a confirmation code. Instead, they receive a temporary password.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

\",\ \"authtype\":\"none\"\ },\ \"CreateGroup\":{\ @@ -1395,7 +1395,7 @@ - (NSString *)definitionString { {\"shape\":\"InternalErrorException\"},\ {\"shape\":\"ForbiddenException\"}\ ],\ - \"documentation\":\"

Signs out a user from all devices. GlobalSignOut invalidates all identity, access and refresh tokens that Amazon Cognito has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens for the duration of the 1-hour cookie validity period.

Your app isn't aware that a user's access token is revoked unless it attempts to authorize a user pools API request with an access token that contains the scope aws.cognito.signin.user.admin. Your app might otherwise accept access tokens until they expire.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

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

Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation when your user signs out of your app. This results in the following behavior.

  • Amazon Cognito no longer accepts token-authorized user operations that you authorize with a signed-out user's access tokens. For more information, see Using the Amazon Cognito user pools API and user pool endpoints.

    Amazon Cognito returns an Access Token has been revoked error when your app attempts to authorize a user pools API request with a revoked access token that contains the scope aws.cognito.signin.user.admin.

  • Amazon Cognito no longer accepts a signed-out user's ID token in a GetId request to an identity pool with ServerSideTokenCheck enabled for its user pool IdP configuration in CognitoIdentityProvider.

  • Amazon Cognito no longer accepts a signed-out user's refresh tokens in refresh requests.

Other requests might be valid until your user's token expires.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

\",\ \"authtype\":\"none\"\ },\ \"InitiateAuth\":{\ @@ -1660,7 +1660,7 @@ - (NSString *)definitionString { {\"shape\":\"SoftwareTokenMFANotFoundException\"},\ {\"shape\":\"ForbiddenException\"}\ ],\ - \"documentation\":\"

Responds to the authentication challenge.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

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

Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. A RespondToAuthChallenge API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge.

For more information about custom authentication challenges, see Custom authentication challenge Lambda triggers.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

\",\ \"authtype\":\"none\"\ },\ \"RevokeToken\":{\ @@ -2021,7 +2021,7 @@ - (NSString *)definitionString { {\"shape\":\"InternalErrorException\"},\ {\"shape\":\"ForbiddenException\"}\ ],\ - \"documentation\":\"

Allows a user to update a specific attribute (one at a time).

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

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

With this operation, your users can update one or more of their attributes with their own credentials. You authorize this API request with the user's access token. To delete an attribute from your user, submit the attribute in your API request with a blank value. Custom attribute values in this request must include the custom: prefix.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

\",\ \"authtype\":\"none\"\ },\ \"UpdateUserPool\":{\ @@ -2258,11 +2258,11 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The username for the user.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"GroupName\":{\ \"shape\":\"GroupNameType\",\ - \"documentation\":\"

The group name.

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

The name of the group that you want to add your user to.

\"\ }\ }\ },\ @@ -2279,7 +2279,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name for which you want to confirm user registration.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"ClientMetadata\":{\ \"shape\":\"ClientMetadataType\",\ @@ -2303,7 +2303,7 @@ - (NSString *)definitionString { },\ \"UnusedAccountValidityDays\":{\ \"shape\":\"AdminCreateUserUnusedAccountValidityDaysType\",\ - \"documentation\":\"

The user account expiration limit, in days, after which a new account that hasn't signed in is no longer usable. To reset the account after that time limit, you must call AdminCreateUser again, specifying \\\"RESEND\\\" for the MessageAction parameter. The default value for this parameter is 7.

If you set a value for TemporaryPasswordValidityDays in PasswordPolicy, that value will be used, and UnusedAccountValidityDays will be no longer be an available parameter for that user pool.

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

The user account expiration limit, in days, after which a new account that hasn't signed in is no longer usable. To reset the account after that time limit, you must call AdminCreateUser again, specifying \\\"RESEND\\\" for the MessageAction parameter. The default value for this parameter is 7.

If you set a value for TemporaryPasswordValidityDays in PasswordPolicy, that value will be used, and UnusedAccountValidityDays will be no longer be an available parameter for that user pool.

\"\ },\ \"InviteMessageTemplate\":{\ \"shape\":\"MessageTemplateType\",\ @@ -2333,7 +2333,7 @@ - (NSString *)definitionString { },\ \"ValidationData\":{\ \"shape\":\"AttributeListType\",\ - \"documentation\":\"

The user's validation data. This is an array of name-value pairs that contain user attributes and attribute values that you can use for custom validation, such as restricting the types of user accounts that can be registered. For example, you might choose to allow or disallow user sign-up based on the user's domain.

To configure custom validation, you must create a Pre Sign-up Lambda trigger for the user pool as described in the Amazon Cognito Developer Guide. The Lambda trigger receives the validation data and uses it in the validation process.

The user's validation data isn't persisted.

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

Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.

Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.

For more information about the pre sign-up Lambda trigger, see Pre sign-up Lambda trigger.

\"\ },\ \"TemporaryPassword\":{\ \"shape\":\"PasswordType\",\ @@ -2387,7 +2387,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user from which you would like to delete attributes.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"UserAttributeNames\":{\ \"shape\":\"AttributeNameListType\",\ @@ -2415,7 +2415,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user you want to delete.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

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

Represents the request to delete a user as an administrator.

\"\ @@ -2455,7 +2455,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user you want to disable.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

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

Represents the request to disable the user as an administrator.

\"\ @@ -2479,7 +2479,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user you want to enable.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

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

Represents the request that enables the user as an administrator.

\"\ @@ -2504,7 +2504,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"DeviceKey\":{\ \"shape\":\"DeviceKeyType\",\ @@ -2531,7 +2531,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

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

Represents the request to get the device, as an administrator.

\"\ @@ -2560,7 +2560,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user you want to retrieve.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

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

Represents the request to get the specified user as an administrator.

\"\ @@ -2634,7 +2634,7 @@ - (NSString *)definitionString { },\ \"ClientMetadata\":{\ \"shape\":\"ClientMetadataType\",\ - \"documentation\":\"

A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.

You create custom workflows by assigning Lambda functions to user pool triggers. When you use the AdminInitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:

  • Pre signup

  • Pre authentication

  • User migration

When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a validationData attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminInitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow for your specific needs.

When you use the AdminInitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:

  • Post authentication

  • Custom message

  • Pre token generation

  • Create auth challenge

  • Define auth challenge

  • Verify auth challenge

For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.

  • Validate the ClientMetadata value.

  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

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

A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.

You create custom workflows by assigning Lambda functions to user pool triggers. When you use the AdminInitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:

  • Pre signup

  • Pre authentication

  • User migration

When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a validationData attribute, which provides the data that you assigned to the ClientMetadata parameter in your AdminInitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow for your specific needs.

When you use the AdminInitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:

  • Post authentication

  • Custom message

  • Pre token generation

  • Create auth challenge

  • Define auth challenge

For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.

  • Validate the ClientMetadata value.

  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

\"\ },\ \"AnalyticsMetadata\":{\ \"shape\":\"AnalyticsMetadataType\",\ @@ -2652,7 +2652,7 @@ - (NSString *)definitionString { \"members\":{\ \"ChallengeName\":{\ \"shape\":\"ChallengeNameType\",\ - \"documentation\":\"

The name of the challenge that you're responding to with this call. This is returned in the AdminInitiateAuth response if you must pass another challenge.

  • MFA_SETUP: If MFA is required, users who don't have at least one of the MFA methods set up are presented with an MFA_SETUP challenge. The user must set up at least one MFA type to continue to authenticate.

  • SELECT_MFA_TYPE: Selects the MFA type. Valid MFA options are SMS_MFA for text SMS MFA, and SOFTWARE_TOKEN_MFA for time-based one-time password (TOTP) software token MFA.

  • SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via SMS.

  • PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations.

  • CUSTOM_CHALLENGE: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.

  • DEVICE_SRP_AUTH: If device tracking was activated in your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.

  • DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices only.

  • ADMIN_NO_SRP_AUTH: This is returned if you must authenticate with USERNAME and PASSWORD directly. An app client must be enabled to use this flow.

  • NEW_PASSWORD_REQUIRED: For users who are required to change their passwords after successful first login. Respond to this challenge with NEW_PASSWORD and any required attributes that Amazon Cognito returned in the requiredAttributes parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see AdminRespondToAuthChallenge.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In AdminRespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the AdminUpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP: For users who are required to set up an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters MFA_CAN_SETUP value.

    To set up software token MFA, use the session returned here from InitiateAuth as an input to AssociateSoftwareToken, and use the session returned by VerifySoftwareToken as an input to RespondToAuthChallenge with challenge name MFA_SETUP to complete sign-in. To set up SMS MFA, users will need help from an administrator to add a phone number to their account and then call InitiateAuth again to restart sign-in.

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

The name of the challenge that you're responding to with this call. This is returned in the AdminInitiateAuth response if you must pass another challenge.

  • MFA_SETUP: If MFA is required, users who don't have at least one of the MFA methods set up are presented with an MFA_SETUP challenge. The user must set up at least one MFA type to continue to authenticate.

  • SELECT_MFA_TYPE: Selects the MFA type. Valid MFA options are SMS_MFA for text SMS MFA, and SOFTWARE_TOKEN_MFA for time-based one-time password (TOTP) software token MFA.

  • SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via SMS.

  • PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations.

  • CUSTOM_CHALLENGE: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.

  • DEVICE_SRP_AUTH: If device tracking was activated in your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.

  • DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices only.

  • ADMIN_NO_SRP_AUTH: This is returned if you must authenticate with USERNAME and PASSWORD directly. An app client must be enabled to use this flow.

  • NEW_PASSWORD_REQUIRED: For users who are required to change their passwords after successful first login. Respond to this challenge with NEW_PASSWORD and any required attributes that Amazon Cognito returned in the requiredAttributes parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see AdminRespondToAuthChallenge.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In AdminRespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the AdminUpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP: For users who are required to set up an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters MFAS_CAN_SETUP value.

    To set up software token MFA, use the session returned here from InitiateAuth as an input to AssociateSoftwareToken, and use the session returned by VerifySoftwareToken as an input to RespondToAuthChallenge with challenge name MFA_SETUP to complete sign-in. To set up SMS MFA, users will need help from an administrator to add a phone number to their account and then call InitiateAuth again to restart sign-in.

\"\ },\ \"Session\":{\ \"shape\":\"SessionType\",\ @@ -2709,7 +2709,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"Limit\":{\ \"shape\":\"QueryLimitType\",\ @@ -2717,7 +2717,7 @@ - (NSString *)definitionString { },\ \"PaginationToken\":{\ \"shape\":\"SearchPaginationTokenType\",\ - \"documentation\":\"

The pagination token.

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

This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.

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

Represents the request to list devices, as an administrator.

\"\ @@ -2731,7 +2731,7 @@ - (NSString *)definitionString { },\ \"PaginationToken\":{\ \"shape\":\"SearchPaginationTokenType\",\ - \"documentation\":\"

The pagination token.

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

The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.

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

Lists the device's response, as an administrator.

\"\ @@ -2745,7 +2745,7 @@ - (NSString *)definitionString { \"members\":{\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The username for the user.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"UserPoolId\":{\ \"shape\":\"UserPoolIdType\",\ @@ -2787,7 +2787,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user pool username or an alias.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"MaxResults\":{\ \"shape\":\"QueryLimitType\",\ @@ -2826,7 +2826,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The username for the user.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"GroupName\":{\ \"shape\":\"GroupNameType\",\ @@ -2847,7 +2847,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user whose password you want to reset.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"ClientMetadata\":{\ \"shape\":\"ClientMetadataType\",\ @@ -2884,7 +2884,7 @@ - (NSString *)definitionString { },\ \"ChallengeResponses\":{\ \"shape\":\"ChallengeResponsesType\",\ - \"documentation\":\"

The challenge responses. These are inputs corresponding to the value of ChallengeName, for example:

  • SMS_MFA: SMS_MFA_CODE, USERNAME, SECRET_HASH (if app client is configured with client secret).

  • PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, TIMESTAMP, USERNAME, SECRET_HASH (if app client is configured with client secret).

    PASSWORD_VERIFIER requires DEVICE_KEY when signing in with a remembered device.

  • ADMIN_NO_SRP_AUTH: PASSWORD, USERNAME, SECRET_HASH (if app client is configured with client secret).

  • NEW_PASSWORD_REQUIRED: NEW_PASSWORD, USERNAME, SECRET_HASH (if app client is configured with client secret). To set any required attributes that Amazon Cognito returned as requiredAttributes in the AdminInitiateAuth response, add a userAttributes.attributename parameter. This parameter can also set values for writable attributes that aren't required by your user pool.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In AdminRespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the AdminUpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP requires USERNAME, plus you must use the session value returned by VerifySoftwareToken in the Session parameter.

The value of the USERNAME attribute must be the user's actual username, not an alias (such as an email address or phone number). To make this simpler, the AdminInitiateAuth response includes the actual username value in the USERNAMEUSER_ID_FOR_SRP attribute. This happens even if you specified an alias in your call to AdminInitiateAuth.

For more information about SECRET_HASH, see Computing secret hash values. For information about DEVICE_KEY, see Working with user devices in your user pool.

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

The responses to the challenge that you received in the previous request. Each challenge has its own required response parameters. The following examples are partial JSON request bodies that highlight challenge-response parameters.

You must provide a SECRET_HASH parameter in all challenge responses to an app client that has a client secret.

SMS_MFA

\\\"ChallengeName\\\": \\\"SMS_MFA\\\", \\\"ChallengeResponses\\\": {\\\"SMS_MFA_CODE\\\": \\\"[SMS_code]\\\", \\\"USERNAME\\\": \\\"[username]\\\"}

PASSWORD_VERIFIER

\\\"ChallengeName\\\": \\\"PASSWORD_VERIFIER\\\", \\\"ChallengeResponses\\\": {\\\"PASSWORD_CLAIM_SIGNATURE\\\": \\\"[claim_signature]\\\", \\\"PASSWORD_CLAIM_SECRET_BLOCK\\\": \\\"[secret_block]\\\", \\\"TIMESTAMP\\\": [timestamp], \\\"USERNAME\\\": \\\"[username]\\\"}

Add \\\"DEVICE_KEY\\\" when you sign in with a remembered device.

CUSTOM_CHALLENGE

\\\"ChallengeName\\\": \\\"CUSTOM_CHALLENGE\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\", \\\"ANSWER\\\": \\\"[challenge_answer]\\\"}

Add \\\"DEVICE_KEY\\\" when you sign in with a remembered device.

NEW_PASSWORD_REQUIRED

\\\"ChallengeName\\\": \\\"NEW_PASSWORD_REQUIRED\\\", \\\"ChallengeResponses\\\": {\\\"NEW_PASSWORD\\\": \\\"[new_password]\\\", \\\"USERNAME\\\": \\\"[username]\\\"}

To set any required attributes that InitiateAuth returned in an requiredAttributes parameter, add \\\"userAttributes.[attribute_name]\\\": \\\"[attribute_value]\\\". This parameter can also set values for writable attributes that aren't required by your user pool.

In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

SOFTWARE_TOKEN_MFA

\\\"ChallengeName\\\": \\\"SOFTWARE_TOKEN_MFA\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\", \\\"SOFTWARE_TOKEN_MFA_CODE\\\": [authenticator_code]}

DEVICE_SRP_AUTH

\\\"ChallengeName\\\": \\\"DEVICE_SRP_AUTH\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\", \\\"DEVICE_KEY\\\": \\\"[device_key]\\\", \\\"SRP_A\\\": \\\"[srp_a]\\\"}

DEVICE_PASSWORD_VERIFIER

\\\"ChallengeName\\\": \\\"DEVICE_PASSWORD_VERIFIER\\\", \\\"ChallengeResponses\\\": {\\\"DEVICE_KEY\\\": \\\"[device_key]\\\", \\\"PASSWORD_CLAIM_SIGNATURE\\\": \\\"[claim_signature]\\\", \\\"PASSWORD_CLAIM_SECRET_BLOCK\\\": \\\"[secret_block]\\\", \\\"TIMESTAMP\\\": [timestamp], \\\"USERNAME\\\": \\\"[username]\\\"}

MFA_SETUP

\\\"ChallengeName\\\": \\\"MFA_SETUP\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\"}, \\\"SESSION\\\": \\\"[Session ID from VerifySoftwareToken]\\\"

SELECT_MFA_TYPE

\\\"ChallengeName\\\": \\\"SELECT_MFA_TYPE\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\", \\\"ANSWER\\\": \\\"[SMS_MFA or SOFTWARE_TOKEN_MFA]\\\"}

For more information about SECRET_HASH, see Computing secret hash values. For information about DEVICE_KEY, see Working with user devices in your user pool.

\"\ },\ \"Session\":{\ \"shape\":\"SessionType\",\ @@ -2944,7 +2944,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user pool username or alias.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"UserPoolId\":{\ \"shape\":\"UserPoolIdType\",\ @@ -2971,7 +2971,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user whose password you want to set.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"Password\":{\ \"shape\":\"PasswordType\",\ @@ -3002,7 +3002,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user whose options you're setting.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"MFAOptions\":{\ \"shape\":\"MFAOptionListType\",\ @@ -3032,7 +3032,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user pool username.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"EventId\":{\ \"shape\":\"EventIdType\",\ @@ -3063,7 +3063,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"DeviceKey\":{\ \"shape\":\"DeviceKeyType\",\ @@ -3096,7 +3096,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user for whom you want to update user attributes.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"UserAttributes\":{\ \"shape\":\"AttributeListType\",\ @@ -3128,7 +3128,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

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

The request to sign out of all devices, as an administrator.

\"\ @@ -3688,7 +3688,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user for whom you want to enter a code to retrieve a forgotten password.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"ConfirmationCode\":{\ \"shape\":\"ConfirmationCodeType\",\ @@ -3737,7 +3737,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user whose registration you want to confirm.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"ConfirmationCode\":{\ \"shape\":\"ConfirmationCodeType\",\ @@ -3995,11 +3995,11 @@ - (NSString *)definitionString { },\ \"ReadAttributes\":{\ \"shape\":\"ClientPermissionListType\",\ - \"documentation\":\"

The read attributes.

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

The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An example of this kind of activity is when your user selects a link to view their profile information. Your app makes a GetUser API request to retrieve and display your user's profile data.

When you don't specify the ReadAttributes for your app client, your app can read the values of email_verified, phone_number_verified, and the Standard attributes of your user pool. When your user pool has read access to these default attributes, ReadAttributes doesn't return any information. Amazon Cognito only populates ReadAttributes in the API response if you have specified your own custom set of read attributes.

\"\ },\ \"WriteAttributes\":{\ \"shape\":\"ClientPermissionListType\",\ - \"documentation\":\"

The user pool attributes that the app client can write to.

If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool.

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

The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list. An example of this kind of activity is when you present your user with a form to update their profile information and they change their last name. Your app then makes an UpdateUserAttributes API request and sets family_name to the new value.

When you don't specify the WriteAttributes for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, WriteAttributes doesn't return any information. Amazon Cognito only populates WriteAttributes in the API response if you have specified your own custom set of write attributes.

If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool.

\"\ },\ \"ExplicitAuthFlows\":{\ \"shape\":\"ExplicitAuthFlowsListType\",\ @@ -4237,14 +4237,14 @@ - (NSString *)definitionString { \"members\":{\ \"LambdaVersion\":{\ \"shape\":\"CustomEmailSenderLambdaVersionType\",\ - \"documentation\":\"

Signature of the \\\"request\\\" attribute in the \\\"event\\\" information Amazon Cognito passes to your custom email Lambda function. The only supported value is V1_0.

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

The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.

You must use a LambdaVersion of V1_0 with a custom sender function.

\"\ },\ \"LambdaArn\":{\ \"shape\":\"ArnType\",\ - \"documentation\":\"

The Amazon Resource Name (ARN) of the Lambda function that Amazon Cognito activates to send email notifications to users.

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

The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.

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

A custom email sender Lambda configuration type.

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

The properties of a custom email sender Lambda trigger.

\"\ },\ \"CustomEmailSenderLambdaVersionType\":{\ \"type\":\"string\",\ @@ -4259,14 +4259,14 @@ - (NSString *)definitionString { \"members\":{\ \"LambdaVersion\":{\ \"shape\":\"CustomSMSSenderLambdaVersionType\",\ - \"documentation\":\"

Signature of the \\\"request\\\" attribute in the \\\"event\\\" information that Amazon Cognito passes to your custom SMS Lambda function. The only supported value is V1_0.

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

The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.

You must use a LambdaVersion of V1_0 with a custom sender function.

\"\ },\ \"LambdaArn\":{\ \"shape\":\"ArnType\",\ - \"documentation\":\"

The Amazon Resource Name (ARN) of the Lambda function that Amazon Cognito activates to send SMS notifications to users.

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

The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.

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

A custom SMS sender Lambda configuration type.

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

The properties of a custom SMS sender Lambda trigger.

\"\ },\ \"CustomSMSSenderLambdaVersionType\":{\ \"type\":\"string\",\ @@ -5026,7 +5026,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user for whom you want to enter a code to reset a forgotten password.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"AnalyticsMetadata\":{\ \"shape\":\"AnalyticsMetadataType\",\ @@ -5498,7 +5498,7 @@ - (NSString *)definitionString { },\ \"ClientMetadata\":{\ \"shape\":\"ClientMetadataType\",\ - \"documentation\":\"

A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.

You create custom workflows by assigning Lambda functions to user pool triggers. When you use the InitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:

  • Pre signup

  • Pre authentication

  • User migration

When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a validationData attribute, which provides the data that you assigned to the ClientMetadata parameter in your InitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow for your specific needs.

When you use the InitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:

  • Post authentication

  • Custom message

  • Pre token generation

  • Create auth challenge

  • Define auth challenge

  • Verify auth challenge

For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.

  • Validate the ClientMetadata value.

  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

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

A map of custom key-value pairs that you can provide as input for certain custom workflows that this action triggers.

You create custom workflows by assigning Lambda functions to user pool triggers. When you use the InitiateAuth API action, Amazon Cognito invokes the Lambda functions that are specified for various triggers. The ClientMetadata value is passed as input to the functions for only the following triggers:

  • Pre signup

  • Pre authentication

  • User migration

When Amazon Cognito invokes the functions for these triggers, it passes a JSON payload, which the function receives as input. This payload contains a validationData attribute, which provides the data that you assigned to the ClientMetadata parameter in your InitiateAuth request. In your function code in Lambda, you can process the validationData value to enhance your workflow for your specific needs.

When you use the InitiateAuth API action, Amazon Cognito also invokes the functions for the following triggers, but it doesn't provide the ClientMetadata value as input:

  • Post authentication

  • Custom message

  • Pre token generation

  • Create auth challenge

  • Define auth challenge

For more information, see Customizing user pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • Store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration doesn't include triggers, the ClientMetadata parameter serves no purpose.

  • Validate the ClientMetadata value.

  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

\"\ },\ \"ClientId\":{\ \"shape\":\"ClientIdType\",\ @@ -5520,7 +5520,7 @@ - (NSString *)definitionString { \"members\":{\ \"ChallengeName\":{\ \"shape\":\"ChallengeNameType\",\ - \"documentation\":\"

The name of the challenge that you're responding to with this call. This name is returned in the AdminInitiateAuth response if you must pass another challenge.

Valid values include the following:

All of the following challenges require USERNAME and SECRET_HASH (if applicable) in the parameters.

  • SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via SMS.

  • PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations.

  • CUSTOM_CHALLENGE: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.

  • DEVICE_SRP_AUTH: If device tracking was activated on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.

  • DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices only.

  • NEW_PASSWORD_REQUIRED: For users who are required to change their passwords after successful first login.

    Respond to this challenge with NEW_PASSWORD and any required attributes that Amazon Cognito returned in the requiredAttributes parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see RespondToAuthChallenge.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP: For users who are required to setup an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters MFA_CAN_SETUP value.

    To set up software token MFA, use the session returned here from InitiateAuth as an input to AssociateSoftwareToken. Use the session returned by VerifySoftwareToken as an input to RespondToAuthChallenge with challenge name MFA_SETUP to complete sign-in. To set up SMS MFA, an administrator should help the user to add a phone number to their account, and then the user should call InitiateAuth again to restart sign-in.

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

The name of the challenge that you're responding to with this call. This name is returned in the InitiateAuth response if you must pass another challenge.

Valid values include the following:

All of the following challenges require USERNAME and SECRET_HASH (if applicable) in the parameters.

  • SMS_MFA: Next challenge is to supply an SMS_MFA_CODE, delivered via SMS.

  • PASSWORD_VERIFIER: Next challenge is to supply PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, and TIMESTAMP after the client-side SRP calculations.

  • CUSTOM_CHALLENGE: This is returned if your custom authentication flow determines that the user should pass another challenge before tokens are issued.

  • DEVICE_SRP_AUTH: If device tracking was activated on your user pool and the previous challenges were passed, this challenge is returned so that Amazon Cognito can start tracking this device.

  • DEVICE_PASSWORD_VERIFIER: Similar to PASSWORD_VERIFIER, but for devices only.

  • NEW_PASSWORD_REQUIRED: For users who are required to change their passwords after successful first login.

    Respond to this challenge with NEW_PASSWORD and any required attributes that Amazon Cognito returned in the requiredAttributes parameter. You can also set values for attributes that aren't required by your user pool and that your app client can write. For more information, see RespondToAuthChallenge.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

  • MFA_SETUP: For users who are required to setup an MFA factor before they can sign in. The MFA types activated for the user pool will be listed in the challenge parameters MFAS_CAN_SETUP value.

    To set up software token MFA, use the session returned here from InitiateAuth as an input to AssociateSoftwareToken. Use the session returned by VerifySoftwareToken as an input to RespondToAuthChallenge with challenge name MFA_SETUP to complete sign-in. To set up SMS MFA, an administrator should help the user to add a phone number to their account, and then the user should call InitiateAuth again to restart sign-in.

\"\ },\ \"Session\":{\ \"shape\":\"SessionType\",\ @@ -5672,7 +5672,11 @@ - (NSString *)definitionString { },\ \"PreTokenGeneration\":{\ \"shape\":\"ArnType\",\ - \"documentation\":\"

A Lambda trigger that is invoked before token generation.

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

The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.

Set this parameter for legacy purposes. If you also set an ARN in PreTokenGenerationConfig, its value must be identical to PreTokenGeneration. For new instances of pre token generation triggers, set the LambdaArn of PreTokenGenerationConfig.

You can set

\"\ + },\ + \"PreTokenGenerationConfig\":{\ + \"shape\":\"PreTokenGenerationVersionConfigType\",\ + \"documentation\":\"

The detailed configuration of a pre token generation trigger. If you also set an ARN in PreTokenGeneration, its value must be identical to PreTokenGenerationConfig.

\"\ },\ \"UserMigration\":{\ \"shape\":\"ArnType\",\ @@ -5718,7 +5722,7 @@ - (NSString *)definitionString { },\ \"PaginationToken\":{\ \"shape\":\"SearchPaginationTokenType\",\ - \"documentation\":\"

The pagination token for the list request.

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

This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.

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

Represents the request to list the devices.

\"\ @@ -5732,7 +5736,7 @@ - (NSString *)definitionString { },\ \"PaginationToken\":{\ \"shape\":\"SearchPaginationTokenType\",\ - \"documentation\":\"

The pagination token for the list device response.

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

The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.

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

Represents the response to list devices.

\"\ @@ -5882,7 +5886,7 @@ - (NSString *)definitionString { },\ \"PaginationToken\":{\ \"shape\":\"PaginationKeyType\",\ - \"documentation\":\"

An identifier that was returned from the previous call to ListUserImportJobs, which can be used to return the next set of import jobs in the list.

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

This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.

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

Represents the request to list the user import jobs.

\"\ @@ -5896,7 +5900,7 @@ - (NSString *)definitionString { },\ \"PaginationToken\":{\ \"shape\":\"PaginationKeyType\",\ - \"documentation\":\"

An identifier that can be used to return the next set of user import jobs in the list.

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

The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.

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

Represents the response from the server to the request to list the user import jobs.

\"\ @@ -5980,7 +5984,7 @@ - (NSString *)definitionString { },\ \"Limit\":{\ \"shape\":\"QueryLimitType\",\ - \"documentation\":\"

The limit of the request to list users.

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

The maximum number of users that you want to retrieve before pagination.

\"\ },\ \"NextToken\":{\ \"shape\":\"PaginationKey\",\ @@ -5993,7 +5997,7 @@ - (NSString *)definitionString { \"members\":{\ \"Users\":{\ \"shape\":\"UsersListType\",\ - \"documentation\":\"

The users returned in the request to list users.

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

A list of users in the group, and their attributes.

\"\ },\ \"NextToken\":{\ \"shape\":\"PaginationKey\",\ @@ -6011,7 +6015,7 @@ - (NSString *)definitionString { },\ \"AttributesToGet\":{\ \"shape\":\"SearchedAttributeNamesListType\",\ - \"documentation\":\"

A JSON array of user attribute names, for example given_name, that you want Amazon Cognito to include in the response for each user. When you don't provide an AttributesToGet parameter, Amazon Cognito returns all attributes for each user.

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

A JSON array of user attribute names, for example given_name, that you want Amazon Cognito to include in the response for each user. When you don't provide an AttributesToGet parameter, Amazon Cognito returns all attributes for each user.

Use AttributesToGet with required attributes in your user pool, or in conjunction with Filter. Amazon Cognito returns an error if not all users in the results have set a value for the attribute you request. Attributes that you can't filter on, including custom attributes, must have a value set in every user profile before an AttributesToGet parameter returns results.

\"\ },\ \"Limit\":{\ \"shape\":\"QueryLimitType\",\ @@ -6019,7 +6023,7 @@ - (NSString *)definitionString { },\ \"PaginationToken\":{\ \"shape\":\"SearchPaginationTokenType\",\ - \"documentation\":\"

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

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

This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items.

\"\ },\ \"Filter\":{\ \"shape\":\"UserFilterType\",\ @@ -6037,7 +6041,7 @@ - (NSString *)definitionString { },\ \"PaginationToken\":{\ \"shape\":\"SearchPaginationTokenType\",\ - \"documentation\":\"

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

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

The identifier that Amazon Cognito returned with the previous request to this operation. When you include a pagination token in your request, Amazon Cognito returns the next set of items in the list. By use of this token, you can paginate through the full list of items.

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

The response from the request to list users.

\"\ @@ -6298,7 +6302,7 @@ - (NSString *)definitionString { },\ \"TemporaryPasswordValidityDays\":{\ \"shape\":\"TemporaryPasswordValidityDaysType\",\ - \"documentation\":\"

The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this time, an administrator must reset their password.

When you set TemporaryPasswordValidityDays for a user pool, you can no longer set a value for the legacy UnusedAccountValidityDays parameter in that user pool.

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

The number of days a temporary password is valid in the password policy. If the user doesn't sign in during this time, an administrator must reset their password. Defaults to 7. If you submit a value of 0, Amazon Cognito treats it as a null value and sets TemporaryPasswordValidityDays to its default value.

When you set TemporaryPasswordValidityDays for a user pool, you can no longer set a value for the legacy UnusedAccountValidityDays parameter in that user pool.

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

The password policy type.

\"\ @@ -6330,6 +6334,31 @@ - (NSString *)definitionString { \"max\":2048,\ \"min\":0\ },\ + \"PreTokenGenerationLambdaVersionType\":{\ + \"type\":\"string\",\ + \"enum\":[\ + \"V1_0\",\ + \"V2_0\"\ + ]\ + },\ + \"PreTokenGenerationVersionConfigType\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"LambdaVersion\",\ + \"LambdaArn\"\ + ],\ + \"members\":{\ + \"LambdaVersion\":{\ + \"shape\":\"PreTokenGenerationLambdaVersionType\",\ + \"documentation\":\"

The user pool trigger version of the request that Amazon Cognito sends to your Lambda function. Higher-numbered versions add fields that support new features.

\"\ + },\ + \"LambdaArn\":{\ + \"shape\":\"ArnType\",\ + \"documentation\":\"

The Amazon Resource Name (ARN) of the function that you want to assign to your Lambda trigger.

This parameter and the PreTokenGeneration property of LambdaConfig have the same value. For new instances of pre token generation triggers, set LambdaArn.

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

The properties of a pre token generation Lambda trigger.

\"\ + },\ \"PrecedenceType\":{\ \"type\":\"integer\",\ \"min\":0\ @@ -6499,7 +6528,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The username attribute of the user to whom you want to resend a confirmation code.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"AnalyticsMetadata\":{\ \"shape\":\"AnalyticsMetadataType\",\ @@ -6626,7 +6655,7 @@ - (NSString *)definitionString { },\ \"ChallengeResponses\":{\ \"shape\":\"ChallengeResponsesType\",\ - \"documentation\":\"

The challenge responses. These are inputs corresponding to the value of ChallengeName, for example:

SECRET_HASH (if app client is configured with client secret) applies to all of the inputs that follow (including SOFTWARE_TOKEN_MFA).

  • SMS_MFA: SMS_MFA_CODE, USERNAME.

  • PASSWORD_VERIFIER: PASSWORD_CLAIM_SIGNATURE, PASSWORD_CLAIM_SECRET_BLOCK, TIMESTAMP, USERNAME.

    PASSWORD_VERIFIER requires DEVICE_KEY when you sign in with a remembered device.

  • NEW_PASSWORD_REQUIRED: NEW_PASSWORD, USERNAME, SECRET_HASH (if app client is configured with client secret). To set any required attributes that Amazon Cognito returned as requiredAttributes in the InitiateAuth response, add a userAttributes.attributename parameter. This parameter can also set values for writable attributes that aren't required by your user pool.

    In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

  • SOFTWARE_TOKEN_MFA: USERNAME and SOFTWARE_TOKEN_MFA_CODE are required attributes.

  • DEVICE_SRP_AUTH requires USERNAME, DEVICE_KEY, SRP_A (and SECRET_HASH).

  • DEVICE_PASSWORD_VERIFIER requires everything that PASSWORD_VERIFIER requires, plus DEVICE_KEY.

  • MFA_SETUP requires USERNAME, plus you must use the session value returned by VerifySoftwareToken in the Session parameter.

For more information about SECRET_HASH, see Computing secret hash values. For information about DEVICE_KEY, see Working with user devices in your user pool.

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

The responses to the challenge that you received in the previous request. Each challenge has its own required response parameters. The following examples are partial JSON request bodies that highlight challenge-response parameters.

You must provide a SECRET_HASH parameter in all challenge responses to an app client that has a client secret.

SMS_MFA

\\\"ChallengeName\\\": \\\"SMS_MFA\\\", \\\"ChallengeResponses\\\": {\\\"SMS_MFA_CODE\\\": \\\"[SMS_code]\\\", \\\"USERNAME\\\": \\\"[username]\\\"}

PASSWORD_VERIFIER

\\\"ChallengeName\\\": \\\"PASSWORD_VERIFIER\\\", \\\"ChallengeResponses\\\": {\\\"PASSWORD_CLAIM_SIGNATURE\\\": \\\"[claim_signature]\\\", \\\"PASSWORD_CLAIM_SECRET_BLOCK\\\": \\\"[secret_block]\\\", \\\"TIMESTAMP\\\": [timestamp], \\\"USERNAME\\\": \\\"[username]\\\"}

Add \\\"DEVICE_KEY\\\" when you sign in with a remembered device.

CUSTOM_CHALLENGE

\\\"ChallengeName\\\": \\\"CUSTOM_CHALLENGE\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\", \\\"ANSWER\\\": \\\"[challenge_answer]\\\"}

Add \\\"DEVICE_KEY\\\" when you sign in with a remembered device.

NEW_PASSWORD_REQUIRED

\\\"ChallengeName\\\": \\\"NEW_PASSWORD_REQUIRED\\\", \\\"ChallengeResponses\\\": {\\\"NEW_PASSWORD\\\": \\\"[new_password]\\\", \\\"USERNAME\\\": \\\"[username]\\\"}

To set any required attributes that InitiateAuth returned in an requiredAttributes parameter, add \\\"userAttributes.[attribute_name]\\\": \\\"[attribute_value]\\\". This parameter can also set values for writable attributes that aren't required by your user pool.

In a NEW_PASSWORD_REQUIRED challenge response, you can't modify a required attribute that already has a value. In RespondToAuthChallenge, set a value for any keys that Amazon Cognito returned in the requiredAttributes parameter, then use the UpdateUserAttributes API operation to modify the value of any additional attributes.

SOFTWARE_TOKEN_MFA

\\\"ChallengeName\\\": \\\"SOFTWARE_TOKEN_MFA\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\", \\\"SOFTWARE_TOKEN_MFA_CODE\\\": [authenticator_code]}

DEVICE_SRP_AUTH

\\\"ChallengeName\\\": \\\"DEVICE_SRP_AUTH\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\", \\\"DEVICE_KEY\\\": \\\"[device_key]\\\", \\\"SRP_A\\\": \\\"[srp_a]\\\"}

DEVICE_PASSWORD_VERIFIER

\\\"ChallengeName\\\": \\\"DEVICE_PASSWORD_VERIFIER\\\", \\\"ChallengeResponses\\\": {\\\"DEVICE_KEY\\\": \\\"[device_key]\\\", \\\"PASSWORD_CLAIM_SIGNATURE\\\": \\\"[claim_signature]\\\", \\\"PASSWORD_CLAIM_SECRET_BLOCK\\\": \\\"[secret_block]\\\", \\\"TIMESTAMP\\\": [timestamp], \\\"USERNAME\\\": \\\"[username]\\\"}

MFA_SETUP

\\\"ChallengeName\\\": \\\"MFA_SETUP\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\"}, \\\"SESSION\\\": \\\"[Session ID from VerifySoftwareToken]\\\"

SELECT_MFA_TYPE

\\\"ChallengeName\\\": \\\"SELECT_MFA_TYPE\\\", \\\"ChallengeResponses\\\": {\\\"USERNAME\\\": \\\"[username]\\\", \\\"ANSWER\\\": \\\"[SMS_MFA or SOFTWARE_TOKEN_MFA]\\\"}

For more information about SECRET_HASH, see Computing secret hash values. For information about DEVICE_KEY, see Working with user devices in your user pool.

\"\ },\ \"AnalyticsMetadata\":{\ \"shape\":\"AnalyticsMetadataType\",\ @@ -6782,11 +6811,11 @@ - (NSString *)definitionString { \"members\":{\ \"Name\":{\ \"shape\":\"CustomAttributeNameType\",\ - \"documentation\":\"

The name of your user pool attribute, for example username or custom:costcenter.

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

The name of your user pool attribute. When you create or update a user pool, adding a schema attribute creates a custom or developer-only attribute. When you add an attribute with a Name value of MyAttribute, Amazon Cognito creates the custom attribute custom:MyAttribute. When DeveloperOnlyAttribute is true, Amazon Cognito creates your attribute as dev:MyAttribute. In an operation that describes a user pool, Amazon Cognito returns this value as value for standard attributes, custom:value for custom attributes, and dev:value for developer-only attributes..

\"\ },\ \"AttributeDataType\":{\ \"shape\":\"AttributeDataType\",\ - \"documentation\":\"

The data format of the values for your attribute.

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

The data format of the values for your attribute. When you choose an AttributeDataType, Amazon Cognito validates the input against the data type. A custom attribute value in your user's ID token is always a string, for example \\\"custom:isMember\\\" : \\\"true\\\" or \\\"custom:YearsAsMember\\\" : \\\"12\\\".

\"\ },\ \"DeveloperOnlyAttribute\":{\ \"shape\":\"BooleanType\",\ @@ -7065,7 +7094,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user name of the user you want to register.

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

The username of the user that you want to sign up. The value of this parameter is typically a username, but can be any alias attribute in your user pool.

\"\ },\ \"Password\":{\ \"shape\":\"PasswordType\",\ @@ -7077,7 +7106,7 @@ - (NSString *)definitionString { },\ \"ValidationData\":{\ \"shape\":\"AttributeListType\",\ - \"documentation\":\"

The validation data in the request to register a user.

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

Temporary user attributes that contribute to the outcomes of your pre sign-up Lambda trigger. This set of key-value pairs are for custom validation of information that you collect from your users but don't need to retain.

Your Lambda function can analyze this additional data and act on it. Your function might perform external API operations like logging user attributes and validation data to Amazon CloudWatch Logs. Validation data might also affect the response that your function returns to Amazon Cognito, like automatically confirming the user if they sign up from within your network.

For more information about the pre sign-up Lambda trigger, see Pre sign-up Lambda trigger.

\"\ },\ \"AnalyticsMetadata\":{\ \"shape\":\"AnalyticsMetadataType\",\ @@ -7502,7 +7531,7 @@ - (NSString *)definitionString { },\ \"Username\":{\ \"shape\":\"UsernameType\",\ - \"documentation\":\"

The user pool username.

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

The username of the user that you want to query or modify. The value of this parameter is typically your user's username, but it can be any of their alias attributes. If username isn't an alias attribute in your user pool, you can also use their sub in this request.

\"\ },\ \"EventId\":{\ \"shape\":\"EventIdType\",\ @@ -7733,11 +7762,11 @@ - (NSString *)definitionString { },\ \"ReadAttributes\":{\ \"shape\":\"ClientPermissionListType\",\ - \"documentation\":\"

The read-only attributes of the user pool.

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

The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An example of this kind of activity is when your user selects a link to view their profile information. Your app makes a GetUser API request to retrieve and display your user's profile data.

When you don't specify the ReadAttributes for your app client, your app can read the values of email_verified, phone_number_verified, and the Standard attributes of your user pool. When your user pool has read access to these default attributes, ReadAttributes doesn't return any information. Amazon Cognito only populates ReadAttributes in the API response if you have specified your own custom set of read attributes.

\"\ },\ \"WriteAttributes\":{\ \"shape\":\"ClientPermissionListType\",\ - \"documentation\":\"

The writeable attributes of the user pool.

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

The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list. An example of this kind of activity is when you present your user with a form to update their profile information and they change their last name. Your app then makes an UpdateUserAttributes API request and sets family_name to the new value.

When you don't specify the WriteAttributes for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, WriteAttributes doesn't return any information. Amazon Cognito only populates WriteAttributes in the API response if you have specified your own custom set of write attributes.

If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool.

\"\ },\ \"ExplicitAuthFlows\":{\ \"shape\":\"ExplicitAuthFlowsListType\",\ @@ -8178,11 +8207,11 @@ - (NSString *)definitionString { },\ \"ReadAttributes\":{\ \"shape\":\"ClientPermissionListType\",\ - \"documentation\":\"

The Read-only attributes.

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

The list of user attributes that you want your app client to have read-only access to. After your user authenticates in your app, their access token authorizes them to read their own attribute value for any attribute in this list. An example of this kind of activity is when your user selects a link to view their profile information. Your app makes a GetUser API request to retrieve and display your user's profile data.

When you don't specify the ReadAttributes for your app client, your app can read the values of email_verified, phone_number_verified, and the Standard attributes of your user pool. When your user pool has read access to these default attributes, ReadAttributes doesn't return any information. Amazon Cognito only populates ReadAttributes in the API response if you have specified your own custom set of read attributes.

\"\ },\ \"WriteAttributes\":{\ \"shape\":\"ClientPermissionListType\",\ - \"documentation\":\"

The writeable attributes.

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

The list of user attributes that you want your app client to have write access to. After your user authenticates in your app, their access token authorizes them to set or modify their own attribute value for any attribute in this list. An example of this kind of activity is when you present your user with a form to update their profile information and they change their last name. Your app then makes an UpdateUserAttributes API request and sets family_name to the new value.

When you don't specify the WriteAttributes for your app client, your app can write the values of the Standard attributes of your user pool. When your user pool has write access to these default attributes, WriteAttributes doesn't return any information. Amazon Cognito only populates WriteAttributes in the API response if you have specified your own custom set of write attributes.

If your app client allows users to sign in through an IdP, this array must include all attributes that you have mapped to IdP attributes. Amazon Cognito updates mapped attributes when users sign in to your application through an IdP. If your app client does not have write access to a mapped attribute, Amazon Cognito throws an error when it tries to update the attribute. For more information, see Specifying IdP Attribute Mappings for Your user pool.

\"\ },\ \"ExplicitAuthFlows\":{\ \"shape\":\"ExplicitAuthFlowsListType\",\ @@ -8348,7 +8377,7 @@ - (NSString *)definitionString { },\ \"Status\":{\ \"shape\":\"StatusType\",\ - \"documentation\":\"

The status of a user pool.

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

This parameter is no longer used.

\",\ \"deprecated\":true,\ \"deprecatedMessage\":\"This property is no longer available.\"\ },\ @@ -8667,7 +8696,7 @@ - (NSString *)definitionString { },\ \"WrappedBooleanType\":{\"type\":\"boolean\"}\ },\ - \"documentation\":\"

With the Amazon Cognito user pools API, you can set up user pools and app clients, and authenticate users. To authenticate users from third-party identity providers (IdPs) in this API, you can link IdP users to native user profiles. Learn more about the authentication and authorization of federated users in the Using the Amazon Cognito user pools API and user pool endpoints.

This API reference provides detailed information about API operations and object types in Amazon Cognito. At the bottom of the page for each API operation and object, under See Also, you can learn how to use it in an Amazon Web Services SDK in the language of your choice.

Along with resource management operations, the Amazon Cognito user pools API includes classes of operations and authorization models for client-side and server-side user operations. For more information, see Using the Amazon Cognito native and OIDC APIs in the Amazon Cognito Developer Guide.

You can also start reading about the CognitoIdentityProvider client in the following SDK guides.

To get started with an Amazon Web Services SDK, see Tools to Build on Amazon Web Services. For example actions and scenarios, see Code examples for Amazon Cognito Identity Provider using Amazon Web Services SDKs.

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

With the Amazon Cognito user pools API, you can configure user pools and authenticate users. To authenticate users from third-party identity providers (IdPs) in this API, you can link IdP users to native user profiles. Learn more about the authentication and authorization of federated users at Adding user pool sign-in through a third party and in the User pool federation endpoints and hosted UI reference.

This API reference provides detailed information about API operations and object types in Amazon Cognito.

Along with resource management operations, the Amazon Cognito user pools API includes classes of operations and authorization models for client-side and server-side authentication of users. You can interact with operations in the Amazon Cognito user pools API as any of the following subjects.

  1. An administrator who wants to configure user pools, app clients, users, groups, or other user pool functions.

  2. A server-side app, like a web application, that wants to use its Amazon Web Services privileges to manage, authenticate, or authorize a user.

  3. A client-side app, like a mobile app, that wants to make unauthenticated requests to manage, authenticate, or authorize a user.

For more information, see Using the Amazon Cognito user pools API and user pool endpoints in the Amazon Cognito Developer Guide.

With your Amazon Web Services SDK, you can build the logic to support operational flows in every use case for this API. You can also make direct REST API requests to Amazon Cognito user pools service endpoints. The following links can get you started with the CognitoIdentityProvider client in other supported Amazon Web Services SDKs.

To get started with an Amazon Web Services SDK, see Tools to Build on Amazon Web Services. For example actions and scenarios, see Code examples for Amazon Cognito Identity Provider using Amazon Web Services SDKs.

\"\ }\ "; } diff --git a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderService.h b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderService.h index 3c6b705e21a..3bbd820718c 100644 --- a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderService.h +++ b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderService.h @@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; /** -

With the Amazon Cognito user pools API, you can set up user pools and app clients, and authenticate users. To authenticate users from third-party identity providers (IdPs) in this API, you can link IdP users to native user profiles. Learn more about the authentication and authorization of federated users in the Using the Amazon Cognito user pools API and user pool endpoints.

This API reference provides detailed information about API operations and object types in Amazon Cognito. At the bottom of the page for each API operation and object, under See Also, you can learn how to use it in an Amazon Web Services SDK in the language of your choice.

Along with resource management operations, the Amazon Cognito user pools API includes classes of operations and authorization models for client-side and server-side user operations. For more information, see Using the Amazon Cognito native and OIDC APIs in the Amazon Cognito Developer Guide.

You can also start reading about the CognitoIdentityProvider client in the following SDK guides.

To get started with an Amazon Web Services SDK, see Tools to Build on Amazon Web Services. For example actions and scenarios, see Code examples for Amazon Cognito Identity Provider using Amazon Web Services SDKs.

+

With the Amazon Cognito user pools API, you can configure user pools and authenticate users. To authenticate users from third-party identity providers (IdPs) in this API, you can link IdP users to native user profiles. Learn more about the authentication and authorization of federated users at Adding user pool sign-in through a third party and in the User pool federation endpoints and hosted UI reference.

This API reference provides detailed information about API operations and object types in Amazon Cognito.

Along with resource management operations, the Amazon Cognito user pools API includes classes of operations and authorization models for client-side and server-side authentication of users. You can interact with operations in the Amazon Cognito user pools API as any of the following subjects.

  1. An administrator who wants to configure user pools, app clients, users, groups, or other user pool functions.

  2. A server-side app, like a web application, that wants to use its Amazon Web Services privileges to manage, authenticate, or authorize a user.

  3. A client-side app, like a mobile app, that wants to make unauthenticated requests to manage, authenticate, or authorize a user.

For more information, see Using the Amazon Cognito user pools API and user pool endpoints in the Amazon Cognito Developer Guide.

With your Amazon Web Services SDK, you can build the logic to support operational flows in every use case for this API. You can also make direct REST API requests to Amazon Cognito user pools service endpoints. The following links can get you started with the CognitoIdentityProvider client in other supported Amazon Web Services SDKs.

To get started with an Amazon Web Services SDK, see Tools to Build on Amazon Web Services. For example actions and scenarios, see Code examples for Amazon Cognito Identity Provider using Amazon Web Services SDKs.

*/ @interface AWSCognitoIdentityProvider : AWSService @@ -200,7 +200,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (void)addCustomAttributes:(AWSCognitoIdentityProviderAddCustomAttributesRequest *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityProviderAddCustomAttributesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Adds the specified user to the specified group.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

Adds a user to a group. A user who is in a group can present a preferred-role claim to an identity pool, and populates a cognito:groups claim to their access and identity tokens.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

@param request A container for the necessary parameters to execute the AdminAddUserToGroup service method. @@ -211,7 +211,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (AWSTask *)adminAddUserToGroup:(AWSCognitoIdentityProviderAdminAddUserToGroupRequest *)request; /** -

Adds the specified user to the specified group.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

Adds a user to a group. A user who is in a group can present a preferred-role claim to an identity pool, and populates a cognito:groups claim to their access and identity tokens.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

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

Confirms user registration as an admin without using a confirmation code. Works on any user.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

This IAM-authenticated API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message.

Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users confirm their accounts when they respond to their invitation email message and choose a password.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

@param request A container for the necessary parameters to execute the AdminConfirmSignUp service method. @@ -234,7 +234,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (AWSTask *)adminConfirmSignUp:(AWSCognitoIdentityProviderAdminConfirmSignUpRequest *)request; /** -

Confirms user registration as an admin without using a confirmation code. Works on any user.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

This IAM-authenticated API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message.

Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users confirm their accounts when they respond to their invitation email message and choose a password.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

@param request A container for the necessary parameters to execute the AdminConfirmSignUp service method. @param completionHandler The completion handler to call when the load request is complete. @@ -541,7 +541,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (void)adminListDevices:(AWSCognitoIdentityProviderAdminListDevicesRequest *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityProviderAdminListDevicesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Lists the groups that the user belongs to.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

Lists the groups that a user belongs to.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

@param request A container for the necessary parameters to execute the AdminListGroupsForUser service method. @@ -553,7 +553,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (AWSTask *)adminListGroupsForUser:(AWSCognitoIdentityProviderAdminListGroupsForUserRequest *)request; /** -

Lists the groups that the user belongs to.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

Lists the groups that a user belongs to.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

@param request A container for the necessary parameters to execute the AdminListGroupsForUser service method. @param completionHandler The completion handler to call when the load request is complete. @@ -638,7 +638,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (void)adminResetUserPassword:(AWSCognitoIdentityProviderAdminResetUserPasswordRequest *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityProviderAdminResetUserPasswordResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Responds to an authentication challenge, as an administrator.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. An AdminRespondToAuthChallenge API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge.

For more information about custom authentication challenges, see Custom authentication challenge Lambda triggers.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

@param request A container for the necessary parameters to execute the AdminRespondToAuthChallenge service method. @@ -650,7 +650,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (AWSTask *)adminRespondToAuthChallenge:(AWSCognitoIdentityProviderAdminRespondToAuthChallengeRequest *)request; /** -

Responds to an authentication challenge, as an administrator.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. An AdminRespondToAuthChallenge API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge.

For more information about custom authentication challenges, see Custom authentication challenge Lambda triggers.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

@param request A container for the necessary parameters to execute the AdminRespondToAuthChallenge service method. @param completionHandler The completion handler to call when the load request is complete. @@ -813,7 +813,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (void)adminUpdateUserAttributes:(AWSCognitoIdentityProviderAdminUpdateUserAttributesRequest *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityProviderAdminUpdateUserAttributesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Signs out a user from all devices. AdminUserGlobalSignOut invalidates all identity, access and refresh tokens that Amazon Cognito has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens for the duration of the 1-hour cookie validity period.

Your app isn't aware that a user's access token is revoked unless it attempts to authorize a user pools API request with an access token that contains the scope aws.cognito.signin.user.admin. Your app might otherwise accept access tokens until they expire.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation with your administrative credentials when your user signs out of your app. This results in the following behavior.

  • Amazon Cognito no longer accepts token-authorized user operations that you authorize with a signed-out user's access tokens. For more information, see Using the Amazon Cognito user pools API and user pool endpoints.

    Amazon Cognito returns an Access Token has been revoked error when your app attempts to authorize a user pools API request with a revoked access token that contains the scope aws.cognito.signin.user.admin.

  • Amazon Cognito no longer accepts a signed-out user's ID token in a GetId request to an identity pool with ServerSideTokenCheck enabled for its user pool IdP configuration in CognitoIdentityProvider.

  • Amazon Cognito no longer accepts a signed-out user's refresh tokens in refresh requests.

Other requests might be valid until your user's token expires.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

@param request A container for the necessary parameters to execute the AdminUserGlobalSignOut service method. @@ -825,7 +825,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (AWSTask *)adminUserGlobalSignOut:(AWSCognitoIdentityProviderAdminUserGlobalSignOutRequest *)request; /** -

Signs out a user from all devices. AdminUserGlobalSignOut invalidates all identity, access and refresh tokens that Amazon Cognito has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens for the duration of the 1-hour cookie validity period.

Your app isn't aware that a user's access token is revoked unless it attempts to authorize a user pools API request with an access token that contains the scope aws.cognito.signin.user.admin. Your app might otherwise accept access tokens until they expire.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

+

Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation with your administrative credentials when your user signs out of your app. This results in the following behavior.

  • Amazon Cognito no longer accepts token-authorized user operations that you authorize with a signed-out user's access tokens. For more information, see Using the Amazon Cognito user pools API and user pool endpoints.

    Amazon Cognito returns an Access Token has been revoked error when your app attempts to authorize a user pools API request with a revoked access token that contains the scope aws.cognito.signin.user.admin.

  • Amazon Cognito no longer accepts a signed-out user's ID token in a GetId request to an identity pool with ServerSideTokenCheck enabled for its user pool IdP configuration in CognitoIdentityProvider.

  • Amazon Cognito no longer accepts a signed-out user's refresh tokens in refresh requests.

Other requests might be valid until your user's token expires.

Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.

Learn more

@param request A container for the necessary parameters to execute the AdminUserGlobalSignOut service method. @param completionHandler The completion handler to call when the load request is complete. @@ -938,7 +938,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (void)confirmForgotPassword:(AWSCognitoIdentityProviderConfirmForgotPasswordRequest *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityProviderConfirmForgotPasswordResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Confirms registration of a new user.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

+

This public API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool via the SignUp API operation. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message.

Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users, users created with the AdminCreateUser API operation, confirm their accounts when they respond to their invitation email message and choose a password. They do not receive a confirmation code. Instead, they receive a temporary password.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

@param request A container for the necessary parameters to execute the ConfirmSignUp service method. @@ -950,7 +950,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (AWSTask *)confirmSignUp:(AWSCognitoIdentityProviderConfirmSignUpRequest *)request; /** -

Confirms registration of a new user.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

+

This public API operation provides a code that Amazon Cognito sent to your user when they signed up in your user pool via the SignUp API operation. After your user enters their code, they confirm ownership of the email address or phone number that they provided, and their user account becomes active. Depending on your user pool configuration, your users will receive their confirmation code in an email or SMS message.

Local users who signed up in your user pool are the only type of user who can confirm sign-up with a code. Users who federate through an external identity provider (IdP) have already been confirmed by their IdP. Administrator-created users, users created with the AdminCreateUser API operation, confirm their accounts when they respond to their invitation email message and choose a password. They do not receive a confirmation code. Instead, they receive a temporary password.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

@param request A container for the necessary parameters to execute the ConfirmSignUp service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1792,7 +1792,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (void)getUserPoolMfaConfig:(AWSCognitoIdentityProviderGetUserPoolMfaConfigRequest *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityProviderGetUserPoolMfaConfigResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Signs out a user from all devices. GlobalSignOut invalidates all identity, access and refresh tokens that Amazon Cognito has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens for the duration of the 1-hour cookie validity period.

Your app isn't aware that a user's access token is revoked unless it attempts to authorize a user pools API request with an access token that contains the scope aws.cognito.signin.user.admin. Your app might otherwise accept access tokens until they expire.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

+

Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation when your user signs out of your app. This results in the following behavior.

  • Amazon Cognito no longer accepts token-authorized user operations that you authorize with a signed-out user's access tokens. For more information, see Using the Amazon Cognito user pools API and user pool endpoints.

    Amazon Cognito returns an Access Token has been revoked error when your app attempts to authorize a user pools API request with a revoked access token that contains the scope aws.cognito.signin.user.admin.

  • Amazon Cognito no longer accepts a signed-out user's ID token in a GetId request to an identity pool with ServerSideTokenCheck enabled for its user pool IdP configuration in CognitoIdentityProvider.

  • Amazon Cognito no longer accepts a signed-out user's refresh tokens in refresh requests.

Other requests might be valid until your user's token expires.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

@param request A container for the necessary parameters to execute the GlobalSignOut service method. @@ -1804,7 +1804,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (AWSTask *)globalSignOut:(AWSCognitoIdentityProviderGlobalSignOutRequest *)request; /** -

Signs out a user from all devices. GlobalSignOut invalidates all identity, access and refresh tokens that Amazon Cognito has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens for the duration of the 1-hour cookie validity period.

Your app isn't aware that a user's access token is revoked unless it attempts to authorize a user pools API request with an access token that contains the scope aws.cognito.signin.user.admin. Your app might otherwise accept access tokens until they expire.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

+

Invalidates the identity, access, and refresh tokens that Amazon Cognito issued to a user. Call this operation when your user signs out of your app. This results in the following behavior.

  • Amazon Cognito no longer accepts token-authorized user operations that you authorize with a signed-out user's access tokens. For more information, see Using the Amazon Cognito user pools API and user pool endpoints.

    Amazon Cognito returns an Access Token has been revoked error when your app attempts to authorize a user pools API request with a revoked access token that contains the scope aws.cognito.signin.user.admin.

  • Amazon Cognito no longer accepts a signed-out user's ID token in a GetId request to an identity pool with ServerSideTokenCheck enabled for its user pool IdP configuration in CognitoIdentityProvider.

  • Amazon Cognito no longer accepts a signed-out user's refresh tokens in refresh requests.

Other requests might be valid until your user's token expires.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

@param request A container for the necessary parameters to execute the GlobalSignOut service method. @param completionHandler The completion handler to call when the load request is complete. @@ -2117,7 +2117,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (void)resendConfirmationCode:(AWSCognitoIdentityProviderResendConfirmationCodeRequest *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityProviderResendConfirmationCodeResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Responds to the authentication challenge.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

+

Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. A RespondToAuthChallenge API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge.

For more information about custom authentication challenges, see Custom authentication challenge Lambda triggers.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

@param request A container for the necessary parameters to execute the RespondToAuthChallenge service method. @@ -2129,7 +2129,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (AWSTask *)respondToAuthChallenge:(AWSCognitoIdentityProviderRespondToAuthChallengeRequest *)request; /** -

Responds to the authentication challenge.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

+

Some API operations in a user pool generate a challenge, like a prompt for an MFA code, for device authentication that bypasses MFA, or for a custom authentication challenge. A RespondToAuthChallenge API request provides the answer to that challenge, like a code or a secure remote password (SRP). The parameters of a response to an authentication challenge vary with the type of challenge.

For more information about custom authentication challenges, see Custom authentication challenge Lambda triggers.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

@param request A container for the necessary parameters to execute the RespondToAuthChallenge service method. @param completionHandler The completion handler to call when the load request is complete. @@ -2567,7 +2567,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (void)updateResourceServer:(AWSCognitoIdentityProviderUpdateResourceServerRequest *)request completionHandler:(void (^ _Nullable)(AWSCognitoIdentityProviderUpdateResourceServerResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Allows a user to update a specific attribute (one at a time).

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

+

With this operation, your users can update one or more of their attributes with their own credentials. You authorize this API request with the user's access token. To delete an attribute from your user, submit the attribute in your API request with a blank value. Custom attribute values in this request must include the custom: prefix.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

@param request A container for the necessary parameters to execute the UpdateUserAttributes service method. @@ -2579,7 +2579,7 @@ FOUNDATION_EXPORT NSString *const AWSCognitoIdentityProviderSDKVersion; - (AWSTask *)updateUserAttributes:(AWSCognitoIdentityProviderUpdateUserAttributesRequest *)request; /** -

Allows a user to update a specific attribute (one at a time).

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

+

With this operation, your users can update one or more of their attributes with their own credentials. You authorize this API request with the user's access token. To delete an attribute from your user, submit the attribute in your API request with a blank value. Custom attribute values in this request must include the custom: prefix.

Amazon Cognito doesn't evaluate Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you can't use IAM credentials to authorize requests, and you can't grant IAM permissions in policies. For more information about authorization models in Amazon Cognito, see Using the Amazon Cognito native and OIDC APIs.

This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.

If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode, you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.

@param request A container for the necessary parameters to execute the UpdateUserAttributes service method. @param completionHandler The completion handler to call when the load request is complete. diff --git a/AWSCognitoIdentityProviderUnitTests/AWSCognitoIdentityProviderNSSecureCodingTests.m b/AWSCognitoIdentityProviderUnitTests/AWSCognitoIdentityProviderNSSecureCodingTests.m index 5fb12d31ea5..d150a921041 100644 --- a/AWSCognitoIdentityProviderUnitTests/AWSCognitoIdentityProviderNSSecureCodingTests.m +++ b/AWSCognitoIdentityProviderUnitTests/AWSCognitoIdentityProviderNSSecureCodingTests.m @@ -204,6 +204,7 @@ - (void) test_AWSCognitoIdentityProviderNotifyConfigurationType API_AVAILABLE(io - (void) test_AWSCognitoIdentityProviderNotifyEmailType API_AVAILABLE(ios(11)); - (void) test_AWSCognitoIdentityProviderNumberAttributeConstraintsType API_AVAILABLE(ios(11)); - (void) test_AWSCognitoIdentityProviderPasswordPolicyType API_AVAILABLE(ios(11)); +- (void) test_AWSCognitoIdentityProviderPreTokenGenerationVersionConfigType API_AVAILABLE(ios(11)); - (void) test_AWSCognitoIdentityProviderProviderDescription API_AVAILABLE(ios(11)); - (void) test_AWSCognitoIdentityProviderProviderUserIdentifierType API_AVAILABLE(ios(11)); - (void) test_AWSCognitoIdentityProviderRecoveryOptionType API_AVAILABLE(ios(11)); @@ -1027,6 +1028,10 @@ - (void) test_AWSCognitoIdentityProviderPasswordPolicyType { [self validateSecureCodingForClass:[AWSCognitoIdentityProviderPasswordPolicyType class]]; } +- (void) test_AWSCognitoIdentityProviderPreTokenGenerationVersionConfigType { + [self validateSecureCodingForClass:[AWSCognitoIdentityProviderPreTokenGenerationVersionConfigType class]]; +} + - (void) test_AWSCognitoIdentityProviderProviderDescription { [self validateSecureCodingForClass:[AWSCognitoIdentityProviderProviderDescription class]]; } From 53e7dbf8d16769782f5b0bedd6df32e7cf148d7a Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 28 Dec 2023 09:01:45 -0800 Subject: [PATCH 04/13] feat(AWSFirehose): update models to latest (#5121) --- AWSKinesis/AWSFirehoseModel.h | 35 ++++++++++++ AWSKinesis/AWSFirehoseModel.m | 30 ++++++++++ AWSKinesis/AWSFirehoseResources.m | 57 +++++++++++++++++-- AWSKinesis/AWSFirehoseService.h | 8 +-- AWSKinesis/AWSFirehoseService.m | 1 + .../AWSFirehoseNSSecureCodingTests.m | 5 ++ 6 files changed, 127 insertions(+), 9 deletions(-) diff --git a/AWSKinesis/AWSFirehoseModel.h b/AWSKinesis/AWSFirehoseModel.h index 673c828a4b5..a49403e0e18 100644 --- a/AWSKinesis/AWSFirehoseModel.h +++ b/AWSKinesis/AWSFirehoseModel.h @@ -26,6 +26,7 @@ typedef NS_ENUM(NSInteger, AWSFirehoseErrorType) { AWSFirehoseErrorConcurrentModification, AWSFirehoseErrorInvalidArgument, AWSFirehoseErrorInvalidKMSResource, + AWSFirehoseErrorInvalidSource, AWSFirehoseErrorLimitExceeded, AWSFirehoseErrorResourceInUse, AWSFirehoseErrorResourceNotFound, @@ -312,6 +313,7 @@ typedef NS_ENUM(NSInteger, AWSFirehoseSplunkS3BackupMode) { @class AWSFirehoseSchemaConfiguration; @class AWSFirehoseSerializer; @class AWSFirehoseSourceDescription; +@class AWSFirehoseSplunkBufferingHints; @class AWSFirehoseSplunkDestinationConfiguration; @class AWSFirehoseSplunkDestinationDescription; @class AWSFirehoseSplunkDestinationUpdate; @@ -3001,6 +3003,24 @@ typedef NS_ENUM(NSInteger, AWSFirehoseSplunkS3BackupMode) { @end +/** +

The buffering options. If no value is specified, the default values for Splunk are used.

+ */ +@interface AWSFirehoseSplunkBufferingHints : AWSModel + + +/** +

Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 60 (1 minute).

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

Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.

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

Describes the configuration of a destination in Splunk.

Required parameters: [HECEndpoint, HECEndpointType, HECToken, S3Configuration] @@ -3008,6 +3028,11 @@ typedef NS_ENUM(NSInteger, AWSFirehoseSplunkS3BackupMode) { @interface AWSFirehoseSplunkDestinationConfiguration : AWSModel +/** +

The buffering options. If no value is specified, the default values for Splunk are used.

+ */ +@property (nonatomic, strong) AWSFirehoseSplunkBufferingHints * _Nullable bufferingHints; + /**

The Amazon CloudWatch logging options for your delivery stream.

*/ @@ -3061,6 +3086,11 @@ typedef NS_ENUM(NSInteger, AWSFirehoseSplunkS3BackupMode) { @interface AWSFirehoseSplunkDestinationDescription : AWSModel +/** +

The buffering options. If no value is specified, the default values for Splunk are used.

+ */ +@property (nonatomic, strong) AWSFirehoseSplunkBufferingHints * _Nullable bufferingHints; + /**

The Amazon CloudWatch logging options for your delivery stream.

*/ @@ -3114,6 +3144,11 @@ typedef NS_ENUM(NSInteger, AWSFirehoseSplunkS3BackupMode) { @interface AWSFirehoseSplunkDestinationUpdate : AWSModel +/** +

The buffering options. If no value is specified, the default values for Splunk are used.

+ */ +@property (nonatomic, strong) AWSFirehoseSplunkBufferingHints * _Nullable bufferingHints; + /**

The Amazon CloudWatch logging options for your delivery stream.

*/ diff --git a/AWSKinesis/AWSFirehoseModel.m b/AWSKinesis/AWSFirehoseModel.m index 9dea2b9ccb5..dfced82363e 100644 --- a/AWSKinesis/AWSFirehoseModel.m +++ b/AWSKinesis/AWSFirehoseModel.m @@ -3505,6 +3505,21 @@ + (NSValueTransformer *)MSKSourceDescriptionJSONTransformer { @end +@implementation AWSFirehoseSplunkBufferingHints + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"intervalInSeconds" : @"IntervalInSeconds", + @"sizeInMBs" : @"SizeInMBs", + }; +} + +@end + @implementation AWSFirehoseSplunkDestinationConfiguration + (BOOL)supportsSecureCoding { @@ -3513,6 +3528,7 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ + @"bufferingHints" : @"BufferingHints", @"cloudWatchLoggingOptions" : @"CloudWatchLoggingOptions", @"HECAcknowledgmentTimeoutInSeconds" : @"HECAcknowledgmentTimeoutInSeconds", @"HECEndpoint" : @"HECEndpoint", @@ -3525,6 +3541,10 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { }; } ++ (NSValueTransformer *)bufferingHintsJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSFirehoseSplunkBufferingHints class]]; +} + + (NSValueTransformer *)cloudWatchLoggingOptionsJSONTransformer { return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSFirehoseCloudWatchLoggingOptions class]]; } @@ -3593,6 +3613,7 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ + @"bufferingHints" : @"BufferingHints", @"cloudWatchLoggingOptions" : @"CloudWatchLoggingOptions", @"HECAcknowledgmentTimeoutInSeconds" : @"HECAcknowledgmentTimeoutInSeconds", @"HECEndpoint" : @"HECEndpoint", @@ -3605,6 +3626,10 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { }; } ++ (NSValueTransformer *)bufferingHintsJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSFirehoseSplunkBufferingHints class]]; +} + + (NSValueTransformer *)cloudWatchLoggingOptionsJSONTransformer { return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSFirehoseCloudWatchLoggingOptions class]]; } @@ -3673,6 +3698,7 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ + @"bufferingHints" : @"BufferingHints", @"cloudWatchLoggingOptions" : @"CloudWatchLoggingOptions", @"HECAcknowledgmentTimeoutInSeconds" : @"HECAcknowledgmentTimeoutInSeconds", @"HECEndpoint" : @"HECEndpoint", @@ -3685,6 +3711,10 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { }; } ++ (NSValueTransformer *)bufferingHintsJSONTransformer { + return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSFirehoseSplunkBufferingHints class]]; +} + + (NSValueTransformer *)cloudWatchLoggingOptionsJSONTransformer { return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSFirehoseCloudWatchLoggingOptions class]]; } diff --git a/AWSKinesis/AWSFirehoseResources.m b/AWSKinesis/AWSFirehoseResources.m index 7b782c54844..18e9f3b8a4e 100644 --- a/AWSKinesis/AWSFirehoseResources.m +++ b/AWSKinesis/AWSFirehoseResources.m @@ -151,6 +151,7 @@ - (NSString *)definitionString { {\"shape\":\"ResourceNotFoundException\"},\ {\"shape\":\"InvalidArgumentException\"},\ {\"shape\":\"InvalidKMSResourceException\"},\ + {\"shape\":\"InvalidSourceException\"},\ {\"shape\":\"ServiceUnavailableException\"}\ ],\ \"documentation\":\"

Writes a single data record into an Amazon Kinesis Data Firehose delivery stream. To write multiple data records into a delivery stream, use PutRecordBatch. Applications using these operations are referred to as producers.

By default, each delivery stream can take in up to 2,000 transactions per second, 5,000 records per second, or 5 MB per second. If you use PutRecord and PutRecordBatch, the limits are an aggregate across these two operations for each delivery stream. For more information about limits and how to request an increase, see Amazon Kinesis Data Firehose Limits.

Kinesis Data Firehose accumulates and publishes a particular metric for a customer account in one minute intervals. It is possible that the bursts of incoming bytes/records ingested to a delivery stream last only for a few seconds. Due to this, the actual spikes in the traffic might not be fully visible in the customer's 1 minute CloudWatch metrics.

You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KiB in size, and any kind of data. For example, it can be a segment from a log file, geographic location data, website clickstream data, and so on.

Kinesis Data Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\\\\n) or some other character unique within the data. This allows the consumer application to parse individual data items when reading the data from the destination.

The PutRecord operation returns a RecordId, which is a unique string assigned to each record. Producer applications can use this ID for purposes such as auditability and investigation.

If the PutRecord operation throws a ServiceUnavailableException, the API is automatically reinvoked (retried) 3 times. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream.

Re-invoking the Put API operations (for example, PutRecord and PutRecordBatch) can result in data duplicates. For larger data assets, allow for a longer time out before retrying Put API operations.

Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they are added to a delivery stream as it tries to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available.

Don't concatenate two or more base64 strings to form the data fields of your records. Instead, concatenate the raw data, then perform base64 encoding.

\"\ @@ -167,6 +168,7 @@ - (NSString *)definitionString { {\"shape\":\"ResourceNotFoundException\"},\ {\"shape\":\"InvalidArgumentException\"},\ {\"shape\":\"InvalidKMSResourceException\"},\ + {\"shape\":\"InvalidSourceException\"},\ {\"shape\":\"ServiceUnavailableException\"}\ ],\ \"documentation\":\"

Writes multiple data records into a delivery stream in a single call, which can achieve higher throughput per producer than when writing single records. To write single data records into a delivery stream, use PutRecord. Applications using these operations are referred to as producers.

Kinesis Data Firehose accumulates and publishes a particular metric for a customer account in one minute intervals. It is possible that the bursts of incoming bytes/records ingested to a delivery stream last only for a few seconds. Due to this, the actual spikes in the traffic might not be fully visible in the customer's 1 minute CloudWatch metrics.

For information about service quota, see Amazon Kinesis Data Firehose Quota.

Each PutRecordBatch request supports up to 500 records. Each record in the request can be as large as 1,000 KB (before base64 encoding), up to a limit of 4 MB for the entire request. These limits cannot be changed.

You must specify the name of the delivery stream and the data record when using PutRecord. The data record consists of a data blob that can be up to 1,000 KB in size, and any kind of data. For example, it could be a segment from a log file, geographic location data, website clickstream data, and so on.

Kinesis Data Firehose buffers records before delivering them to the destination. To disambiguate the data blobs at the destination, a common solution is to use delimiters in the data, such as a newline (\\\\n) or some other character unique within the data. This allows the consumer application to parse individual data items when reading the data from the destination.

The PutRecordBatch response includes a count of failed records, FailedPutCount, and an array of responses, RequestResponses. Even if the PutRecordBatch call succeeds, the value of FailedPutCount may be greater than 0, indicating that there are records for which the operation didn't succeed. Each entry in the RequestResponses array provides additional information about the processed record. It directly correlates with a record in the request array using the same ordering, from the top to the bottom. The response array always includes the same number of records as the request array. RequestResponses includes both successfully and unsuccessfully processed records. Kinesis Data Firehose tries to process all records in each PutRecordBatch request. A single record failure does not stop the processing of subsequent records.

A successfully processed record includes a RecordId value, which is unique for the record. An unsuccessfully processed record includes ErrorCode and ErrorMessage values. ErrorCode reflects the type of error, and is one of the following values: ServiceUnavailableException or InternalFailure. ErrorMessage provides more detailed information about the error.

If there is an internal server error or a timeout, the write might have completed or it might have failed. If FailedPutCount is greater than 0, retry the request, resending only those records that might have failed processing. This minimizes the possible duplicate records and also reduces the total bytes sent (and corresponding charges). We recommend that you handle any duplicates at the destination.

If PutRecordBatch throws ServiceUnavailableException, the API is automatically reinvoked (retried) 3 times. If the exception persists, it is possible that the throughput limits have been exceeded for the delivery stream.

Re-invoking the Put API operations (for example, PutRecord and PutRecordBatch) can result in data duplicates. For larger data assets, allow for a longer time out before retrying Put API operations.

Data records sent to Kinesis Data Firehose are stored for 24 hours from the time they are added to a delivery stream as it attempts to send the records to the destination. If the destination is unreachable for more than 24 hours, the data is no longer available.

Don't concatenate two or more base64 strings to form the data fields of your records. Instead, concatenate the raw data, then perform base64 encoding.

\"\ @@ -277,7 +279,7 @@ - (NSString *)definitionString { \"AmazonOpenSearchServerlessBufferingIntervalInSeconds\":{\ \"type\":\"integer\",\ \"max\":900,\ - \"min\":60\ + \"min\":0\ },\ \"AmazonOpenSearchServerlessBufferingSizeInMBs\":{\ \"type\":\"integer\",\ @@ -437,7 +439,7 @@ - (NSString *)definitionString { \"AmazonopensearchserviceBufferingIntervalInSeconds\":{\ \"type\":\"integer\",\ \"max\":900,\ - \"min\":60\ + \"min\":0\ },\ \"AmazonopensearchserviceBufferingSizeInMBs\":{\ \"type\":\"integer\",\ @@ -1230,7 +1232,7 @@ - (NSString *)definitionString { \"ElasticsearchBufferingIntervalInSeconds\":{\ \"type\":\"integer\",\ \"max\":900,\ - \"min\":60\ + \"min\":0\ },\ \"ElasticsearchBufferingSizeInMBs\":{\ \"type\":\"integer\",\ @@ -1773,7 +1775,7 @@ - (NSString *)definitionString { \"HttpEndpointBufferingIntervalInSeconds\":{\ \"type\":\"integer\",\ \"max\":900,\ - \"min\":60\ + \"min\":0\ },\ \"HttpEndpointBufferingSizeInMBs\":{\ \"type\":\"integer\",\ @@ -2002,7 +2004,7 @@ - (NSString *)definitionString { \"IntervalInSeconds\":{\ \"type\":\"integer\",\ \"max\":900,\ - \"min\":60\ + \"min\":0\ },\ \"InvalidArgumentException\":{\ \"type\":\"structure\",\ @@ -2024,6 +2026,15 @@ - (NSString *)definitionString { \"documentation\":\"

Kinesis Data Firehose throws this exception when an attempt to put records or to start or stop delivery stream encryption fails. This happens when the KMS service throws one of the following exception types: AccessDeniedException, InvalidStateException, DisabledException, or NotFoundException.

\",\ \"exception\":true\ },\ + \"InvalidSourceException\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"code\":{\"shape\":\"ErrorCode\"},\ + \"message\":{\"shape\":\"ErrorMessage\"}\ + },\ + \"documentation\":\"

Only requests from CloudWatch Logs are supported when CloudWatch Logs decompression is enabled.

\",\ + \"exception\":true\ + },\ \"KMSEncryptionConfig\":{\ \"type\":\"structure\",\ \"required\":[\"AWSKMSKeyARN\"],\ @@ -3074,6 +3085,30 @@ - (NSString *)definitionString { },\ \"documentation\":\"

Details about a Kinesis data stream used as the source for a Kinesis Data Firehose delivery stream.

\"\ },\ + \"SplunkBufferingHints\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"IntervalInSeconds\":{\ + \"shape\":\"SplunkBufferingIntervalInSeconds\",\ + \"documentation\":\"

Buffer incoming data for the specified period of time, in seconds, before delivering it to the destination. The default value is 60 (1 minute).

\"\ + },\ + \"SizeInMBs\":{\ + \"shape\":\"SplunkBufferingSizeInMBs\",\ + \"documentation\":\"

Buffer incoming data to the specified size, in MBs, before delivering it to the destination. The default value is 5.

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

The buffering options. If no value is specified, the default values for Splunk are used.

\"\ + },\ + \"SplunkBufferingIntervalInSeconds\":{\ + \"type\":\"integer\",\ + \"max\":60,\ + \"min\":0\ + },\ + \"SplunkBufferingSizeInMBs\":{\ + \"type\":\"integer\",\ + \"max\":5,\ + \"min\":1\ + },\ \"SplunkDestinationConfiguration\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -3118,6 +3153,10 @@ - (NSString *)definitionString { \"CloudWatchLoggingOptions\":{\ \"shape\":\"CloudWatchLoggingOptions\",\ \"documentation\":\"

The Amazon CloudWatch logging options for your delivery stream.

\"\ + },\ + \"BufferingHints\":{\ + \"shape\":\"SplunkBufferingHints\",\ + \"documentation\":\"

The buffering options. If no value is specified, the default values for Splunk are used.

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

Describes the configuration of a destination in Splunk.

\"\ @@ -3160,6 +3199,10 @@ - (NSString *)definitionString { \"CloudWatchLoggingOptions\":{\ \"shape\":\"CloudWatchLoggingOptions\",\ \"documentation\":\"

The Amazon CloudWatch logging options for your delivery stream.

\"\ + },\ + \"BufferingHints\":{\ + \"shape\":\"SplunkBufferingHints\",\ + \"documentation\":\"

The buffering options. If no value is specified, the default values for Splunk are used.

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

Describes a destination in Splunk.

\"\ @@ -3202,6 +3245,10 @@ - (NSString *)definitionString { \"CloudWatchLoggingOptions\":{\ \"shape\":\"CloudWatchLoggingOptions\",\ \"documentation\":\"

The Amazon CloudWatch logging options for your delivery stream.

\"\ + },\ + \"BufferingHints\":{\ + \"shape\":\"SplunkBufferingHints\",\ + \"documentation\":\"

The buffering options. If no value is specified, the default values for Splunk are used.

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

Describes an update for a destination in Splunk.

\"\ diff --git a/AWSKinesis/AWSFirehoseService.h b/AWSKinesis/AWSFirehoseService.h index 7b73487c82d..328dbc5a4cc 100644 --- a/AWSKinesis/AWSFirehoseService.h +++ b/AWSKinesis/AWSFirehoseService.h @@ -304,7 +304,7 @@ FOUNDATION_EXPORT NSString *const AWSFirehoseSDKVersion; @param request A container for the necessary parameters to execute the PutRecord service method. - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSFirehosePutRecordOutput`. On failed execution, `task.error` may contain an `NSError` with `AWSFirehoseErrorDomain` domain and the following error code: `AWSFirehoseErrorResourceNotFound`, `AWSFirehoseErrorInvalidArgument`, `AWSFirehoseErrorInvalidKMSResource`, `AWSFirehoseErrorServiceUnavailable`. + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSFirehosePutRecordOutput`. On failed execution, `task.error` may contain an `NSError` with `AWSFirehoseErrorDomain` domain and the following error code: `AWSFirehoseErrorResourceNotFound`, `AWSFirehoseErrorInvalidArgument`, `AWSFirehoseErrorInvalidKMSResource`, `AWSFirehoseErrorInvalidSource`, `AWSFirehoseErrorServiceUnavailable`. @see AWSFirehosePutRecordInput @see AWSFirehosePutRecordOutput @@ -317,7 +317,7 @@ FOUNDATION_EXPORT NSString *const AWSFirehoseSDKVersion; @param request A container for the necessary parameters to execute the PutRecord 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 `AWSFirehoseErrorDomain` domain and the following error code: `AWSFirehoseErrorResourceNotFound`, `AWSFirehoseErrorInvalidArgument`, `AWSFirehoseErrorInvalidKMSResource`, `AWSFirehoseErrorServiceUnavailable`. + `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 `AWSFirehoseErrorDomain` domain and the following error code: `AWSFirehoseErrorResourceNotFound`, `AWSFirehoseErrorInvalidArgument`, `AWSFirehoseErrorInvalidKMSResource`, `AWSFirehoseErrorInvalidSource`, `AWSFirehoseErrorServiceUnavailable`. @see AWSFirehosePutRecordInput @see AWSFirehosePutRecordOutput @@ -329,7 +329,7 @@ FOUNDATION_EXPORT NSString *const AWSFirehoseSDKVersion; @param request A container for the necessary parameters to execute the PutRecordBatch service method. - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSFirehosePutRecordBatchOutput`. On failed execution, `task.error` may contain an `NSError` with `AWSFirehoseErrorDomain` domain and the following error code: `AWSFirehoseErrorResourceNotFound`, `AWSFirehoseErrorInvalidArgument`, `AWSFirehoseErrorInvalidKMSResource`, `AWSFirehoseErrorServiceUnavailable`. + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSFirehosePutRecordBatchOutput`. On failed execution, `task.error` may contain an `NSError` with `AWSFirehoseErrorDomain` domain and the following error code: `AWSFirehoseErrorResourceNotFound`, `AWSFirehoseErrorInvalidArgument`, `AWSFirehoseErrorInvalidKMSResource`, `AWSFirehoseErrorInvalidSource`, `AWSFirehoseErrorServiceUnavailable`. @see AWSFirehosePutRecordBatchInput @see AWSFirehosePutRecordBatchOutput @@ -342,7 +342,7 @@ FOUNDATION_EXPORT NSString *const AWSFirehoseSDKVersion; @param request A container for the necessary parameters to execute the PutRecordBatch 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 `AWSFirehoseErrorDomain` domain and the following error code: `AWSFirehoseErrorResourceNotFound`, `AWSFirehoseErrorInvalidArgument`, `AWSFirehoseErrorInvalidKMSResource`, `AWSFirehoseErrorServiceUnavailable`. + `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 `AWSFirehoseErrorDomain` domain and the following error code: `AWSFirehoseErrorResourceNotFound`, `AWSFirehoseErrorInvalidArgument`, `AWSFirehoseErrorInvalidKMSResource`, `AWSFirehoseErrorInvalidSource`, `AWSFirehoseErrorServiceUnavailable`. @see AWSFirehosePutRecordBatchInput @see AWSFirehosePutRecordBatchOutput diff --git a/AWSKinesis/AWSFirehoseService.m b/AWSKinesis/AWSFirehoseService.m index ca2316334ec..ff420e7dba8 100644 --- a/AWSKinesis/AWSFirehoseService.m +++ b/AWSKinesis/AWSFirehoseService.m @@ -43,6 +43,7 @@ + (void)initialize { @"ConcurrentModificationException" : @(AWSFirehoseErrorConcurrentModification), @"InvalidArgumentException" : @(AWSFirehoseErrorInvalidArgument), @"InvalidKMSResourceException" : @(AWSFirehoseErrorInvalidKMSResource), + @"InvalidSourceException" : @(AWSFirehoseErrorInvalidSource), @"LimitExceededException" : @(AWSFirehoseErrorLimitExceeded), @"ResourceInUseException" : @(AWSFirehoseErrorResourceInUse), @"ResourceNotFoundException" : @(AWSFirehoseErrorResourceNotFound), diff --git a/AWSKinesisUnitTests/AWSFirehoseNSSecureCodingTests.m b/AWSKinesisUnitTests/AWSFirehoseNSSecureCodingTests.m index 1ecf3f6f823..af92a05674f 100644 --- a/AWSKinesisUnitTests/AWSFirehoseNSSecureCodingTests.m +++ b/AWSKinesisUnitTests/AWSFirehoseNSSecureCodingTests.m @@ -101,6 +101,7 @@ - (void) test_AWSFirehoseS3DestinationUpdate API_AVAILABLE(ios(11)); - (void) test_AWSFirehoseSchemaConfiguration API_AVAILABLE(ios(11)); - (void) test_AWSFirehoseSerializer API_AVAILABLE(ios(11)); - (void) test_AWSFirehoseSourceDescription API_AVAILABLE(ios(11)); +- (void) test_AWSFirehoseSplunkBufferingHints API_AVAILABLE(ios(11)); - (void) test_AWSFirehoseSplunkDestinationConfiguration API_AVAILABLE(ios(11)); - (void) test_AWSFirehoseSplunkDestinationDescription API_AVAILABLE(ios(11)); - (void) test_AWSFirehoseSplunkDestinationUpdate API_AVAILABLE(ios(11)); @@ -451,6 +452,10 @@ - (void) test_AWSFirehoseSourceDescription { [self validateSecureCodingForClass:[AWSFirehoseSourceDescription class]]; } +- (void) test_AWSFirehoseSplunkBufferingHints { + [self validateSecureCodingForClass:[AWSFirehoseSplunkBufferingHints class]]; +} + - (void) test_AWSFirehoseSplunkDestinationConfiguration { [self validateSecureCodingForClass:[AWSFirehoseSplunkDestinationConfiguration class]]; } From 6c0549339edcd937e6d3b40c705e5daa30c1296d Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 28 Dec 2023 09:03:07 -0800 Subject: [PATCH 05/13] feat(AWSPinpoint): update models to latest (#5114) --- .../AWSPinpointTargeting/AWSPinpointTargetingModel.h | 8 ++++---- .../AWSPinpointTargeting/AWSPinpointTargetingResources.m | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingModel.h b/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingModel.h index 5d7f2e9f853..5d08b0fad84 100644 --- a/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingModel.h +++ b/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingModel.h @@ -2307,7 +2307,7 @@ typedef NS_ENUM(NSInteger, AWSPinpointTargetingDayOfWeek) { @property (nonatomic, strong) NSNumber * _Nullable maximumDuration; /** -

The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

+

The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 1. The maximum value is 20,000.

*/ @property (nonatomic, strong) NSNumber * _Nullable messagesPerSecond; @@ -3583,7 +3583,7 @@ typedef NS_ENUM(NSInteger, AWSPinpointTargetingDayOfWeek) { @property (nonatomic, strong) NSString * _Nullable applicationId; /** -

The unique identifier for the endpoint.

+

The case insensitive unique identifier for the endpoint. The identifier can't contain $, { or }.

*/ @property (nonatomic, strong) NSString * _Nullable endpointId; @@ -5999,7 +5999,7 @@ typedef NS_ENUM(NSInteger, AWSPinpointTargetingDayOfWeek) { @property (nonatomic, strong) NSString * _Nullable applicationId; /** -

The unique identifier for the endpoint.

+

The case insensitive unique identifier for the endpoint. The identifier can't contain $, { or }.

*/ @property (nonatomic, strong) NSString * _Nullable endpointId; @@ -10939,7 +10939,7 @@ typedef NS_ENUM(NSInteger, AWSPinpointTargetingDayOfWeek) { @property (nonatomic, strong) NSString * _Nullable applicationId; /** -

The unique identifier for the endpoint.

+

The case insensitive unique identifier for the endpoint. The identifier can't contain $, { or }.

*/ @property (nonatomic, strong) NSString * _Nullable endpointId; diff --git a/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingResources.m b/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingResources.m index 916abb270c5..a7bfc47098f 100644 --- a/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingResources.m +++ b/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingResources.m @@ -6907,7 +6907,7 @@ - (NSString *)definitionString { },\ \"MessagesPerSecond\": {\ \"shape\": \"__integer\",\ - \"documentation\": \"

The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 50. The maximum value is 20,000.

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

The maximum number of messages that a campaign can send each second. For an application, this value specifies the default limit for the number of messages that campaigns can send each second. The minimum value is 1. The maximum value is 20,000.

\"\ },\ \"Total\": {\ \"shape\": \"__integer\",\ @@ -8122,7 +8122,7 @@ - (NSString *)definitionString { \"shape\": \"__string\",\ \"location\": \"uri\",\ \"locationName\": \"endpoint-id\",\ - \"documentation\": \"

The unique identifier for the endpoint.

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

The case insensitive unique identifier for the endpoint. The identifier can't contain $, { or }.

\"\ }\ },\ \"required\": [\ @@ -10409,7 +10409,7 @@ - (NSString *)definitionString { \"shape\": \"__string\",\ \"location\": \"uri\",\ \"locationName\": \"endpoint-id\",\ - \"documentation\": \"

The unique identifier for the endpoint.

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

The case insensitive unique identifier for the endpoint. The identifier can't contain $, { or }.

\"\ }\ },\ \"required\": [\ @@ -15166,7 +15166,7 @@ - (NSString *)definitionString { \"shape\": \"__string\",\ \"location\": \"uri\",\ \"locationName\": \"endpoint-id\",\ - \"documentation\": \"

The unique identifier for the endpoint.

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

The case insensitive unique identifier for the endpoint. The identifier can't contain $, { or }.

\"\ },\ \"EndpointRequest\": {\ \"shape\": \"EndpointRequest\"\ From c35c51aeedeaa54b6c7a0fbdf4f2644cd4414b77 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 28 Dec 2023 10:06:16 -0800 Subject: [PATCH 06/13] feat(AWSKMS): update models to latest (#5129) --- AWSKMS/AWSKMSModel.h | 10 +- AWSKMS/AWSKMSResources.m | 112 +++++++++++----------- AWSKMS/AWSKMSService.h | 200 +++++++++++++++++++-------------------- 3 files changed, 161 insertions(+), 161 deletions(-) diff --git a/AWSKMS/AWSKMSModel.h b/AWSKMS/AWSKMSModel.h index 4c7a508e046..16dc1f30bcd 100644 --- a/AWSKMS/AWSKMSModel.h +++ b/AWSKMS/AWSKMSModel.h @@ -629,7 +629,7 @@ typedef NS_ENUM(NSInteger, AWSKMSXksProxyConnectivityType) { /** -

Skips ("bypasses") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

+

Skips ("bypasses") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

*/ @property (nonatomic, strong) NSNumber * _Nullable bypassPolicyLockoutSafetyCheck; @@ -788,7 +788,7 @@ typedef NS_ENUM(NSInteger, AWSKMSXksProxyConnectivityType) { @property (nonatomic, strong) NSString * _Nullable keyId; /** -

A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256.

This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this parameter, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK.

When you use this parameter, instead of returning the plaintext data, KMS encrypts the plaintext data with the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient field in the response. This ciphertext can be decrypted only with the private key in the enclave. The Plaintext field in the response is null or empty.

For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

+

A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256.

This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this parameter, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK.

When you use this parameter, instead of returning the plaintext data, KMS encrypts the plaintext data with the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient field in the response. This ciphertext can be decrypted only with the private key in the enclave. The Plaintext field in the response is null or empty.

For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

*/ @property (nonatomic, strong) AWSKMSRecipientInfo * _Nullable recipient; @@ -1515,7 +1515,7 @@ typedef NS_ENUM(NSInteger, AWSKMSXksProxyConnectivityType) { @property (nonatomic, strong) NSString * _Nullable keyId; /** -

The algorithm you will use with the RSA public key (PublicKey) in the response to protect your key material during import. For more information, see Select a wrapping algorithm in the Key Management Service Developer Guide.

For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your key material directly with the RSA public key from KMS.

The wrapping algorithms that you can use depend on the type of key material that you are importing. To import an RSA private key, you must use an RSA_AES wrapping algorithm.

  • RSA_AES_KEY_WRAP_SHA_256 — Supported for wrapping RSA and ECC key material.

  • RSA_AES_KEY_WRAP_SHA_1 — Supported for wrapping RSA and ECC key material.

  • RSAES_OAEP_SHA_256 — Supported for all types of key material, except RSA key material (private key).

    You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material.

  • RSAES_OAEP_SHA_1 — Supported for all types of key material, except RSA key material (private key).

    You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material.

  • RSAES_PKCS1_V1_5 (Deprecated) — Supported only for symmetric encryption key material (and only in legacy mode).

+

The algorithm you will use with the RSA public key (PublicKey) in the response to protect your key material during import. For more information, see Select a wrapping algorithm in the Key Management Service Developer Guide.

For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your key material directly with the RSA public key from KMS.

The wrapping algorithms that you can use depend on the type of key material that you are importing. To import an RSA private key, you must use an RSA_AES wrapping algorithm.

  • RSA_AES_KEY_WRAP_SHA_256 — Supported for wrapping RSA and ECC key material.

  • RSA_AES_KEY_WRAP_SHA_1 — Supported for wrapping RSA and ECC key material.

  • RSAES_OAEP_SHA_256 — Supported for all types of key material, except RSA key material (private key).

    You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material.

  • RSAES_OAEP_SHA_1 — Supported for all types of key material, except RSA key material (private key).

    You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material.

  • RSAES_PKCS1_V1_5 (Deprecated) — As of October 10, 2023, KMS does not support the RSAES_PKCS1_V1_5 wrapping algorithm.

*/ @property (nonatomic, assign) AWSKMSAlgorithmSpec wrappingAlgorithm; @@ -2180,7 +2180,7 @@ typedef NS_ENUM(NSInteger, AWSKMSXksProxyConnectivityType) { /** -

Skips ("bypasses") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

+

Skips ("bypasses") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

*/ @property (nonatomic, strong) NSNumber * _Nullable bypassPolicyLockoutSafetyCheck; @@ -2312,7 +2312,7 @@ typedef NS_ENUM(NSInteger, AWSKMSXksProxyConnectivityType) { /** -

Skips ("bypasses") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

+

Skips ("bypasses") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

*/ @property (nonatomic, strong) NSNumber * _Nullable bypassPolicyLockoutSafetyCheck; diff --git a/AWSKMS/AWSKMSResources.m b/AWSKMS/AWSKMSResources.m index 121c6d7f301..43715d3cb60 100644 --- a/AWSKMS/AWSKMSResources.m +++ b/AWSKMS/AWSKMSResources.m @@ -86,7 +86,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is Disabled. To enable the KMS key, use EnableKey.

For more information about scheduling and canceling deletion of a KMS key, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:CancelKeyDeletion (key policy)

Related operations: ScheduleKeyDeletion

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

Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is Disabled. To enable the KMS key, use EnableKey.

For more information about scheduling and canceling deletion of a KMS key, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:CancelKeyDeletion (key policy)

Related operations: ScheduleKeyDeletion

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ConnectCustomKeyStore\":{\ \"name\":\"ConnectCustomKeyStore\",\ @@ -103,7 +103,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"CloudHsmClusterInvalidConfigurationException\"}\ ],\ - \"documentation\":\"

Connects or reconnects a custom key store to its backing key store. For an CloudHSM key store, ConnectCustomKeyStore connects the key store to its associated CloudHSM cluster. For an external key store, ConnectCustomKeyStore connects the key store to the external key store proxy that communicates with your external key manager.

The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it contains. You can disconnect and reconnect a custom key store at any time.

The connection process for a custom key store can take an extended amount of time to complete. This operation starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that the custom key store is connected. To get the connection state of the custom key store, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The ConnectCustomKeyStore operation might fail for various reasons. To find the reason, use the DescribeCustomKeyStores operation and see the ConnectionErrorCode in the response. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

To fix the failure, use the DisconnectCustomKeyStore operation to disconnect the custom key store, correct the error, use the UpdateCustomKeyStore operation if necessary, and then use ConnectCustomKeyStore again.

CloudHSM key store

During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM client as the kmsuser CU, and rotates its password.

To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the number of active HSMs in a cluster, use the DescribeClusters operation. To add HSMs to the cluster, use the CreateHsm operation. Also, the kmsuser crypto user (CU) must not be logged into the cluster. This prevents KMS from using this account to log in.

If you are having trouble connecting or disconnecting a CloudHSM key store, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

External key store

When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to communicate with your external key manager by sending a request via the external key store proxy.

When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the networking elements that it needs to communicate with your external key manager via the external key store proxy. This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic between KMS and the VPC endpoint service.

To connect an external key store, KMS must be able to connect to the external key store proxy, the external key store proxy must be able to communicate with your external key manager, and the external key manager must be available for cryptographic operations.

If you are having trouble connecting or disconnecting an external key store, see Troubleshooting an external key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:ConnectCustomKeyStore (IAM policy)

Related operations

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

Connects or reconnects a custom key store to its backing key store. For an CloudHSM key store, ConnectCustomKeyStore connects the key store to its associated CloudHSM cluster. For an external key store, ConnectCustomKeyStore connects the key store to the external key store proxy that communicates with your external key manager.

The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it contains. You can disconnect and reconnect a custom key store at any time.

The connection process for a custom key store can take an extended amount of time to complete. This operation starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that the custom key store is connected. To get the connection state of the custom key store, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The ConnectCustomKeyStore operation might fail for various reasons. To find the reason, use the DescribeCustomKeyStores operation and see the ConnectionErrorCode in the response. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

To fix the failure, use the DisconnectCustomKeyStore operation to disconnect the custom key store, correct the error, use the UpdateCustomKeyStore operation if necessary, and then use ConnectCustomKeyStore again.

CloudHSM key store

During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM client as the kmsuser CU, and rotates its password.

To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the number of active HSMs in a cluster, use the DescribeClusters operation. To add HSMs to the cluster, use the CreateHsm operation. Also, the kmsuser crypto user (CU) must not be logged into the cluster. This prevents KMS from using this account to log in.

If you are having trouble connecting or disconnecting a CloudHSM key store, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

External key store

When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to communicate with your external key manager by sending a request via the external key store proxy.

When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the networking elements that it needs to communicate with your external key manager via the external key store proxy. This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic between KMS and the VPC endpoint service.

To connect an external key store, KMS must be able to connect to the external key store proxy, the external key store proxy must be able to communicate with your external key manager, and the external key manager must be available for cryptographic operations.

If you are having trouble connecting or disconnecting an external key store, see Troubleshooting an external key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:ConnectCustomKeyStore (IAM policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"CreateAlias\":{\ \"name\":\"CreateAlias\",\ @@ -121,7 +121,7 @@ - (NSString *)definitionString { {\"shape\":\"LimitExceededException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Creates a friendly name for a KMS key.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

You can use an alias to identify a KMS key in the KMS console, in the DescribeKey operation and in cryptographic operations, such as Encrypt and GenerateDataKey. You can also change the KMS key that's associated with the alias (UpdateAlias) or delete the alias (DeleteAlias) at any time. These operations don't affect the underlying KMS key.

You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required. You can't create an alias without a KMS key.

The alias must be unique in the account and Region, but you can have aliases with the same name in different Regions. For detailed information about aliases, see Using aliases in the Key Management Service Developer Guide.

This operation does not return a response. To get the alias that you created, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

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

Creates a friendly name for a KMS key.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

You can use an alias to identify a KMS key in the KMS console, in the DescribeKey operation and in cryptographic operations, such as Encrypt and GenerateDataKey. You can also change the KMS key that's associated with the alias (UpdateAlias) or delete the alias (DeleteAlias) at any time. These operations don't affect the underlying KMS key.

You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required. You can't create an alias without a KMS key.

The alias must be unique in the account and Region, but you can have aliases with the same name in different Regions. For detailed information about aliases, see Using aliases in the Key Management Service Developer Guide.

This operation does not return a response. To get the alias that you created, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"CreateCustomKeyStore\":{\ \"name\":\"CreateCustomKeyStore\",\ @@ -150,7 +150,7 @@ - (NSString *)definitionString { {\"shape\":\"XksProxyInvalidResponseException\"},\ {\"shape\":\"XksProxyInvalidConfigurationException\"}\ ],\ - \"documentation\":\"

Creates a custom key store backed by a key store that you own and manage. When you use a KMS key in a custom key store for a cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key store proxy and external key manager outside of Amazon Web Services.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

Before you create the custom key store, the required elements must be in place and operational. We recommend that you use the test tools that KMS provides to verify the configuration your external key store proxy. For details about the required elements and verification tests, see Assemble the prerequisites (for CloudHSM key stores) or Assemble the prerequisites (for external key stores) in the Key Management Service Developer Guide.

To create a custom key store, use the following parameters.

  • To create an CloudHSM key store, specify the CustomKeyStoreName, CloudHsmClusterId, KeyStorePassword, and TrustAnchorCertificate. The CustomKeyStoreType parameter is optional for CloudHSM key stores. If you include it, set it to the default value, AWS_CLOUDHSM. For help with failures, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

  • To create an external key store, specify the CustomKeyStoreName and a CustomKeyStoreType of EXTERNAL_KEY_STORE. Also, specify values for XksProxyConnectivity, XksProxyAuthenticationCredential, XksProxyUriEndpoint, and XksProxyUriPath. If your XksProxyConnectivity value is VPC_ENDPOINT_SERVICE, specify the XksProxyVpcEndpointServiceName parameter. For help with failures, see Troubleshooting an external key store in the Key Management Service Developer Guide.

For external key stores:

Some external key managers provide a simpler method for creating an external key store. For details, see your external key manager documentation.

When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot use a proxy configuration with the CreateCustomKeyStore operation. However, you can use the values in the file to help you determine the correct values for the CreateCustomKeyStore parameters.

When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your new custom key store, you need to use the ConnectCustomKeyStore operation to connect a new CloudHSM key store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your external key manager. Even if you are not going to use your custom key store immediately, you might want to connect it to verify that all settings are correct and then disconnect it until you are ready to use it.

For help with failures, see Troubleshooting a custom key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:CreateCustomKeyStore (IAM policy).

Related operations:

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

Creates a custom key store backed by a key store that you own and manage. When you use a KMS key in a custom key store for a cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key store proxy and external key manager outside of Amazon Web Services.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

Before you create the custom key store, the required elements must be in place and operational. We recommend that you use the test tools that KMS provides to verify the configuration your external key store proxy. For details about the required elements and verification tests, see Assemble the prerequisites (for CloudHSM key stores) or Assemble the prerequisites (for external key stores) in the Key Management Service Developer Guide.

To create a custom key store, use the following parameters.

  • To create an CloudHSM key store, specify the CustomKeyStoreName, CloudHsmClusterId, KeyStorePassword, and TrustAnchorCertificate. The CustomKeyStoreType parameter is optional for CloudHSM key stores. If you include it, set it to the default value, AWS_CLOUDHSM. For help with failures, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

  • To create an external key store, specify the CustomKeyStoreName and a CustomKeyStoreType of EXTERNAL_KEY_STORE. Also, specify values for XksProxyConnectivity, XksProxyAuthenticationCredential, XksProxyUriEndpoint, and XksProxyUriPath. If your XksProxyConnectivity value is VPC_ENDPOINT_SERVICE, specify the XksProxyVpcEndpointServiceName parameter. For help with failures, see Troubleshooting an external key store in the Key Management Service Developer Guide.

For external key stores:

Some external key managers provide a simpler method for creating an external key store. For details, see your external key manager documentation.

When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot use a proxy configuration with the CreateCustomKeyStore operation. However, you can use the values in the file to help you determine the correct values for the CreateCustomKeyStore parameters.

When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your new custom key store, you need to use the ConnectCustomKeyStore operation to connect a new CloudHSM key store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your external key manager. Even if you are not going to use your custom key store immediately, you might want to connect it to verify that all settings are correct and then disconnect it until you are ready to use it.

For help with failures, see Troubleshooting a custom key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:CreateCustomKeyStore (IAM policy).

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"CreateGrant\":{\ \"name\":\"CreateGrant\",\ @@ -171,7 +171,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Adds a grant to a KMS key.

A grant is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic operations. It also can allow them to view a KMS key (DescribeKey) and create and manage grants. When authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often used for temporary permissions because you can create one, use its permissions, and delete it without changing your key policies or IAM policies.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

The CreateGrant operation returns a GrantToken and a GrantId.

  • When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. Once the grant has achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the grant.

    However, to use the permissions in the grant immediately, use the GrantToken that CreateGrant returns. For details, see Using a grant token in the Key Management Service Developer Guide .

  • The CreateGrant operation also returns a GrantId. You can use the GrantId and a key identifier to identify the grant in the RetireGrant and RevokeGrant operations. To find the grant ID, use the ListGrants or ListRetirableGrants operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:CreateGrant (key policy)

Related operations:

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

Adds a grant to a KMS key.

A grant is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic operations. It also can allow them to view a KMS key (DescribeKey) and create and manage grants. When authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often used for temporary permissions because you can create one, use its permissions, and delete it without changing your key policies or IAM policies.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

The CreateGrant operation returns a GrantToken and a GrantId.

  • When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. Once the grant has achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the grant.

    However, to use the permissions in the grant immediately, use the GrantToken that CreateGrant returns. For details, see Using a grant token in the Key Management Service Developer Guide .

  • The CreateGrant operation also returns a GrantId. You can use the GrantId and a key identifier to identify the grant in the RetireGrant and RevokeGrant operations. To find the grant ID, use the ListGrants or ListRetirableGrants operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:CreateGrant (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"CreateKey\":{\ \"name\":\"CreateKey\",\ @@ -196,7 +196,7 @@ - (NSString *)definitionString { {\"shape\":\"XksKeyAlreadyInUseException\"},\ {\"shape\":\"XksKeyNotFoundException\"}\ ],\ - \"documentation\":\"

Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources.

A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide

Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties.

KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.

To create different types of KMS keys, use the following guidance:

Symmetric encryption KMS key

By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance.

To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material.

If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair.

Asymmetric KMS keys

To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.

Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. KMS keys with RSA or SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

HMAC KMS key

To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created.

HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes.

Multi-Region primary keys
Imported key material

To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation.

You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide .

You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store.

To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

Custom key store

A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys.

KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation.

To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store.

To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region.

To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account.

Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide.

Related operations:

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

Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources.

A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide

Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties.

KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.

To create different types of KMS keys, use the following guidance:

Symmetric encryption KMS key

By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance.

To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material.

If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair.

Asymmetric KMS keys

To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.

Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. KMS keys with RSA or SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

HMAC KMS key

To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created.

HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes.

Multi-Region primary keys
Imported key material

To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation.

You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide .

You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store.

To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

Custom key store

A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys.

KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation.

To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store.

To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region.

To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account.

Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"Decrypt\":{\ \"name\":\"Decrypt\",\ @@ -219,7 +219,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:

You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

The Decrypt operation also decrypts ciphertext that was encrypted outside of KMS by the public key in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

If the ciphertext was encrypted under a symmetric encryption KMS key, the KeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as a best practice. When you use the KeyId parameter to specify a KMS key, KMS only uses the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the Decrypt operation fails. This practice ensures that you use the KMS key that you intend.

Whenever possible, use key policies to give users permission to call the Decrypt operation on a particular KMS key, instead of using &IAM; policies. Otherwise, you might create an &IAM; policy that gives the user Decrypt permission on all KMS keys. This user could decrypt ciphertext that was encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must use an IAM policy for Decrypt permissions, limit the user to particular KMS keys or particular trusted accounts. For details, see Best practices for IAM policies in the Key Management Service Developer Guide.

Decrypt also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call Decrypt for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data encrypted with the public key from the attestation document (CiphertextForRecipient).For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. If you use the KeyId parameter to identify a KMS key in a different Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.

Required permissions: kms:Decrypt (key policy)

Related operations:

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

Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:

You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

The Decrypt operation also decrypts ciphertext that was encrypted outside of KMS by the public key in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

If the ciphertext was encrypted under a symmetric encryption KMS key, the KeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as a best practice. When you use the KeyId parameter to specify a KMS key, KMS only uses the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the Decrypt operation fails. This practice ensures that you use the KMS key that you intend.

Whenever possible, use key policies to give users permission to call the Decrypt operation on a particular KMS key, instead of using &IAM; policies. Otherwise, you might create an &IAM; policy that gives the user Decrypt permission on all KMS keys. This user could decrypt ciphertext that was encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must use an IAM policy for Decrypt permissions, limit the user to particular KMS keys or particular trusted accounts. For details, see Best practices for IAM policies in the Key Management Service Developer Guide.

Decrypt also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call Decrypt for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data encrypted with the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. If you use the KeyId parameter to identify a KMS key in a different Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.

Required permissions: kms:Decrypt (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"DeleteAlias\":{\ \"name\":\"DeleteAlias\",\ @@ -234,7 +234,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Deletes the specified alias.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys, use the ListAliases operation.

Each KMS key can have multiple aliases. To change the alias of a KMS key, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different KMS key, call UpdateAlias.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

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

Deletes the specified alias.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys, use the ListAliases operation.

Each KMS key can have multiple aliases. To change the alias of a KMS key, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different KMS key, call UpdateAlias.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"DeleteCustomKeyStore\":{\ \"name\":\"DeleteCustomKeyStore\",\ @@ -250,7 +250,7 @@ - (NSString *)definitionString { {\"shape\":\"CustomKeyStoreNotFoundException\"},\ {\"shape\":\"KMSInternalException\"}\ ],\ - \"documentation\":\"

Deletes a custom key store. This operation does not affect any backing elements of the custom key store. It does not delete the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster. For an external key store, it does not affect the external key store proxy, external key manager, or any external keys.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The custom key store that you delete cannot contain any KMS keys. Before deleting the key store, verify that you will never need to use any of the KMS keys in the key store for any cryptographic operations. Then, use ScheduleKeyDeletion to delete the KMS keys from the key store. After the required waiting period expires and all KMS keys are deleted from the custom key store, use DisconnectCustomKeyStore to disconnect the key store from KMS. Then, you can delete the custom key store.

For keys in an CloudHSM key store, the ScheduleKeyDeletion operation makes a best effort to delete the key material from the associated cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. KMS never creates, manages, or deletes cryptographic keys in the external key manager associated with an external key store. You must manage them using your external key manager tools.

Instead of deleting the custom key store, consider using the DisconnectCustomKeyStore operation to disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a disconnected custom key store at any time.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DeleteCustomKeyStore (IAM policy)

Related operations:

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

Deletes a custom key store. This operation does not affect any backing elements of the custom key store. It does not delete the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster. For an external key store, it does not affect the external key store proxy, external key manager, or any external keys.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The custom key store that you delete cannot contain any KMS keys. Before deleting the key store, verify that you will never need to use any of the KMS keys in the key store for any cryptographic operations. Then, use ScheduleKeyDeletion to delete the KMS keys from the key store. After the required waiting period expires and all KMS keys are deleted from the custom key store, use DisconnectCustomKeyStore to disconnect the key store from KMS. Then, you can delete the custom key store.

For keys in an CloudHSM key store, the ScheduleKeyDeletion operation makes a best effort to delete the key material from the associated cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. KMS never creates, manages, or deletes cryptographic keys in the external key manager associated with an external key store. You must manage them using your external key manager tools.

Instead of deleting the custom key store, consider using the DisconnectCustomKeyStore operation to disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a disconnected custom key store at any time.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DeleteCustomKeyStore (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"DeleteImportedKeyMaterial\":{\ \"name\":\"DeleteImportedKeyMaterial\",\ @@ -267,7 +267,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Deletes key material that was previously imported. This operation makes the specified KMS key temporarily unusable. To restore the usability of the KMS key, reimport the same key material. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide.

When the specified KMS key is in the PendingDeletion state, this operation does not change the KMS key's state. Otherwise, it changes the KMS key's state to PendingImport.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DeleteImportedKeyMaterial (key policy)

Related operations:

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

Deletes key material that was previously imported. This operation makes the specified KMS key temporarily unusable. To restore the usability of the KMS key, reimport the same key material. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide.

When the specified KMS key is in the PendingDeletion state, this operation does not change the KMS key's state. Otherwise, it changes the KMS key's state to PendingImport.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DeleteImportedKeyMaterial (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"DescribeCustomKeyStores\":{\ \"name\":\"DescribeCustomKeyStores\",\ @@ -282,7 +282,7 @@ - (NSString *)definitionString { {\"shape\":\"InvalidMarkerException\"},\ {\"shape\":\"KMSInternalException\"}\ ],\ - \"documentation\":\"

Gets information about custom key stores in the account and Region.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

By default, this operation returns information about all custom key stores in the account and Region. To get only information about a particular custom key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter (but not both).

To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use the ConnectionState element in the response. If an attempt to connect the custom key store failed, the ConnectionState value is FAILED and the ConnectionErrorCode element in the response indicates the cause of the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

Custom key stores have a DISCONNECTED connection state if the key store has never been connected or you used the DisconnectCustomKeyStore operation to disconnect it. Otherwise, the connection state is CONNECTED. If your custom key store connection state is CONNECTED but you are having trouble using it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an external key store, verify that the external key store proxy and its associated external key manager are reachable and enabled.

For help repairing your CloudHSM key store, see the Troubleshooting CloudHSM key stores. For help repairing your external key store, see the Troubleshooting external key stores. Both topics are in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DescribeCustomKeyStores (IAM policy)

Related operations:

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

Gets information about custom key stores in the account and Region.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

By default, this operation returns information about all custom key stores in the account and Region. To get only information about a particular custom key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter (but not both).

To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use the ConnectionState element in the response. If an attempt to connect the custom key store failed, the ConnectionState value is FAILED and the ConnectionErrorCode element in the response indicates the cause of the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

Custom key stores have a DISCONNECTED connection state if the key store has never been connected or you used the DisconnectCustomKeyStore operation to disconnect it. Otherwise, the connection state is CONNECTED. If your custom key store connection state is CONNECTED but you are having trouble using it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an external key store, verify that the external key store proxy and its associated external key manager are reachable and enabled.

For help repairing your CloudHSM key store, see the Troubleshooting CloudHSM key stores. For help repairing your external key store, see the Troubleshooting external key stores. Both topics are in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DescribeCustomKeyStores (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"DescribeKey\":{\ \"name\":\"DescribeKey\",\ @@ -298,7 +298,7 @@ - (NSString *)definitionString { {\"shape\":\"DependencyTimeoutException\"},\ {\"shape\":\"KMSInternalException\"}\ ],\ - \"documentation\":\"

Provides detailed information about a KMS key. You can run DescribeKey on a customer managed key or an Amazon Web Services managed key.

This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state, and the origin and expiration date (if any) of the key material. It includes fields, like KeySpec, that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or generating and verifying MACs) and the algorithms that the KMS key supports.

For multi-Region keys, DescribeKey displays the primary key and all related replica keys. For KMS keys in CloudHSM key stores, it includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in external key stores, it includes the custom key store ID and the ID of the external key.

DescribeKey does not return the following information:

  • Aliases associated with the KMS key. To get this information, use ListAliases.

  • Whether automatic key rotation is enabled on the KMS key. To get this information, use GetKeyRotationStatus. Also, some key states prevent a KMS key from being automatically rotated. For details, see How Automatic Key Rotation Works in the Key Management Service Developer Guide.

  • Tags on the KMS key. To get this information, use ListResourceTags.

  • Key policies and grants on the KMS key. To get this information, use GetKeyPolicy and ListGrants.

In general, DescribeKey is a non-mutating operation. It returns data about KMS keys, but doesn't change them. However, Amazon Web Services services use DescribeKey to create Amazon Web Services managed keys from a predefined Amazon Web Services alias with no key ID.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:DescribeKey (key policy)

Related operations:

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

Provides detailed information about a KMS key. You can run DescribeKey on a customer managed key or an Amazon Web Services managed key.

This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state, and the origin and expiration date (if any) of the key material. It includes fields, like KeySpec, that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or generating and verifying MACs) and the algorithms that the KMS key supports.

For multi-Region keys, DescribeKey displays the primary key and all related replica keys. For KMS keys in CloudHSM key stores, it includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in external key stores, it includes the custom key store ID and the ID of the external key.

DescribeKey does not return the following information:

  • Aliases associated with the KMS key. To get this information, use ListAliases.

  • Whether automatic key rotation is enabled on the KMS key. To get this information, use GetKeyRotationStatus. Also, some key states prevent a KMS key from being automatically rotated. For details, see How Automatic Key Rotation Works in the Key Management Service Developer Guide.

  • Tags on the KMS key. To get this information, use ListResourceTags.

  • Key policies and grants on the KMS key. To get this information, use GetKeyPolicy and ListGrants.

In general, DescribeKey is a non-mutating operation. It returns data about KMS keys, but doesn't change them. However, Amazon Web Services services use DescribeKey to create Amazon Web Services managed keys from a predefined Amazon Web Services alias with no key ID.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:DescribeKey (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"DisableKey\":{\ \"name\":\"DisableKey\",\ @@ -314,7 +314,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for cryptographic operations.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide .

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKey (key policy)

Related operations: EnableKey

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

Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for cryptographic operations.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide .

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKey (key policy)

Related operations: EnableKey

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"DisableKeyRotation\":{\ \"name\":\"DisableKeyRotation\",\ @@ -332,7 +332,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"UnsupportedOperationException\"}\ ],\ - \"documentation\":\"

Disables automatic rotation of the key material of the specified symmetric encryption KMS key.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You can enable (EnableKeyRotation) and disable automatic rotation of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material for every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKeyRotation (key policy)

Related operations:

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

Disables automatic rotation of the key material of the specified symmetric encryption KMS key.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You can enable (EnableKeyRotation) and disable automatic rotation of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material for every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKeyRotation (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"DisconnectCustomKeyStore\":{\ \"name\":\"DisconnectCustomKeyStore\",\ @@ -347,7 +347,7 @@ - (NSString *)definitionString { {\"shape\":\"CustomKeyStoreNotFoundException\"},\ {\"shape\":\"KMSInternalException\"}\ ],\ - \"documentation\":\"

Disconnects the custom key store from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster or disconnects an external key store from the external key store proxy that communicates with your external key manager.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot create or use its KMS keys. You can reconnect the custom key store at any time.

While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use existing KMS keys in cryptographic operations will fail. This action can prevent users from storing and accessing sensitive data.

When you disconnect a custom key store, its ConnectionState changes to Disconnected. To find the connection state of a custom key store, use the DescribeCustomKeyStores operation. To reconnect a custom key store, use the ConnectCustomKeyStore operation.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DisconnectCustomKeyStore (IAM policy)

Related operations:

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

Disconnects the custom key store from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster or disconnects an external key store from the external key store proxy that communicates with your external key manager.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot create or use its KMS keys. You can reconnect the custom key store at any time.

While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use existing KMS keys in cryptographic operations will fail. This action can prevent users from storing and accessing sensitive data.

When you disconnect a custom key store, its ConnectionState changes to Disconnected. To find the connection state of a custom key store, use the DescribeCustomKeyStores operation. To reconnect a custom key store, use the ConnectCustomKeyStore operation.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DisconnectCustomKeyStore (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"EnableKey\":{\ \"name\":\"EnableKey\",\ @@ -364,7 +364,7 @@ - (NSString *)definitionString { {\"shape\":\"LimitExceededException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Sets the key state of a KMS key to enabled. This allows you to use the KMS key for cryptographic operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKey (key policy)

Related operations: DisableKey

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

Sets the key state of a KMS key to enabled. This allows you to use the KMS key for cryptographic operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKey (key policy)

Related operations: DisableKey

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"EnableKeyRotation\":{\ \"name\":\"EnableKeyRotation\",\ @@ -382,7 +382,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"UnsupportedOperationException\"}\ ],\ - \"documentation\":\"

Enables automatic rotation of the key material of the specified symmetric encryption KMS key.

When you enable automatic rotation of acustomer managed KMS key, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the DisableKeyRotation operation.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You cannot enable or disable automatic rotation Amazon Web Services managed KMS keys. KMS always rotates the key material of Amazon Web Services managed keys every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years (approximately 1,095 days) to every year (approximately 365 days).

New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately every year thereafter.

Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation, and every year thereafter.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKeyRotation (key policy)

Related operations:

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

Enables automatic rotation of the key material of the specified symmetric encryption KMS key.

When you enable automatic rotation of a customer managed KMS key, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the DisableKeyRotation operation.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You cannot enable or disable automatic rotation Amazon Web Services managed KMS keys. KMS always rotates the key material of Amazon Web Services managed keys every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years (approximately 1,095 days) to every year (approximately 365 days).

New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately every year thereafter.

Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation, and every year thereafter.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKeyRotation (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"Encrypt\":{\ \"name\":\"Encrypt\",\ @@ -403,7 +403,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a KeyUsage of ENCRYPT_DECRYPT.

You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database password, or other sensitive information. You don't need to use the Encrypt operation to encrypt a data key. The GenerateDataKey and GenerateDataKeyPair operations return a plaintext data key and an encrypted copy of that data key.

If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your encryption operation. If you specify an EncryptionContext when encrypting data, you must specify the same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be compatible with the KMS key spec.

When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm that you choose.

  • Symmetric encryption KMS keys

    • SYMMETRIC_DEFAULT: 4096 bytes

  • RSA_2048

    • RSAES_OAEP_SHA_1: 214 bytes

    • RSAES_OAEP_SHA_256: 190 bytes

  • RSA_3072

    • RSAES_OAEP_SHA_1: 342 bytes

    • RSAES_OAEP_SHA_256: 318 bytes

  • RSA_4096

    • RSAES_OAEP_SHA_1: 470 bytes

    • RSAES_OAEP_SHA_256: 446 bytes

  • SM2PKE: 1024 bytes (China Regions only)

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Encrypt (key policy)

Related operations:

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

Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a KeyUsage of ENCRYPT_DECRYPT.

You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database password, or other sensitive information. You don't need to use the Encrypt operation to encrypt a data key. The GenerateDataKey and GenerateDataKeyPair operations return a plaintext data key and an encrypted copy of that data key.

If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your encryption operation. If you specify an EncryptionContext when encrypting data, you must specify the same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be compatible with the KMS key spec.

When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm that you choose.

  • Symmetric encryption KMS keys

    • SYMMETRIC_DEFAULT: 4096 bytes

  • RSA_2048

    • RSAES_OAEP_SHA_1: 214 bytes

    • RSAES_OAEP_SHA_256: 190 bytes

  • RSA_3072

    • RSAES_OAEP_SHA_1: 342 bytes

    • RSAES_OAEP_SHA_256: 318 bytes

  • RSA_4096

    • RSAES_OAEP_SHA_1: 470 bytes

    • RSAES_OAEP_SHA_256: 446 bytes

  • SM2PKE: 1024 bytes (China Regions only)

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Encrypt (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GenerateDataKey\":{\ \"name\":\"GenerateDataKey\",\ @@ -424,7 +424,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to encrypt your data outside of KMS and store the encrypted data key with the encrypted data.

To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate a 128-bit SM4 data key (China Regions only), specify a KeySpec value of AES_128 or a NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

To get only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. To generate an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operation. To get a cryptographically secure random byte string, use GenerateRandom.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

GenerateDataKey also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKey for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKey returns a copy of the data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of the data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

How to use your data key

We recommend that you use the following pattern to encrypt data locally in your application. You can write your own code or use a client-side encryption library, such as the Amazon Web Services Encryption SDK, the Amazon DynamoDB Encryption Client, or Amazon S3 client-side encryption to do these tasks for you.

To encrypt data outside of KMS:

  1. Use the GenerateDataKey operation to get a data key.

  2. Use the plaintext data key (in the Plaintext field of the response) to encrypt your data outside of KMS. Then erase the plaintext data key from memory.

  3. Store the encrypted data key (in the CiphertextBlob field of the response) with the encrypted data.

To decrypt data outside of KMS:

  1. Use the Decrypt operation to decrypt the encrypted data key. The operation returns a plaintext copy of the data key.

  2. Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKey (key policy)

Related operations:

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

Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to encrypt your data outside of KMS and store the encrypted data key with the encrypted data.

To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate a 128-bit SM4 data key (China Regions only), specify a KeySpec value of AES_128 or a NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

To get only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. To generate an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operation. To get a cryptographically secure random byte string, use GenerateRandom.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

GenerateDataKey also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKey for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKey returns a copy of the data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of the data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

How to use your data key

We recommend that you use the following pattern to encrypt data locally in your application. You can write your own code or use a client-side encryption library, such as the Amazon Web Services Encryption SDK, the Amazon DynamoDB Encryption Client, or Amazon S3 client-side encryption to do these tasks for you.

To encrypt data outside of KMS:

  1. Use the GenerateDataKey operation to get a data key.

  2. Use the plaintext data key (in the Plaintext field of the response) to encrypt your data outside of KMS. Then erase the plaintext data key from memory.

  3. Store the encrypted data key (in the CiphertextBlob field of the response) with the encrypted data.

To decrypt data outside of KMS:

  1. Use the Decrypt operation to decrypt the encrypted data key. The operation returns a plaintext copy of the data key.

  2. Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKey (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GenerateDataKeyPair\":{\ \"name\":\"GenerateDataKeyPair\",\ @@ -446,7 +446,7 @@ - (NSString *)definitionString { {\"shape\":\"UnsupportedOperationException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key, a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures outside of KMS. The bytes in the keys are random; they not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPair returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a private key, consider using the GenerateDataKeyPairWithoutPlaintext operation. GenerateDataKeyPairWithoutPlaintext returns a plaintext public key and an encrypted private key, but omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need to decrypt the data or sign a message, use the Decrypt operation to decrypt the encrypted private key in the data key pair.

GenerateDataKeyPair returns a unique data key pair for each request. The bytes in the keys are random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in RFC 5958.

GenerateDataKeyPair also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKeyPair for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKeyPair returns the public data key and a copy of the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the private data key (PrivateKeyPlaintext), the response includes a copy of the private data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPair (key policy)

Related operations:

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

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key, a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPair returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a private key, consider using the GenerateDataKeyPairWithoutPlaintext operation. GenerateDataKeyPairWithoutPlaintext returns a plaintext public key and an encrypted private key, but omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need to decrypt the data or sign a message, use the Decrypt operation to decrypt the encrypted private key in the data key pair.

GenerateDataKeyPair returns a unique data key pair for each request. The bytes in the keys are random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in RFC 5958.

GenerateDataKeyPair also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKeyPair for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKeyPair returns the public data key and a copy of the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the private data key (PrivateKeyPlaintext), the response includes a copy of the private data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPair (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GenerateDataKeyPairWithoutPlaintext\":{\ \"name\":\"GenerateDataKeyPairWithoutPlaintext\",\ @@ -468,7 +468,7 @@ - (NSString *)definitionString { {\"shape\":\"UnsupportedOperationException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike GenerateDataKeyPair, this operation does not return a plaintext private key. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPairWithoutPlaintext returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

GenerateDataKeyPairWithoutPlaintext returns a unique data key pair for each request. The bytes in the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPairWithoutPlaintext (key policy)

Related operations:

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

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike GenerateDataKeyPair, this operation does not return a plaintext private key. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPairWithoutPlaintext returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

GenerateDataKeyPairWithoutPlaintext returns a unique data key pair for each request. The bytes in the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPairWithoutPlaintext (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GenerateDataKeyWithoutPlaintext\":{\ \"name\":\"GenerateDataKeyWithoutPlaintext\",\ @@ -489,7 +489,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to the caller or to the KMS key.

GenerateDataKeyWithoutPlaintext is identical to the GenerateDataKey operation except that it does not return a plaintext copy of the data key.

This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need to encrypt the data, you call the Decrypt operation on the encrypted copy of the key.

It's also useful in distributed systems with different levels of trust. For example, you might store encrypted data in containers. One component of your system creates new containers and stores an encrypted data key with each container. Then, a different component puts the data into the containers. That component first decrypts the data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then destroys the plaintext data key. In this system, the component that creates the containers never sees the plaintext data key.

To request an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operations.

To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key. You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate an SM4 data key (China Regions only), specify a KeySpec value of AES_128 or NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

If the operation succeeds, you will find the encrypted copy of the data key in the CiphertextBlob field.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyWithoutPlaintext (key policy)

Related operations:

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

Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to the caller or to the KMS key.

GenerateDataKeyWithoutPlaintext is identical to the GenerateDataKey operation except that it does not return a plaintext copy of the data key.

This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need to encrypt the data, you call the Decrypt operation on the encrypted copy of the key.

It's also useful in distributed systems with different levels of trust. For example, you might store encrypted data in containers. One component of your system creates new containers and stores an encrypted data key with each container. Then, a different component puts the data into the containers. That component first decrypts the data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then destroys the plaintext data key. In this system, the component that creates the containers never sees the plaintext data key.

To request an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operations.

To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key. You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate an SM4 data key (China Regions only), specify a KeySpec value of AES_128 or NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

If the operation succeeds, you will find the encrypted copy of the data key in the CiphertextBlob field.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyWithoutPlaintext (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GenerateMac\":{\ \"name\":\"GenerateMac\",\ @@ -509,7 +509,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

You can use value that GenerateMac returns in the VerifyMac operation to demonstrate that the original message has not changed. Also, because a secret key is used to create the hash, you can verify that the party that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide .

Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the token or message to help you detect when its time to refresh the HMAC.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateMac (key policy)

Related operations: VerifyMac

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

Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

You can use value that GenerateMac returns in the VerifyMac operation to demonstrate that the original message has not changed. Also, because a secret key is used to create the hash, you can verify that the party that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide .

Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the token or message to help you detect when its time to refresh the HMAC.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateMac (key policy)

Related operations: VerifyMac

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GenerateRandom\":{\ \"name\":\"GenerateRandom\",\ @@ -526,7 +526,7 @@ - (NSString *)definitionString { {\"shape\":\"CustomKeyStoreNotFoundException\"},\ {\"shape\":\"CustomKeyStoreInvalidStateException\"}\ ],\ - \"documentation\":\"

Returns a random byte string that is cryptographically secure.

You must use the NumberOfBytes parameter to specify the length of the random byte string. There is no default value for string length.

By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster associated with an CloudHSM key store, use the CustomKeyStoreId parameter.

GenerateRandom also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateRandom for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes encrypted under the public key from the attestation document (CiphertextForRecipient).For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

For more information about entropy and random number generation, see Key Management Service Cryptographic Details.

Cross-account use: Not applicable. GenerateRandom does not use any account-specific resources, such as KMS keys.

Required permissions: kms:GenerateRandom (IAM policy)

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

Returns a random byte string that is cryptographically secure.

You must use the NumberOfBytes parameter to specify the length of the random byte string. There is no default value for string length.

By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster associated with an CloudHSM key store, use the CustomKeyStoreId parameter.

GenerateRandom also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateRandom for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes encrypted under the public key from the attestation document (CiphertextForRecipient).For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

For more information about entropy and random number generation, see Key Management Service Cryptographic Details.

Cross-account use: Not applicable. GenerateRandom does not use any account-specific resources, such as KMS keys.

Required permissions: kms:GenerateRandom (IAM policy)

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GetKeyPolicy\":{\ \"name\":\"GetKeyPolicy\",\ @@ -543,7 +543,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Gets a key policy attached to the specified KMS key.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetKeyPolicy (key policy)

Related operations: PutKeyPolicy

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

Gets a key policy attached to the specified KMS key.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetKeyPolicy (key policy)

Related operations: PutKeyPolicy

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GetKeyRotationStatus\":{\ \"name\":\"GetKeyRotationStatus\",\ @@ -561,7 +561,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"UnsupportedOperationException\"}\ ],\ - \"documentation\":\"

Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified KMS key.

When you enable automatic rotation for customer managed KMS keys, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key..

You can enable (EnableKeyRotation) and disable automatic rotation (DisableKeyRotation) of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS keys every year. The key rotation status for Amazon Web Services managed KMS keys is always true.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

  • Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS key resumes its prior rotation schedule.

  • Pending deletion: While a KMS key is pending deletion, its key rotation status is false and KMS does not rotate the key material. If you cancel the deletion, the original key rotation status returns to true.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:GetKeyRotationStatus (key policy)

Related operations:

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

Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified KMS key.

When you enable automatic rotation for customer managed KMS keys, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key..

You can enable (EnableKeyRotation) and disable automatic rotation (DisableKeyRotation) of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS keys every year. The key rotation status for Amazon Web Services managed KMS keys is always true.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

  • Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS key resumes its prior rotation schedule.

  • Pending deletion: While a KMS key is pending deletion, its key rotation status is false and KMS does not rotate the key material. If you cancel the deletion, the original key rotation status returns to true.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:GetKeyRotationStatus (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GetParametersForImport\":{\ \"name\":\"GetParametersForImport\",\ @@ -579,7 +579,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Returns the public key and an import token you need to import or reimport key material for a KMS key.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

Before calling GetParametersForImport, use the CreateKey operation with an Origin value of EXTERNAL to create a KMS key with no key material. You can import key material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store. You can also use GetParametersForImport to get a public key and import token to reimport the original key material into a KMS key whose key material expired or was deleted.

GetParametersForImport returns the items that you need to import your key material.

  • The public key (or \\\"wrapping key\\\") of an RSA key pair that KMS generates.

    You will use this public key to encrypt (\\\"wrap\\\") your key material while it's in transit to KMS.

  • A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.

The public key and its import token are permanently linked and must be used together. Each public key and import token set is valid for 24 hours. The expiration date and time appear in the ParametersValidTo field in the GetParametersForImport response. You cannot use an expired public key or import token in an ImportKeyMaterial request. If your key and token expire, send another GetParametersForImport request.

GetParametersForImport requires the following information:

  • The key ID of the KMS key for which you are importing the key material.

  • The key spec of the public key (\\\"wrapping key\\\") that you will use to encrypt your key material during import.

  • The wrapping algorithm that you will use with the public key to encrypt your key material.

You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the same key material.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetParametersForImport (key policy)

Related operations:

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

Returns the public key and an import token you need to import or reimport key material for a KMS key.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

Before calling GetParametersForImport, use the CreateKey operation with an Origin value of EXTERNAL to create a KMS key with no key material. You can import key material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store. You can also use GetParametersForImport to get a public key and import token to reimport the original key material into a KMS key whose key material expired or was deleted.

GetParametersForImport returns the items that you need to import your key material.

  • The public key (or \\\"wrapping key\\\") of an RSA key pair that KMS generates.

    You will use this public key to encrypt (\\\"wrap\\\") your key material while it's in transit to KMS.

  • A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.

The public key and its import token are permanently linked and must be used together. Each public key and import token set is valid for 24 hours. The expiration date and time appear in the ParametersValidTo field in the GetParametersForImport response. You cannot use an expired public key or import token in an ImportKeyMaterial request. If your key and token expire, send another GetParametersForImport request.

GetParametersForImport requires the following information:

  • The key ID of the KMS key for which you are importing the key material.

  • The key spec of the public key (\\\"wrapping key\\\") that you will use to encrypt your key material during import.

  • The wrapping algorithm that you will use with the public key to encrypt your key material.

You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the same key material.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetParametersForImport (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"GetPublicKey\":{\ \"name\":\"GetPublicKey\",\ @@ -601,7 +601,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS.

To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including:

  • KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521.

  • KeyUsage: Whether the key is used for encryption or signing.

  • EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key.

Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GetPublicKey (key policy)

Related operations: CreateKey

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

Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS.

To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including:

  • KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521.

  • KeyUsage: Whether the key is used for encryption or signing.

  • EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key.

Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GetPublicKey (key policy)

Related operations: CreateKey

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ImportKeyMaterial\":{\ \"name\":\"ImportKeyMaterial\",\ @@ -623,7 +623,7 @@ - (NSString *)definitionString { {\"shape\":\"ExpiredImportTokenException\"},\ {\"shape\":\"InvalidImportTokenException\"}\ ],\ - \"documentation\":\"

Imports or reimports key material into an existing KMS key that was created without key material. ImportKeyMaterial also sets the expiration model and expiration date of the imported key material.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

After you successfully import key material into a KMS key, you can reimport the same key material into that KMS key, but you cannot import different key material. You might reimport key material to replace key material that expired or key material that you deleted. You might also reimport key material to change the expiration model or expiration date of the key material. Before reimporting key material, if necessary, call DeleteImportedKeyMaterial to delete the current imported key material.

Each time you import key material into KMS, you can determine whether (ExpirationModel) and when (ValidTo) the key material expires. To change the expiration of your key material, you must import it again, either by calling ImportKeyMaterial or using the import features of the KMS console.

Before calling ImportKeyMaterial:

  • Create or identify a KMS key with no key material. The KMS key must have an Origin value of EXTERNAL, which indicates that the KMS key is designed for imported key material.

    To create an new KMS key for imported key material, call the CreateKey operation with an Origin value of EXTERNAL. You can create a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store.

  • Use the DescribeKey operation to verify that the KeyState of the KMS key is PendingImport, which indicates that the KMS key has no key material.

    If you are reimporting the same key material into an existing KMS key, you might need to call the DeleteImportedKeyMaterial to delete its existing key material.

  • Call the GetParametersForImport operation to get a public key and import token set for importing key material.

  • Use the public key in the GetParametersForImport response to encrypt your key material.

Then, in an ImportKeyMaterial request, you submit your encrypted key material and import token. When calling this operation, you must specify the following values:

  • The key ID or key ARN of the KMS key to associate with the imported key material. Its Origin must be EXTERNAL and its KeyState must be PendingImport. You cannot perform this operation on a KMS key in a custom key store, or on a KMS key in a different Amazon Web Services account. To get the Origin and KeyState of a KMS key, call DescribeKey.

  • The encrypted key material.

  • The import token that GetParametersForImport returned. You must use a public key and token from the same GetParametersForImport response.

  • Whether the key material expires (ExpirationModel) and, if so, when (ValidTo). For help with this choice, see Setting an expiration time in the Key Management Service Developer Guide.

    If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material. However, you can delete and reimport the key material at any time, including before the key material expires. Each time you reimport, you can eliminate or reset the expiration time.

When this operation is successful, the key state of the KMS key changes from PendingImport to Enabled, and you can use the KMS key in cryptographic operations.

If this operation fails, use the exception to help determine the problem. If the error is related to the key material, the import token, or wrapping key, use GetParametersForImport to get a new public key and import token for the KMS key and repeat the import procedure. For help, see How To Import Key Material in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ImportKeyMaterial (key policy)

Related operations:

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

Imports or reimports key material into an existing KMS key that was created without key material. ImportKeyMaterial also sets the expiration model and expiration date of the imported key material.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

After you successfully import key material into a KMS key, you can reimport the same key material into that KMS key, but you cannot import different key material. You might reimport key material to replace key material that expired or key material that you deleted. You might also reimport key material to change the expiration model or expiration date of the key material. Before reimporting key material, if necessary, call DeleteImportedKeyMaterial to delete the current imported key material.

Each time you import key material into KMS, you can determine whether (ExpirationModel) and when (ValidTo) the key material expires. To change the expiration of your key material, you must import it again, either by calling ImportKeyMaterial or using the import features of the KMS console.

Before calling ImportKeyMaterial:

  • Create or identify a KMS key with no key material. The KMS key must have an Origin value of EXTERNAL, which indicates that the KMS key is designed for imported key material.

    To create an new KMS key for imported key material, call the CreateKey operation with an Origin value of EXTERNAL. You can create a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store.

  • Use the DescribeKey operation to verify that the KeyState of the KMS key is PendingImport, which indicates that the KMS key has no key material.

    If you are reimporting the same key material into an existing KMS key, you might need to call the DeleteImportedKeyMaterial to delete its existing key material.

  • Call the GetParametersForImport operation to get a public key and import token set for importing key material.

  • Use the public key in the GetParametersForImport response to encrypt your key material.

Then, in an ImportKeyMaterial request, you submit your encrypted key material and import token. When calling this operation, you must specify the following values:

  • The key ID or key ARN of the KMS key to associate with the imported key material. Its Origin must be EXTERNAL and its KeyState must be PendingImport. You cannot perform this operation on a KMS key in a custom key store, or on a KMS key in a different Amazon Web Services account. To get the Origin and KeyState of a KMS key, call DescribeKey.

  • The encrypted key material.

  • The import token that GetParametersForImport returned. You must use a public key and token from the same GetParametersForImport response.

  • Whether the key material expires (ExpirationModel) and, if so, when (ValidTo). For help with this choice, see Setting an expiration time in the Key Management Service Developer Guide.

    If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material. However, you can delete and reimport the key material at any time, including before the key material expires. Each time you reimport, you can eliminate or reset the expiration time.

When this operation is successful, the key state of the KMS key changes from PendingImport to Enabled, and you can use the KMS key in cryptographic operations.

If this operation fails, use the exception to help determine the problem. If the error is related to the key material, the import token, or wrapping key, use GetParametersForImport to get a new public key and import token for the KMS key and repeat the import procedure. For help, see How To Import Key Material in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ImportKeyMaterial (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ListAliases\":{\ \"name\":\"ListAliases\",\ @@ -640,7 +640,7 @@ - (NSString *)definitionString { {\"shape\":\"InvalidArnException\"},\ {\"shape\":\"NotFoundException\"}\ ],\ - \"documentation\":\"

Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about aliases, see CreateAlias.

By default, the ListAliases operation returns all aliases in the account and region. To get only the aliases associated with a particular KMS key, use the KeyId parameter.

The ListAliases response can include aliases that you created and associated with your customer managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys in your account. You can recognize Amazon Web Services aliases because their names have the format aws/<service-name>, such as aws/dynamodb.

The response might also include aliases that have no TargetKeyId field. These are predefined aliases that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services creates in your account, including predefined aliases, do not count against your KMS aliases quota.

Cross-account use: No. ListAliases does not return aliases in other Amazon Web Services accounts.

Required permissions: kms:ListAliases (IAM policy)

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

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

Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about aliases, see CreateAlias.

By default, the ListAliases operation returns all aliases in the account and region. To get only the aliases associated with a particular KMS key, use the KeyId parameter.

The ListAliases response can include aliases that you created and associated with your customer managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys in your account. You can recognize Amazon Web Services aliases because their names have the format aws/<service-name>, such as aws/dynamodb.

The response might also include aliases that have no TargetKeyId field. These are predefined aliases that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services creates in your account, including predefined aliases, do not count against your KMS aliases quota.

Cross-account use: No. ListAliases does not return aliases in other Amazon Web Services accounts.

Required permissions: kms:ListAliases (IAM policy)

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ListGrants\":{\ \"name\":\"ListGrants\",\ @@ -659,7 +659,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Gets a list of all grants for the specified KMS key.

You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:ListGrants (key policy)

Related operations:

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

Gets a list of all grants for the specified KMS key.

You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:ListGrants (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ListKeyPolicies\":{\ \"name\":\"ListKeyPolicies\",\ @@ -676,7 +676,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeyPolicies (key policy)

Related operations:

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

Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeyPolicies (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ListKeys\":{\ \"name\":\"ListKeys\",\ @@ -691,7 +691,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"InvalidMarkerException\"}\ ],\ - \"documentation\":\"

Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeys (IAM policy)

Related operations:

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

Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeys (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ListResourceTags\":{\ \"name\":\"ListResourceTags\",\ @@ -707,7 +707,7 @@ - (NSString *)definitionString { {\"shape\":\"InvalidArnException\"},\ {\"shape\":\"InvalidMarkerException\"}\ ],\ - \"documentation\":\"

Returns all tags on the specified KMS key.

For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. For information about using tags in KMS, see Tagging keys.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListResourceTags (key policy)

Related operations:

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

Returns all tags on the specified KMS key.

For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. For information about using tags in KMS, see Tagging keys.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListResourceTags (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ListRetirableGrants\":{\ \"name\":\"ListRetirableGrants\",\ @@ -724,7 +724,7 @@ - (NSString *)definitionString { {\"shape\":\"NotFoundException\"},\ {\"shape\":\"KMSInternalException\"}\ ],\ - \"documentation\":\"

Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.

You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: You must specify a principal in your Amazon Web Services account. However, this operation can return grants in any Amazon Web Services account. You do not need kms:ListRetirableGrants permission (or any other additional permission) in any Amazon Web Services account other than your own.

Required permissions: kms:ListRetirableGrants (IAM policy) in your Amazon Web Services account.

Related operations:

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

Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.

You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: You must specify a principal in your Amazon Web Services account. This operation returns a list of grants where the retiring principal specified in the ListRetirableGrants request is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web Services accounts, but you do not need kms:ListRetirableGrants permission (or any other additional permission) in any Amazon Web Services account other than your own.

Required permissions: kms:ListRetirableGrants (IAM policy) in your Amazon Web Services account.

KMS authorizes ListRetirableGrants requests by evaluating the caller account's kms:ListRetirableGrants permissions. The authorized resource in ListRetirableGrants calls is the retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their access to any KMS keys or grants that might be returned by the ListRetirableGrants call.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"PutKeyPolicy\":{\ \"name\":\"PutKeyPolicy\",\ @@ -743,7 +743,7 @@ - (NSString *)definitionString { {\"shape\":\"LimitExceededException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Attaches a key policy to the specified KMS key.

For more information about key policies, see Key Policies in the Key Management Service Developer Guide. For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the Identity and Access Management User Guide . For examples of adding a key policy in multiple programming languages, see Setting a key policy in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:PutKeyPolicy (key policy)

Related operations: GetKeyPolicy

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

Attaches a key policy to the specified KMS key.

For more information about key policies, see Key Policies in the Key Management Service Developer Guide. For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the Identity and Access Management User Guide . For examples of adding a key policy in multiple programming languages, see Setting a key policy in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:PutKeyPolicy (key policy)

Related operations: GetKeyPolicy

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ReEncrypt\":{\ \"name\":\"ReEncrypt\",\ @@ -766,7 +766,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key under which data is encrypted, such as when you manually rotate a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt ciphertext under the same KMS key, such as to change the encryption context of a ciphertext.

The ReEncrypt operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS operation, such as Encrypt or GenerateDataKey. It can also decrypt ciphertext that was encrypted by using the public key of an asymmetric KMS key outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

When you use the ReEncrypt operation, you need to provide information for the decrypt operation and the subsequent encrypt operation.

  • If your ciphertext was encrypted under an asymmetric KMS key, you must use the SourceKeyId parameter to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was used. This information is required to decrypt the data.

  • If your ciphertext was encrypted under a symmetric encryption KMS key, the SourceKeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always recommended as a best practice. When you use the SourceKeyId parameter to specify a KMS key, KMS uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the ReEncrypt operation fails. This practice ensures that you use the KMS key that you intend.

  • To reencrypt the data, you must use the DestinationKeyId parameter to specify the KMS key that re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.

    When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

    You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, you must use its key ARN or alias ARN.

Required permissions:

To permit reencryption from or to a KMS key, include the \\\"kms:ReEncrypt*\\\" permission in your key policy. This permission is automatically included in the key policy when you use the console to create a KMS key. But you must include it manually when you create a KMS key programmatically or when you use the PutKeyPolicy operation to set a key policy.

Related operations:

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

Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key under which data is encrypted, such as when you manually rotate a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt ciphertext under the same KMS key, such as to change the encryption context of a ciphertext.

The ReEncrypt operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS operation, such as Encrypt or GenerateDataKey. It can also decrypt ciphertext that was encrypted by using the public key of an asymmetric KMS key outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

When you use the ReEncrypt operation, you need to provide information for the decrypt operation and the subsequent encrypt operation.

  • If your ciphertext was encrypted under an asymmetric KMS key, you must use the SourceKeyId parameter to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was used. This information is required to decrypt the data.

  • If your ciphertext was encrypted under a symmetric encryption KMS key, the SourceKeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always recommended as a best practice. When you use the SourceKeyId parameter to specify a KMS key, KMS uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the ReEncrypt operation fails. This practice ensures that you use the KMS key that you intend.

  • To reencrypt the data, you must use the DestinationKeyId parameter to specify the KMS key that re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.

    When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

    You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, you must use its key ARN or alias ARN.

Required permissions:

To permit reencryption from or to a KMS key, include the \\\"kms:ReEncrypt*\\\" permission in your key policy. This permission is automatically included in the key policy when you use the console to create a KMS key. But you must include it manually when you create a KMS key programmatically or when you use the PutKeyPolicy operation to set a key policy.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ReplicateKey\":{\ \"name\":\"ReplicateKey\",\ @@ -788,7 +788,7 @@ - (NSString *)definitionString { {\"shape\":\"TagException\"},\ {\"shape\":\"UnsupportedOperationException\"}\ ],\ - \"documentation\":\"

Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key, use the CreateKey operation.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

A replica key is a fully-functional KMS key that can be used independently of its primary and peer replica keys. A primary key and its replica keys share properties that make them interoperable. They have the same key ID and key material. They also have the same key spec, key usage, key material origin, and automatic key rotation status. KMS automatically synchronizes these shared properties among related multi-Region keys. All other properties of a replica key can differ, including its key policy, tags, aliases, and Key states of KMS keys. KMS pricing and quotas for KMS keys apply to each primary key and replica key.

When this operation completes, the new replica key has a transient key state of Creating. This key state changes to Enabled (or PendingImport) after a few seconds when the process of creating the new replica key is complete. While the key state is Creating, you can manage key, but you cannot yet use it in cryptographic operations. If you are creating and using the replica key programmatically, retry on KMSInvalidStateException or call DescribeKey to check its KeyState value before using it. For details about the Creating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica of the key you're trying to replicate, ReplicateKey returns an AlreadyExistsException error. If the key state of the existing replica is PendingDeletion, you can cancel the scheduled key deletion (CancelKeyDeletion) or wait for the key to be deleted. The new replica key you create will have the same shared properties as the original replica key.

The CloudTrail log of a ReplicateKey operation records a ReplicateKey operation in the primary key's Region and a CreateKey operation in the replica key's Region.

If you replicate a multi-Region primary key with imported key material, the replica key is created with no key material. You must import the same key material that you imported into the primary key. For details, see Importing key material into multi-Region keys in the Key Management Service Developer Guide.

To convert a replica key to a primary key, use the UpdatePrimaryRegion operation.

ReplicateKey uses different default values for the KeyPolicy and Tags parameters than those used in the KMS console. For details, see the parameter descriptions.

Cross-account use: No. You cannot use this operation to create a replica key in a different Amazon Web Services account.

Required permissions:

  • kms:ReplicateKey on the primary key (in the primary key's Region). Include this permission in the primary key's key policy.

  • kms:CreateKey in an IAM policy in the replica Region.

  • To use the Tags parameter, kms:TagResource in an IAM policy in the replica Region.

Related operations

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

Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key, use the CreateKey operation.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

A replica key is a fully-functional KMS key that can be used independently of its primary and peer replica keys. A primary key and its replica keys share properties that make them interoperable. They have the same key ID and key material. They also have the same key spec, key usage, key material origin, and automatic key rotation status. KMS automatically synchronizes these shared properties among related multi-Region keys. All other properties of a replica key can differ, including its key policy, tags, aliases, and Key states of KMS keys. KMS pricing and quotas for KMS keys apply to each primary key and replica key.

When this operation completes, the new replica key has a transient key state of Creating. This key state changes to Enabled (or PendingImport) after a few seconds when the process of creating the new replica key is complete. While the key state is Creating, you can manage key, but you cannot yet use it in cryptographic operations. If you are creating and using the replica key programmatically, retry on KMSInvalidStateException or call DescribeKey to check its KeyState value before using it. For details about the Creating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica of the key you're trying to replicate, ReplicateKey returns an AlreadyExistsException error. If the key state of the existing replica is PendingDeletion, you can cancel the scheduled key deletion (CancelKeyDeletion) or wait for the key to be deleted. The new replica key you create will have the same shared properties as the original replica key.

The CloudTrail log of a ReplicateKey operation records a ReplicateKey operation in the primary key's Region and a CreateKey operation in the replica key's Region.

If you replicate a multi-Region primary key with imported key material, the replica key is created with no key material. You must import the same key material that you imported into the primary key. For details, see Importing key material into multi-Region keys in the Key Management Service Developer Guide.

To convert a replica key to a primary key, use the UpdatePrimaryRegion operation.

ReplicateKey uses different default values for the KeyPolicy and Tags parameters than those used in the KMS console. For details, see the parameter descriptions.

Cross-account use: No. You cannot use this operation to create a replica key in a different Amazon Web Services account.

Required permissions:

  • kms:ReplicateKey on the primary key (in the primary key's Region). Include this permission in the primary key's key policy.

  • kms:CreateKey in an IAM policy in the replica Region.

  • To use the Tags parameter, kms:TagResource in an IAM policy in the replica Region.

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"RetireGrant\":{\ \"name\":\"RetireGrant\",\ @@ -807,7 +807,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to retire, use a grant token, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The CreateGrant operation returns both values.

This operation can be called by the retiring principal for a grant, by the grantee principal if the grant allows the RetireGrant operation, and by the Amazon Web Services account in which the grant is created. It can also be called by principals to whom permission for retiring a grant is delegated. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.

Required permissions::Permission to retire a grant is determined primarily by the grant. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

Related operations:

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

Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to retire, use a grant token, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The CreateGrant operation returns both values.

This operation can be called by the retiring principal for a grant, by the grantee principal if the grant allows the RetireGrant operation, and by the Amazon Web Services account in which the grant is created. It can also be called by principals to whom permission for retiring a grant is delegated. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.

Required permissions: Permission to retire a grant is determined primarily by the grant. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"RevokeGrant\":{\ \"name\":\"RevokeGrant\",\ @@ -825,7 +825,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more information, see Retiring and revoking grants in the Key Management Service Developer Guide .

When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. For details, see Eventual consistency in the Key Management Service Developer Guide .

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:RevokeGrant (key policy).

Related operations:

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

Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more information, see Retiring and revoking grants in the Key Management Service Developer Guide .

When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. For details, see Eventual consistency in the Key Management Service Developer Guide .

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide . For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:RevokeGrant (key policy).

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"ScheduleKeyDeletion\":{\ \"name\":\"ScheduleKeyDeletion\",\ @@ -842,7 +842,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to PendingDeletion and the key can't be used in any cryptographic operations. It remains in this state for the duration of the waiting period. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and all KMS data associated with it, including all aliases that refer to it.

Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is a multi-Region replica key, or an asymmetric or HMAC KMS key with imported key material.) To prevent the use of a KMS key without deleting it, use DisableKey.

You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key with replicas, its key state changes to PendingReplicaDeletion and it cannot be replicated or used in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted (not just scheduled), the key state of the primary key changes to PendingDeletion and its waiting period (PendingWindowInDays) begins. For details, see Deleting multi-Region keys in the Key Management Service Developer Guide.

When KMS deletes a KMS key from an CloudHSM key store, it makes a best effort to delete the associated key material from the associated CloudHSM cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. Deleting a KMS key from an external key store has no effect on the associated external key. However, for both types of custom key stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external key store by creating a new KMS key with the same key material.

For more information about scheduling a KMS key for deletion, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ScheduleKeyDeletion (key policy)

Related operations

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

Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to PendingDeletion and the key can't be used in any cryptographic operations. It remains in this state for the duration of the waiting period. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and all KMS data associated with it, including all aliases that refer to it.

Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is a multi-Region replica key, or an asymmetric or HMAC KMS key with imported key material.) To prevent the use of a KMS key without deleting it, use DisableKey.

You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key with replicas, its key state changes to PendingReplicaDeletion and it cannot be replicated or used in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted (not just scheduled), the key state of the primary key changes to PendingDeletion and its waiting period (PendingWindowInDays) begins. For details, see Deleting multi-Region keys in the Key Management Service Developer Guide.

When KMS deletes a KMS key from an CloudHSM key store, it makes a best effort to delete the associated key material from the associated CloudHSM cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. Deleting a KMS key from an external key store has no effect on the associated external key. However, for both types of custom key stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external key store by creating a new KMS key with the same key material.

For more information about scheduling a KMS key for deletion, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ScheduleKeyDeletion (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"Sign\":{\ \"name\":\"Sign\",\ @@ -863,7 +863,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Creates a digital signature for a message or message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the Verify operation, or use the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a message. Anyone with the public key can verify that the message was signed with that particular private key and that the message hasn't changed since it was signed.

To use the Sign operation, provide the following information:

  • Use the KeyId parameter to identify an asymmetric KMS key with a KeyUsage value of SIGN_VERIFY. To get the KeyUsage value of a KMS key, use the DescribeKey operation. The caller must have kms:Sign permission on the KMS key.

  • Use the Message parameter to specify the message or message digest to sign. You can submit messages of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash digest in the Message parameter. To indicate whether the message is a full message or a digest, use the MessageType parameter.

  • Choose a signing algorithm that is compatible with the KMS key.

When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to verify the signature.

Best practices recommend that you limit the time during which any signature is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect when its time to refresh the signature.

To verify the signature that this operation generates, use the Verify operation. Or use the GetPublicKey operation to download the public key and then use the public key to verify the signature outside of KMS.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Sign (key policy)

Related operations: Verify

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

Creates a digital signature for a message or message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the Verify operation, or use the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a message. Anyone with the public key can verify that the message was signed with that particular private key and that the message hasn't changed since it was signed.

To use the Sign operation, provide the following information:

  • Use the KeyId parameter to identify an asymmetric KMS key with a KeyUsage value of SIGN_VERIFY. To get the KeyUsage value of a KMS key, use the DescribeKey operation. The caller must have kms:Sign permission on the KMS key.

  • Use the Message parameter to specify the message or message digest to sign. You can submit messages of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash digest in the Message parameter. To indicate whether the message is a full message or a digest, use the MessageType parameter.

  • Choose a signing algorithm that is compatible with the KMS key.

When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to verify the signature.

Best practices recommend that you limit the time during which any signature is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect when its time to refresh the signature.

To verify the signature that this operation generates, use the Verify operation. Or use the GetPublicKey operation to download the public key and then use the public key to verify the signature outside of KMS.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Sign (key policy)

Related operations: Verify

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"TagResource\":{\ \"name\":\"TagResource\",\ @@ -880,7 +880,7 @@ - (NSString *)definitionString { {\"shape\":\"LimitExceededException\"},\ {\"shape\":\"TagException\"}\ ],\ - \"documentation\":\"

Adds or edits tags on a customer managed key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

You can use this operation to tag a customer managed key, but you cannot tag an Amazon Web Services managed key, an Amazon Web Services owned key, a custom key store, or an alias.

You can also add tags to a KMS key while creating it (CreateKey) or replicating it (ReplicateKey).

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:TagResource (key policy)

Related operations

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

Adds or edits tags on a customer managed key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

You can use this operation to tag a customer managed key, but you cannot tag an Amazon Web Services managed key, an Amazon Web Services owned key, a custom key store, or an alias.

You can also add tags to a KMS key while creating it (CreateKey) or replicating it (ReplicateKey).

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:TagResource (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"UntagResource\":{\ \"name\":\"UntagResource\",\ @@ -896,7 +896,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"TagException\"}\ ],\ - \"documentation\":\"

Deletes tags from a customer managed key. To delete a tag, specify the tag key and the KMS key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

When it succeeds, the UntagResource operation doesn't return any output. Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation worked, use the ListResourceTags operation.

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UntagResource (key policy)

Related operations

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

Deletes tags from a customer managed key. To delete a tag, specify the tag key and the KMS key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

When it succeeds, the UntagResource operation doesn't return any output. Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation worked, use the ListResourceTags operation.

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UntagResource (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"UpdateAlias\":{\ \"name\":\"UpdateAlias\",\ @@ -912,7 +912,7 @@ - (NSString *)definitionString { {\"shape\":\"LimitExceededException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web Services account and Region.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias to a different type of KMS key, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

You cannot use UpdateAlias to change an alias name. To change an alias name, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys in the account, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

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

Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web Services account and Region.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias to a different type of KMS key, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

You cannot use UpdateAlias to change an alias name. To change an alias name, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys in the account, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"UpdateCustomKeyStore\":{\ \"name\":\"UpdateCustomKeyStore\",\ @@ -941,7 +941,7 @@ - (NSString *)definitionString { {\"shape\":\"XksProxyInvalidResponseException\"},\ {\"shape\":\"XksProxyInvalidConfigurationException\"}\ ],\ - \"documentation\":\"

Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM key store or an external key store.

Use the required CustomKeyStoreId parameter to identify the custom key store. Use the remaining optional parameters to change its properties. This operation does not return any property values. To verify the updated property values, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

When updating the properties of an external key store, verify that the updated settings connect your key store, via the external key store proxy, to the same external key manager as the previous settings, or to a backup or snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail, you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.

For external key stores:

Some external key managers provide a simpler method for updating an external key store. For details, see your external key manager documentation.

When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot upload the proxy configuration file to the UpdateCustomKeyStore operation. However, you can use the file to help you determine the correct values for the UpdateCustomKeyStore parameters.

For an CloudHSM key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), to tell KMS about a change to the kmsuser crypto user password (KeyStorePassword), or to associate the custom key store with a different, but related, CloudHSM cluster (CloudHsmClusterId). To update any property of an CloudHSM key store, the ConnectionState of the CloudHSM key store must be DISCONNECTED.

For an external key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), or to tell KMS about a change to the external key store proxy authentication credentials (XksProxyAuthenticationCredential), connection method (XksProxyConnectivity), external proxy endpoint (XksProxyUriEndpoint) and path (XksProxyUriPath). For external key stores with an XksProxyConnectivity of VPC_ENDPOINT_SERVICE, you can also update the Amazon VPC endpoint service name (XksProxyVpcEndpointServiceName). To update most properties of an external key store, the ConnectionState of the external key store must be DISCONNECTED. However, you can update the CustomKeyStoreName, XksProxyAuthenticationCredential, and XksProxyUriPath of an external key store when it is in the CONNECTED or DISCONNECTED state.

If your update requires a DISCONNECTED state, before using UpdateCustomKeyStore, use the DisconnectCustomKeyStore operation to disconnect the custom key store. After the UpdateCustomKeyStore operation completes, use the ConnectCustomKeyStore to reconnect the custom key store. To find the ConnectionState of the custom key store, use the DescribeCustomKeyStores operation.

Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its backing key store. For example, before you change the XksProxyUriPath value, verify that the external key store proxy is reachable at the new path.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:UpdateCustomKeyStore (IAM policy)

Related operations:

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

Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM key store or an external key store.

Use the required CustomKeyStoreId parameter to identify the custom key store. Use the remaining optional parameters to change its properties. This operation does not return any property values. To verify the updated property values, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

When updating the properties of an external key store, verify that the updated settings connect your key store, via the external key store proxy, to the same external key manager as the previous settings, or to a backup or snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail, you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.

For external key stores:

Some external key managers provide a simpler method for updating an external key store. For details, see your external key manager documentation.

When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot upload the proxy configuration file to the UpdateCustomKeyStore operation. However, you can use the file to help you determine the correct values for the UpdateCustomKeyStore parameters.

For an CloudHSM key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), to tell KMS about a change to the kmsuser crypto user password (KeyStorePassword), or to associate the custom key store with a different, but related, CloudHSM cluster (CloudHsmClusterId). To update any property of an CloudHSM key store, the ConnectionState of the CloudHSM key store must be DISCONNECTED.

For an external key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), or to tell KMS about a change to the external key store proxy authentication credentials (XksProxyAuthenticationCredential), connection method (XksProxyConnectivity), external proxy endpoint (XksProxyUriEndpoint) and path (XksProxyUriPath). For external key stores with an XksProxyConnectivity of VPC_ENDPOINT_SERVICE, you can also update the Amazon VPC endpoint service name (XksProxyVpcEndpointServiceName). To update most properties of an external key store, the ConnectionState of the external key store must be DISCONNECTED. However, you can update the CustomKeyStoreName, XksProxyAuthenticationCredential, and XksProxyUriPath of an external key store when it is in the CONNECTED or DISCONNECTED state.

If your update requires a DISCONNECTED state, before using UpdateCustomKeyStore, use the DisconnectCustomKeyStore operation to disconnect the custom key store. After the UpdateCustomKeyStore operation completes, use the ConnectCustomKeyStore to reconnect the custom key store. To find the ConnectionState of the custom key store, use the DescribeCustomKeyStores operation.

Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its backing key store. For example, before you change the XksProxyUriPath value, verify that the external key store proxy is reachable at the new path.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:UpdateCustomKeyStore (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"UpdateKeyDescription\":{\ \"name\":\"UpdateKeyDescription\",\ @@ -957,7 +957,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInternalException\"},\ {\"shape\":\"KMSInvalidStateException\"}\ ],\ - \"documentation\":\"

Updates the description of a KMS key. To see the description of a KMS key, use DescribeKey.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UpdateKeyDescription (key policy)

Related operations

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

Updates the description of a KMS key. To see the description of a KMS key, use DescribeKey.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UpdateKeyDescription (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"UpdatePrimaryRegion\":{\ \"name\":\"UpdatePrimaryRegion\",\ @@ -974,7 +974,7 @@ - (NSString *)definitionString { {\"shape\":\"NotFoundException\"},\ {\"shape\":\"UnsupportedOperationException\"}\ ],\ - \"documentation\":\"

Changes the primary key of a multi-Region key.

This operation changes the replica key in the specified Region to a primary key and changes the former primary key to a replica key. For example, suppose you have a primary key in us-east-1 and a replica key in eu-west-2. If you run UpdatePrimaryRegion with a PrimaryRegion value of eu-west-2, the primary key is now the key in eu-west-2, and the key in us-east-1 becomes a replica key. For details, see Updating the primary Region in the Key Management Service Developer Guide.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

The primary key of a multi-Region key is the source for properties that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material origin, and automatic key rotation. It's the only key that can be replicated. You cannot delete the primary key until all replica keys are deleted.

The key ID and primary Region that you specify uniquely identify the replica key that will become the primary key. The primary Region must already have a replica key. This operation does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica key, use the ReplicateKey operation.

You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation should not delay, interrupt, or cause failures in cryptographic operations.

Even after this operation completes, the process of updating the primary Region might still be in progress for a few more seconds. Operations such as DescribeKey might display both the old and new primary keys as replicas. The old and new primary keys have a transient key state of Updating. The original key state is restored when the update is complete. While the key state is Updating, you can use the keys in cryptographic operations, but you cannot replicate the new primary key or perform certain management operations, such as enabling or disabling these keys. For details about the Updating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

This operation does not return any output. To verify that primary key is changed, use the DescribeKey operation.

Cross-account use: No. You cannot use this operation in a different Amazon Web Services account.

Required permissions:

  • kms:UpdatePrimaryRegion on the current primary key (in the primary key's Region). Include this permission primary key's key policy.

  • kms:UpdatePrimaryRegion on the current replica key (in the replica key's Region). Include this permission in the replica key's key policy.

Related operations

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

Changes the primary key of a multi-Region key.

This operation changes the replica key in the specified Region to a primary key and changes the former primary key to a replica key. For example, suppose you have a primary key in us-east-1 and a replica key in eu-west-2. If you run UpdatePrimaryRegion with a PrimaryRegion value of eu-west-2, the primary key is now the key in eu-west-2, and the key in us-east-1 becomes a replica key. For details, see Updating the primary Region in the Key Management Service Developer Guide.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

The primary key of a multi-Region key is the source for properties that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material origin, and automatic key rotation. It's the only key that can be replicated. You cannot delete the primary key until all replica keys are deleted.

The key ID and primary Region that you specify uniquely identify the replica key that will become the primary key. The primary Region must already have a replica key. This operation does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica key, use the ReplicateKey operation.

You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation should not delay, interrupt, or cause failures in cryptographic operations.

Even after this operation completes, the process of updating the primary Region might still be in progress for a few more seconds. Operations such as DescribeKey might display both the old and new primary keys as replicas. The old and new primary keys have a transient key state of Updating. The original key state is restored when the update is complete. While the key state is Updating, you can use the keys in cryptographic operations, but you cannot replicate the new primary key or perform certain management operations, such as enabling or disabling these keys. For details about the Updating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

This operation does not return any output. To verify that primary key is changed, use the DescribeKey operation.

Cross-account use: No. You cannot use this operation in a different Amazon Web Services account.

Required permissions:

  • kms:UpdatePrimaryRegion on the current primary key (in the primary key's Region). Include this permission primary key's key policy.

  • kms:UpdatePrimaryRegion on the current replica key (in the replica key's Region). Include this permission in the replica key's key policy.

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"Verify\":{\ \"name\":\"Verify\",\ @@ -996,7 +996,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidSignatureException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Verifies a digital signature that was generated by the Sign operation.

Verification confirms that an authorized user signed the message with the specified KMS key and signing algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the SignatureValid field in the response is True. If the signature verification fails, the Verify operation fails with an KMSInvalidSignatureException exception.

A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

To use the Verify operation, specify the same asymmetric KMS key, message, and signing algorithm that were used to produce the signature. The message type does not need to be the same as the one used for signing, but it must indicate whether the value of the Message parameter should be hashed as part of the verification process.

You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the GetPublicKey operation to download the public key in the asymmetric KMS key and then use the public key to verify the signature outside of KMS. The advantage of using the Verify operation is that it is performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key to verify signatures.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Verify (key policy)

Related operations: Sign

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

Verifies a digital signature that was generated by the Sign operation.

Verification confirms that an authorized user signed the message with the specified KMS key and signing algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the SignatureValid field in the response is True. If the signature verification fails, the Verify operation fails with an KMSInvalidSignatureException exception.

A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

To use the Verify operation, specify the same asymmetric KMS key, message, and signing algorithm that were used to produce the signature. The message type does not need to be the same as the one used for signing, but it must indicate whether the value of the Message parameter should be hashed as part of the verification process.

You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the GetPublicKey operation to download the public key in the asymmetric KMS key and then use the public key to verify the signature outside of KMS. The advantage of using the Verify operation is that it is performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key to verify signatures.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Verify (key policy)

Related operations: Sign

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ },\ \"VerifyMac\":{\ \"name\":\"VerifyMac\",\ @@ -1017,7 +1017,7 @@ - (NSString *)definitionString { {\"shape\":\"KMSInvalidStateException\"},\ {\"shape\":\"DryRunOperationException\"}\ ],\ - \"documentation\":\"

Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC algorithm. To verify the HMAC, VerifyMac computes an HMAC using the message, HMAC KMS key, and MAC algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.

HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:VerifyMac (key policy)

Related operations: GenerateMac

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

Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC algorithm. To verify the HMAC, VerifyMac computes an HMAC using the message, HMAC KMS key, and MAC algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.

HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:VerifyMac (key policy)

Related operations: GenerateMac

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

\"\ }\ },\ \"shapes\":{\ @@ -1367,7 +1367,7 @@ - (NSString *)definitionString { },\ \"BypassPolicyLockoutSafetyCheck\":{\ \"shape\":\"BooleanType\",\ - \"documentation\":\"

Skips (\\\"bypasses\\\") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

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

Skips (\\\"bypasses\\\") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

\"\ },\ \"Tags\":{\ \"shape\":\"TagList\",\ @@ -1554,7 +1554,7 @@ - (NSString *)definitionString { },\ \"Recipient\":{\ \"shape\":\"RecipientInfo\",\ - \"documentation\":\"

A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256.

This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this parameter, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK.

When you use this parameter, instead of returning the plaintext data, KMS encrypts the plaintext data with the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient field in the response. This ciphertext can be decrypted only with the private key in the enclave. The Plaintext field in the response is null or empty.

For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

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

A signed attestation document from an Amazon Web Services Nitro enclave and the encryption algorithm to use with the enclave's public key. The only valid encryption algorithm is RSAES_OAEP_SHA_256.

This parameter only supports attestation documents for Amazon Web Services Nitro Enclaves. To include this parameter, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK.

When you use this parameter, instead of returning the plaintext data, KMS encrypts the plaintext data with the public key in the attestation document, and returns the resulting ciphertext in the CiphertextForRecipient field in the response. This ciphertext can be decrypted only with the private key in the enclave. The Plaintext field in the response is null or empty.

For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

\"\ },\ \"DryRun\":{\ \"shape\":\"NullableBooleanType\",\ @@ -2196,7 +2196,7 @@ - (NSString *)definitionString { },\ \"WrappingAlgorithm\":{\ \"shape\":\"AlgorithmSpec\",\ - \"documentation\":\"

The algorithm you will use with the RSA public key (PublicKey) in the response to protect your key material during import. For more information, see Select a wrapping algorithm in the Key Management Service Developer Guide.

For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your key material directly with the RSA public key from KMS.

The wrapping algorithms that you can use depend on the type of key material that you are importing. To import an RSA private key, you must use an RSA_AES wrapping algorithm.

  • RSA_AES_KEY_WRAP_SHA_256 — Supported for wrapping RSA and ECC key material.

  • RSA_AES_KEY_WRAP_SHA_1 — Supported for wrapping RSA and ECC key material.

  • RSAES_OAEP_SHA_256 — Supported for all types of key material, except RSA key material (private key).

    You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material.

  • RSAES_OAEP_SHA_1 — Supported for all types of key material, except RSA key material (private key).

    You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material.

  • RSAES_PKCS1_V1_5 (Deprecated) — Supported only for symmetric encryption key material (and only in legacy mode).

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

The algorithm you will use with the RSA public key (PublicKey) in the response to protect your key material during import. For more information, see Select a wrapping algorithm in the Key Management Service Developer Guide.

For RSA_AES wrapping algorithms, you encrypt your key material with an AES key that you generate, then encrypt your AES key with the RSA public key from KMS. For RSAES wrapping algorithms, you encrypt your key material directly with the RSA public key from KMS.

The wrapping algorithms that you can use depend on the type of key material that you are importing. To import an RSA private key, you must use an RSA_AES wrapping algorithm.

  • RSA_AES_KEY_WRAP_SHA_256 — Supported for wrapping RSA and ECC key material.

  • RSA_AES_KEY_WRAP_SHA_1 — Supported for wrapping RSA and ECC key material.

  • RSAES_OAEP_SHA_256 — Supported for all types of key material, except RSA key material (private key).

    You cannot use the RSAES_OAEP_SHA_256 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material.

  • RSAES_OAEP_SHA_1 — Supported for all types of key material, except RSA key material (private key).

    You cannot use the RSAES_OAEP_SHA_1 wrapping algorithm with the RSA_2048 wrapping key spec to wrap ECC_NIST_P521 key material.

  • RSAES_PKCS1_V1_5 (Deprecated) — As of October 10, 2023, KMS does not support the RSAES_PKCS1_V1_5 wrapping algorithm.

\"\ },\ \"WrappingKeySpec\":{\ \"shape\":\"WrappingKeySpec\",\ @@ -3098,7 +3098,7 @@ - (NSString *)definitionString { },\ \"BypassPolicyLockoutSafetyCheck\":{\ \"shape\":\"BooleanType\",\ - \"documentation\":\"

Skips (\\\"bypasses\\\") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

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

Skips (\\\"bypasses\\\") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

\"\ }\ }\ },\ @@ -3213,7 +3213,7 @@ - (NSString *)definitionString { },\ \"BypassPolicyLockoutSafetyCheck\":{\ \"shape\":\"BooleanType\",\ - \"documentation\":\"

Skips (\\\"bypasses\\\") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

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

Skips (\\\"bypasses\\\") the key policy lockout safety check. The default value is false.

Setting this value to true increases the risk that the KMS key becomes unmanageable. Do not set this value to true indiscriminately.

For more information, see Default key policy in the Key Management Service Developer Guide.

Use this parameter only when you intend to prevent the principal that is making the request from making a subsequent PutKeyPolicy request on the KMS key.

\"\ },\ \"Description\":{\ \"shape\":\"DescriptionType\",\ @@ -3872,7 +3872,7 @@ - (NSString *)definitionString { \"members\":{\ \"message\":{\"shape\":\"ErrorMessageType\"}\ },\ - \"documentation\":\"

The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the requirements for an external key store proxy. For details, see the exception message and review the requirements for Amazon VPC endpoint service connectivity for an external key store.

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

The request was rejected because the Amazon VPC endpoint service configuration does not fulfill the requirements for an external key store proxy. For details, see the exception message and review the requirements for Amazon VPC endpoint service connectivity for an external key store.

\",\ \"exception\":true\ },\ \"XksProxyVpcEndpointServiceNameType\":{\ diff --git a/AWSKMS/AWSKMSService.h b/AWSKMS/AWSKMSService.h index b13c6847a10..17f4ed054e3 100644 --- a/AWSKMS/AWSKMSService.h +++ b/AWSKMS/AWSKMSService.h @@ -175,7 +175,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; + (void)removeKMSForKey:(NSString *)key; /** -

Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is Disabled. To enable the KMS key, use EnableKey.

For more information about scheduling and canceling deletion of a KMS key, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:CancelKeyDeletion (key policy)

Related operations: ScheduleKeyDeletion

+

Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is Disabled. To enable the KMS key, use EnableKey.

For more information about scheduling and canceling deletion of a KMS key, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:CancelKeyDeletion (key policy)

Related operations: ScheduleKeyDeletion

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the CancelKeyDeletion service method. @@ -187,7 +187,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)cancelKeyDeletion:(AWSKMSCancelKeyDeletionRequest *)request; /** -

Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is Disabled. To enable the KMS key, use EnableKey.

For more information about scheduling and canceling deletion of a KMS key, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:CancelKeyDeletion (key policy)

Related operations: ScheduleKeyDeletion

+

Cancels the deletion of a KMS key. When this operation succeeds, the key state of the KMS key is Disabled. To enable the KMS key, use EnableKey.

For more information about scheduling and canceling deletion of a KMS key, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:CancelKeyDeletion (key policy)

Related operations: ScheduleKeyDeletion

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the CancelKeyDeletion service method. @param completionHandler The completion handler to call when the load request is complete. @@ -200,7 +200,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)cancelKeyDeletion:(AWSKMSCancelKeyDeletionRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSCancelKeyDeletionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Connects or reconnects a custom key store to its backing key store. For an CloudHSM key store, ConnectCustomKeyStore connects the key store to its associated CloudHSM cluster. For an external key store, ConnectCustomKeyStore connects the key store to the external key store proxy that communicates with your external key manager.

The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it contains. You can disconnect and reconnect a custom key store at any time.

The connection process for a custom key store can take an extended amount of time to complete. This operation starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that the custom key store is connected. To get the connection state of the custom key store, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The ConnectCustomKeyStore operation might fail for various reasons. To find the reason, use the DescribeCustomKeyStores operation and see the ConnectionErrorCode in the response. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

To fix the failure, use the DisconnectCustomKeyStore operation to disconnect the custom key store, correct the error, use the UpdateCustomKeyStore operation if necessary, and then use ConnectCustomKeyStore again.

CloudHSM key store

During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM client as the kmsuser CU, and rotates its password.

To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the number of active HSMs in a cluster, use the DescribeClusters operation. To add HSMs to the cluster, use the CreateHsm operation. Also, the kmsuser crypto user (CU) must not be logged into the cluster. This prevents KMS from using this account to log in.

If you are having trouble connecting or disconnecting a CloudHSM key store, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

External key store

When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to communicate with your external key manager by sending a request via the external key store proxy.

When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the networking elements that it needs to communicate with your external key manager via the external key store proxy. This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic between KMS and the VPC endpoint service.

To connect an external key store, KMS must be able to connect to the external key store proxy, the external key store proxy must be able to communicate with your external key manager, and the external key manager must be available for cryptographic operations.

If you are having trouble connecting or disconnecting an external key store, see Troubleshooting an external key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:ConnectCustomKeyStore (IAM policy)

Related operations

+

Connects or reconnects a custom key store to its backing key store. For an CloudHSM key store, ConnectCustomKeyStore connects the key store to its associated CloudHSM cluster. For an external key store, ConnectCustomKeyStore connects the key store to the external key store proxy that communicates with your external key manager.

The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it contains. You can disconnect and reconnect a custom key store at any time.

The connection process for a custom key store can take an extended amount of time to complete. This operation starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that the custom key store is connected. To get the connection state of the custom key store, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The ConnectCustomKeyStore operation might fail for various reasons. To find the reason, use the DescribeCustomKeyStores operation and see the ConnectionErrorCode in the response. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

To fix the failure, use the DisconnectCustomKeyStore operation to disconnect the custom key store, correct the error, use the UpdateCustomKeyStore operation if necessary, and then use ConnectCustomKeyStore again.

CloudHSM key store

During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM client as the kmsuser CU, and rotates its password.

To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the number of active HSMs in a cluster, use the DescribeClusters operation. To add HSMs to the cluster, use the CreateHsm operation. Also, the kmsuser crypto user (CU) must not be logged into the cluster. This prevents KMS from using this account to log in.

If you are having trouble connecting or disconnecting a CloudHSM key store, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

External key store

When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to communicate with your external key manager by sending a request via the external key store proxy.

When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the networking elements that it needs to communicate with your external key manager via the external key store proxy. This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic between KMS and the VPC endpoint service.

To connect an external key store, KMS must be able to connect to the external key store proxy, the external key store proxy must be able to communicate with your external key manager, and the external key manager must be available for cryptographic operations.

If you are having trouble connecting or disconnecting an external key store, see Troubleshooting an external key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:ConnectCustomKeyStore (IAM policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ConnectCustomKeyStore service method. @@ -212,7 +212,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)connectCustomKeyStore:(AWSKMSConnectCustomKeyStoreRequest *)request; /** -

Connects or reconnects a custom key store to its backing key store. For an CloudHSM key store, ConnectCustomKeyStore connects the key store to its associated CloudHSM cluster. For an external key store, ConnectCustomKeyStore connects the key store to the external key store proxy that communicates with your external key manager.

The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it contains. You can disconnect and reconnect a custom key store at any time.

The connection process for a custom key store can take an extended amount of time to complete. This operation starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that the custom key store is connected. To get the connection state of the custom key store, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The ConnectCustomKeyStore operation might fail for various reasons. To find the reason, use the DescribeCustomKeyStores operation and see the ConnectionErrorCode in the response. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

To fix the failure, use the DisconnectCustomKeyStore operation to disconnect the custom key store, correct the error, use the UpdateCustomKeyStore operation if necessary, and then use ConnectCustomKeyStore again.

CloudHSM key store

During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM client as the kmsuser CU, and rotates its password.

To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the number of active HSMs in a cluster, use the DescribeClusters operation. To add HSMs to the cluster, use the CreateHsm operation. Also, the kmsuser crypto user (CU) must not be logged into the cluster. This prevents KMS from using this account to log in.

If you are having trouble connecting or disconnecting a CloudHSM key store, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

External key store

When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to communicate with your external key manager by sending a request via the external key store proxy.

When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the networking elements that it needs to communicate with your external key manager via the external key store proxy. This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic between KMS and the VPC endpoint service.

To connect an external key store, KMS must be able to connect to the external key store proxy, the external key store proxy must be able to communicate with your external key manager, and the external key manager must be available for cryptographic operations.

If you are having trouble connecting or disconnecting an external key store, see Troubleshooting an external key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:ConnectCustomKeyStore (IAM policy)

Related operations

+

Connects or reconnects a custom key store to its backing key store. For an CloudHSM key store, ConnectCustomKeyStore connects the key store to its associated CloudHSM cluster. For an external key store, ConnectCustomKeyStore connects the key store to the external key store proxy that communicates with your external key manager.

The custom key store must be connected before you can create KMS keys in the key store or use the KMS keys it contains. You can disconnect and reconnect a custom key store at any time.

The connection process for a custom key store can take an extended amount of time to complete. This operation starts the connection process, but it does not wait for it to complete. When it succeeds, this operation quickly returns an HTTP 200 response and a JSON object with no properties. However, this response does not indicate that the custom key store is connected. To get the connection state of the custom key store, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The ConnectCustomKeyStore operation might fail for various reasons. To find the reason, use the DescribeCustomKeyStores operation and see the ConnectionErrorCode in the response. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

To fix the failure, use the DisconnectCustomKeyStore operation to disconnect the custom key store, correct the error, use the UpdateCustomKeyStore operation if necessary, and then use ConnectCustomKeyStore again.

CloudHSM key store

During the connection process for an CloudHSM key store, KMS finds the CloudHSM cluster that is associated with the custom key store, creates the connection infrastructure, connects to the cluster, logs into the CloudHSM client as the kmsuser CU, and rotates its password.

To connect an CloudHSM key store, its associated CloudHSM cluster must have at least one active HSM. To get the number of active HSMs in a cluster, use the DescribeClusters operation. To add HSMs to the cluster, use the CreateHsm operation. Also, the kmsuser crypto user (CU) must not be logged into the cluster. This prevents KMS from using this account to log in.

If you are having trouble connecting or disconnecting a CloudHSM key store, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

External key store

When you connect an external key store that uses public endpoint connectivity, KMS tests its ability to communicate with your external key manager by sending a request via the external key store proxy.

When you connect to an external key store that uses VPC endpoint service connectivity, KMS establishes the networking elements that it needs to communicate with your external key manager via the external key store proxy. This includes creating an interface endpoint to the VPC endpoint service and a private hosted zone for traffic between KMS and the VPC endpoint service.

To connect an external key store, KMS must be able to connect to the external key store proxy, the external key store proxy must be able to communicate with your external key manager, and the external key manager must be available for cryptographic operations.

If you are having trouble connecting or disconnecting an external key store, see Troubleshooting an external key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:ConnectCustomKeyStore (IAM policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ConnectCustomKeyStore service method. @param completionHandler The completion handler to call when the load request is complete. @@ -225,7 +225,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)connectCustomKeyStore:(AWSKMSConnectCustomKeyStoreRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSConnectCustomKeyStoreResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Creates a friendly name for a KMS key.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

You can use an alias to identify a KMS key in the KMS console, in the DescribeKey operation and in cryptographic operations, such as Encrypt and GenerateDataKey. You can also change the KMS key that's associated with the alias (UpdateAlias) or delete the alias (DeleteAlias) at any time. These operations don't affect the underlying KMS key.

You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required. You can't create an alias without a KMS key.

The alias must be unique in the account and Region, but you can have aliases with the same name in different Regions. For detailed information about aliases, see Using aliases in the Key Management Service Developer Guide.

This operation does not return a response. To get the alias that you created, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

+

Creates a friendly name for a KMS key.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

You can use an alias to identify a KMS key in the KMS console, in the DescribeKey operation and in cryptographic operations, such as Encrypt and GenerateDataKey. You can also change the KMS key that's associated with the alias (UpdateAlias) or delete the alias (DeleteAlias) at any time. These operations don't affect the underlying KMS key.

You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required. You can't create an alias without a KMS key.

The alias must be unique in the account and Region, but you can have aliases with the same name in different Regions. For detailed information about aliases, see Using aliases in the Key Management Service Developer Guide.

This operation does not return a response. To get the alias that you created, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the CreateAlias service method. @@ -236,7 +236,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)createAlias:(AWSKMSCreateAliasRequest *)request; /** -

Creates a friendly name for a KMS key.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

You can use an alias to identify a KMS key in the KMS console, in the DescribeKey operation and in cryptographic operations, such as Encrypt and GenerateDataKey. You can also change the KMS key that's associated with the alias (UpdateAlias) or delete the alias (DeleteAlias) at any time. These operations don't affect the underlying KMS key.

You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required. You can't create an alias without a KMS key.

The alias must be unique in the account and Region, but you can have aliases with the same name in different Regions. For detailed information about aliases, see Using aliases in the Key Management Service Developer Guide.

This operation does not return a response. To get the alias that you created, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

+

Creates a friendly name for a KMS key.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

You can use an alias to identify a KMS key in the KMS console, in the DescribeKey operation and in cryptographic operations, such as Encrypt and GenerateDataKey. You can also change the KMS key that's associated with the alias (UpdateAlias) or delete the alias (DeleteAlias) at any time. These operations don't affect the underlying KMS key.

You can associate the alias with any customer managed key in the same Amazon Web Services Region. Each alias is associated with only one KMS key at a time, but a KMS key can have multiple aliases. A valid KMS key is required. You can't create an alias without a KMS key.

The alias must be unique in the account and Region, but you can have aliases with the same name in different Regions. For detailed information about aliases, see Using aliases in the Key Management Service Developer Guide.

This operation does not return a response. To get the alias that you created, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Creates a custom key store backed by a key store that you own and manage. When you use a KMS key in a custom key store for a cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key store proxy and external key manager outside of Amazon Web Services.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

Before you create the custom key store, the required elements must be in place and operational. We recommend that you use the test tools that KMS provides to verify the configuration your external key store proxy. For details about the required elements and verification tests, see Assemble the prerequisites (for CloudHSM key stores) or Assemble the prerequisites (for external key stores) in the Key Management Service Developer Guide.

To create a custom key store, use the following parameters.

  • To create an CloudHSM key store, specify the CustomKeyStoreName, CloudHsmClusterId, KeyStorePassword, and TrustAnchorCertificate. The CustomKeyStoreType parameter is optional for CloudHSM key stores. If you include it, set it to the default value, AWS_CLOUDHSM. For help with failures, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

  • To create an external key store, specify the CustomKeyStoreName and a CustomKeyStoreType of EXTERNAL_KEY_STORE. Also, specify values for XksProxyConnectivity, XksProxyAuthenticationCredential, XksProxyUriEndpoint, and XksProxyUriPath. If your XksProxyConnectivity value is VPC_ENDPOINT_SERVICE, specify the XksProxyVpcEndpointServiceName parameter. For help with failures, see Troubleshooting an external key store in the Key Management Service Developer Guide.

For external key stores:

Some external key managers provide a simpler method for creating an external key store. For details, see your external key manager documentation.

When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot use a proxy configuration with the CreateCustomKeyStore operation. However, you can use the values in the file to help you determine the correct values for the CreateCustomKeyStore parameters.

When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your new custom key store, you need to use the ConnectCustomKeyStore operation to connect a new CloudHSM key store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your external key manager. Even if you are not going to use your custom key store immediately, you might want to connect it to verify that all settings are correct and then disconnect it until you are ready to use it.

For help with failures, see Troubleshooting a custom key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:CreateCustomKeyStore (IAM policy).

Related operations:

+

Creates a custom key store backed by a key store that you own and manage. When you use a KMS key in a custom key store for a cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key store proxy and external key manager outside of Amazon Web Services.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

Before you create the custom key store, the required elements must be in place and operational. We recommend that you use the test tools that KMS provides to verify the configuration your external key store proxy. For details about the required elements and verification tests, see Assemble the prerequisites (for CloudHSM key stores) or Assemble the prerequisites (for external key stores) in the Key Management Service Developer Guide.

To create a custom key store, use the following parameters.

  • To create an CloudHSM key store, specify the CustomKeyStoreName, CloudHsmClusterId, KeyStorePassword, and TrustAnchorCertificate. The CustomKeyStoreType parameter is optional for CloudHSM key stores. If you include it, set it to the default value, AWS_CLOUDHSM. For help with failures, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

  • To create an external key store, specify the CustomKeyStoreName and a CustomKeyStoreType of EXTERNAL_KEY_STORE. Also, specify values for XksProxyConnectivity, XksProxyAuthenticationCredential, XksProxyUriEndpoint, and XksProxyUriPath. If your XksProxyConnectivity value is VPC_ENDPOINT_SERVICE, specify the XksProxyVpcEndpointServiceName parameter. For help with failures, see Troubleshooting an external key store in the Key Management Service Developer Guide.

For external key stores:

Some external key managers provide a simpler method for creating an external key store. For details, see your external key manager documentation.

When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot use a proxy configuration with the CreateCustomKeyStore operation. However, you can use the values in the file to help you determine the correct values for the CreateCustomKeyStore parameters.

When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your new custom key store, you need to use the ConnectCustomKeyStore operation to connect a new CloudHSM key store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your external key manager. Even if you are not going to use your custom key store immediately, you might want to connect it to verify that all settings are correct and then disconnect it until you are ready to use it.

For help with failures, see Troubleshooting a custom key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:CreateCustomKeyStore (IAM policy).

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the CreateCustomKeyStore service method. @@ -259,7 +259,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)createCustomKeyStore:(AWSKMSCreateCustomKeyStoreRequest *)request; /** -

Creates a custom key store backed by a key store that you own and manage. When you use a KMS key in a custom key store for a cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key store proxy and external key manager outside of Amazon Web Services.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

Before you create the custom key store, the required elements must be in place and operational. We recommend that you use the test tools that KMS provides to verify the configuration your external key store proxy. For details about the required elements and verification tests, see Assemble the prerequisites (for CloudHSM key stores) or Assemble the prerequisites (for external key stores) in the Key Management Service Developer Guide.

To create a custom key store, use the following parameters.

  • To create an CloudHSM key store, specify the CustomKeyStoreName, CloudHsmClusterId, KeyStorePassword, and TrustAnchorCertificate. The CustomKeyStoreType parameter is optional for CloudHSM key stores. If you include it, set it to the default value, AWS_CLOUDHSM. For help with failures, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

  • To create an external key store, specify the CustomKeyStoreName and a CustomKeyStoreType of EXTERNAL_KEY_STORE. Also, specify values for XksProxyConnectivity, XksProxyAuthenticationCredential, XksProxyUriEndpoint, and XksProxyUriPath. If your XksProxyConnectivity value is VPC_ENDPOINT_SERVICE, specify the XksProxyVpcEndpointServiceName parameter. For help with failures, see Troubleshooting an external key store in the Key Management Service Developer Guide.

For external key stores:

Some external key managers provide a simpler method for creating an external key store. For details, see your external key manager documentation.

When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot use a proxy configuration with the CreateCustomKeyStore operation. However, you can use the values in the file to help you determine the correct values for the CreateCustomKeyStore parameters.

When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your new custom key store, you need to use the ConnectCustomKeyStore operation to connect a new CloudHSM key store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your external key manager. Even if you are not going to use your custom key store immediately, you might want to connect it to verify that all settings are correct and then disconnect it until you are ready to use it.

For help with failures, see Troubleshooting a custom key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:CreateCustomKeyStore (IAM policy).

Related operations:

+

Creates a custom key store backed by a key store that you own and manage. When you use a KMS key in a custom key store for a cryptographic operation, the cryptographic operation is actually performed in your key store using your keys. KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key store proxy and external key manager outside of Amazon Web Services.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

Before you create the custom key store, the required elements must be in place and operational. We recommend that you use the test tools that KMS provides to verify the configuration your external key store proxy. For details about the required elements and verification tests, see Assemble the prerequisites (for CloudHSM key stores) or Assemble the prerequisites (for external key stores) in the Key Management Service Developer Guide.

To create a custom key store, use the following parameters.

  • To create an CloudHSM key store, specify the CustomKeyStoreName, CloudHsmClusterId, KeyStorePassword, and TrustAnchorCertificate. The CustomKeyStoreType parameter is optional for CloudHSM key stores. If you include it, set it to the default value, AWS_CLOUDHSM. For help with failures, see Troubleshooting an CloudHSM key store in the Key Management Service Developer Guide.

  • To create an external key store, specify the CustomKeyStoreName and a CustomKeyStoreType of EXTERNAL_KEY_STORE. Also, specify values for XksProxyConnectivity, XksProxyAuthenticationCredential, XksProxyUriEndpoint, and XksProxyUriPath. If your XksProxyConnectivity value is VPC_ENDPOINT_SERVICE, specify the XksProxyVpcEndpointServiceName parameter. For help with failures, see Troubleshooting an external key store in the Key Management Service Developer Guide.

For external key stores:

Some external key managers provide a simpler method for creating an external key store. For details, see your external key manager documentation.

When creating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot use a proxy configuration with the CreateCustomKeyStore operation. However, you can use the values in the file to help you determine the correct values for the CreateCustomKeyStore parameters.

When the operation completes successfully, it returns the ID of the new custom key store. Before you can use your new custom key store, you need to use the ConnectCustomKeyStore operation to connect a new CloudHSM key store to its CloudHSM cluster, or to connect a new external key store to the external key store proxy for your external key manager. Even if you are not going to use your custom key store immediately, you might want to connect it to verify that all settings are correct and then disconnect it until you are ready to use it.

For help with failures, see Troubleshooting a custom key store in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:CreateCustomKeyStore (IAM policy).

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the CreateCustomKeyStore service method. @param completionHandler The completion handler to call when the load request is complete. @@ -272,7 +272,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)createCustomKeyStore:(AWSKMSCreateCustomKeyStoreRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSCreateCustomKeyStoreResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Adds a grant to a KMS key.

A grant is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic operations. It also can allow them to view a KMS key (DescribeKey) and create and manage grants. When authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often used for temporary permissions because you can create one, use its permissions, and delete it without changing your key policies or IAM policies.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

The CreateGrant operation returns a GrantToken and a GrantId.

  • When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. Once the grant has achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the grant.

    However, to use the permissions in the grant immediately, use the GrantToken that CreateGrant returns. For details, see Using a grant token in the Key Management Service Developer Guide.

  • The CreateGrant operation also returns a GrantId. You can use the GrantId and a key identifier to identify the grant in the RetireGrant and RevokeGrant operations. To find the grant ID, use the ListGrants or ListRetirableGrants operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:CreateGrant (key policy)

Related operations:

+

Adds a grant to a KMS key.

A grant is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic operations. It also can allow them to view a KMS key (DescribeKey) and create and manage grants. When authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often used for temporary permissions because you can create one, use its permissions, and delete it without changing your key policies or IAM policies.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

The CreateGrant operation returns a GrantToken and a GrantId.

  • When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. Once the grant has achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the grant.

    However, to use the permissions in the grant immediately, use the GrantToken that CreateGrant returns. For details, see Using a grant token in the Key Management Service Developer Guide.

  • The CreateGrant operation also returns a GrantId. You can use the GrantId and a key identifier to identify the grant in the RetireGrant and RevokeGrant operations. To find the grant ID, use the ListGrants or ListRetirableGrants operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:CreateGrant (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the CreateGrant service method. @@ -284,7 +284,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)createGrant:(AWSKMSCreateGrantRequest *)request; /** -

Adds a grant to a KMS key.

A grant is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic operations. It also can allow them to view a KMS key (DescribeKey) and create and manage grants. When authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often used for temporary permissions because you can create one, use its permissions, and delete it without changing your key policies or IAM policies.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

The CreateGrant operation returns a GrantToken and a GrantId.

  • When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. Once the grant has achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the grant.

    However, to use the permissions in the grant immediately, use the GrantToken that CreateGrant returns. For details, see Using a grant token in the Key Management Service Developer Guide.

  • The CreateGrant operation also returns a GrantId. You can use the GrantId and a key identifier to identify the grant in the RetireGrant and RevokeGrant operations. To find the grant ID, use the ListGrants or ListRetirableGrants operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:CreateGrant (key policy)

Related operations:

+

Adds a grant to a KMS key.

A grant is a policy instrument that allows Amazon Web Services principals to use KMS keys in cryptographic operations. It also can allow them to view a KMS key (DescribeKey) and create and manage grants. When authorizing access to a KMS key, grants are considered along with key policies and IAM policies. Grants are often used for temporary permissions because you can create one, use its permissions, and delete it without changing your key policies or IAM policies.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

The CreateGrant operation returns a GrantToken and a GrantId.

  • When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. Once the grant has achieved eventual consistency, the grantee principal can use the permissions in the grant without identifying the grant.

    However, to use the permissions in the grant immediately, use the GrantToken that CreateGrant returns. For details, see Using a grant token in the Key Management Service Developer Guide.

  • The CreateGrant operation also returns a GrantId. You can use the GrantId and a key identifier to identify the grant in the RetireGrant and RevokeGrant operations. To find the grant ID, use the ListGrants or ListRetirableGrants operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:CreateGrant (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the CreateGrant service method. @param completionHandler The completion handler to call when the load request is complete. @@ -297,7 +297,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)createGrant:(AWSKMSCreateGrantRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSCreateGrantResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources.

A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide

Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties.

KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.

To create different types of KMS keys, use the following guidance:

Symmetric encryption KMS key

By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance.

To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material.

If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair.

Asymmetric KMS keys

To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.

Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. KMS keys with RSA or SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

HMAC KMS key

To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created.

HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes.

Multi-Region primary keys
Imported key material

To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation.

You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide.

You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store.

To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

Custom key store

A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys.

KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation.

To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store.

To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region.

To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account.

Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide.

Related operations:

+

Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources.

A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide

Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties.

KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.

To create different types of KMS keys, use the following guidance:

Symmetric encryption KMS key

By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance.

To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material.

If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair.

Asymmetric KMS keys

To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.

Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. KMS keys with RSA or SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

HMAC KMS key

To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created.

HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes.

Multi-Region primary keys
Imported key material

To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation.

You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide.

You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store.

To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

Custom key store

A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys.

KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation.

To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store.

To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region.

To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account.

Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the CreateKey service method. @@ -309,7 +309,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)createKey:(AWSKMSCreateKeyRequest *)request; /** -

Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources.

A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide

Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties.

KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.

To create different types of KMS keys, use the following guidance:

Symmetric encryption KMS key

By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance.

To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material.

If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair.

Asymmetric KMS keys

To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.

Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. KMS keys with RSA or SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

HMAC KMS key

To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created.

HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes.

Multi-Region primary keys
Imported key material

To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation.

You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide.

You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store.

To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

Custom key store

A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys.

KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation.

To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store.

To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region.

To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account.

Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide.

Related operations:

+

Creates a unique customer managed KMS key in your Amazon Web Services account and Region. You can use a KMS key in cryptographic operations, such as encryption and signing. Some Amazon Web Services services let you use KMS keys that you create and manage to protect your service resources.

A KMS key is a logical representation of a cryptographic key. In addition to the key material used in cryptographic operations, a KMS key includes metadata, such as the key ID, key policy, creation date, description, and key state. For details, see Managing keys in the Key Management Service Developer Guide

Use the parameters of CreateKey to specify the type of KMS key, the source of its key material, its key policy, description, tags, and other properties.

KMS has replaced the term customer master key (CMK) with KMS key and KMS key. The concept has not changed. To prevent breaking changes, KMS is keeping some variations of this term.

To create different types of KMS keys, use the following guidance:

Symmetric encryption KMS key

By default, CreateKey creates a symmetric encryption KMS key with key material that KMS generates. This is the basic and most widely used type of KMS key, and provides the best performance.

To create a symmetric encryption KMS key, you don't need to specify any parameters. The default value for KeySpec, SYMMETRIC_DEFAULT, the default value for KeyUsage, ENCRYPT_DECRYPT, and the default value for Origin, AWS_KMS, create a symmetric encryption KMS key with KMS key material.

If you need a key for basic encryption and decryption or you are creating a KMS key to protect your resources in an Amazon Web Services service, create a symmetric encryption KMS key. The key material in a symmetric encryption key never leaves KMS unencrypted. You can use a symmetric encryption KMS key to encrypt and decrypt data up to 4,096 bytes, but they are typically used to generate data keys and data keys pairs. For details, see GenerateDataKey and GenerateDataKeyPair.

Asymmetric KMS keys

To create an asymmetric KMS key, use the KeySpec parameter to specify the type of key material in the KMS key. Then, use the KeyUsage parameter to determine whether the KMS key will be used to encrypt and decrypt or sign and verify. You can't change these properties after the KMS key is created.

Asymmetric KMS keys contain an RSA key pair, Elliptic Curve (ECC) key pair, or an SM2 key pair (China Regions only). The private key in an asymmetric KMS key never leaves KMS unencrypted. However, you can use the GetPublicKey operation to download the public key so it can be used outside of KMS. KMS keys with RSA or SM2 key pairs can be used to encrypt or decrypt data or sign and verify messages (but not both). KMS keys with ECC key pairs can be used only to sign and verify messages. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

HMAC KMS key

To create an HMAC KMS key, set the KeySpec parameter to a key spec value for HMAC KMS keys. Then set the KeyUsage parameter to GENERATE_VERIFY_MAC. You must set the key usage even though GENERATE_VERIFY_MAC is the only valid key usage value for HMAC KMS keys. You can't change these properties after the KMS key is created.

HMAC KMS keys are symmetric keys that never leave KMS unencrypted. You can use HMAC keys to generate (GenerateMac) and verify (VerifyMac) HMAC codes for messages up to 4096 bytes.

Multi-Region primary keys
Imported key material

To create a multi-Region primary key in the local Amazon Web Services Region, use the MultiRegion parameter with a value of True. To create a multi-Region replica key, that is, a KMS key with the same key ID and key material as a primary key, but in a different Amazon Web Services Region, use the ReplicateKey operation. To change a replica key to a primary key, and its primary key to a replica key, use the UpdatePrimaryRegion operation.

You can create multi-Region KMS keys for all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't create multi-Region keys in a custom key store.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

To import your own key material into a KMS key, begin by creating a KMS key with no key material. To do this, use the Origin parameter of CreateKey with a value of EXTERNAL. Next, use GetParametersForImport operation to get a public key and import token. Use the wrapping public key to encrypt your key material. Then, use ImportKeyMaterial with your import token to import the key material. For step-by-step instructions, see Importing Key Material in the Key Management Service Developer Guide.

You can import key material into KMS keys of all supported KMS key types: symmetric encryption KMS keys, HMAC KMS keys, asymmetric encryption KMS keys, and asymmetric signing KMS keys. You can also create multi-Region keys with imported key material. However, you can't import key material into a KMS key in a custom key store.

To create a multi-Region primary key with imported key material, use the Origin parameter of CreateKey with a value of EXTERNAL and the MultiRegion parameter with a value of True. To create replicas of the multi-Region primary key, use the ReplicateKey operation. For instructions, see Importing key material into multi-Region keys. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

Custom key store

A custom key store lets you protect your Amazon Web Services resources using keys in a backing key store that you own and manage. When you request a cryptographic operation with a KMS key in a custom key store, the operation is performed in the backing key store using its cryptographic keys.

KMS supports CloudHSM key stores backed by an CloudHSM cluster and external key stores backed by an external key manager outside of Amazon Web Services. When you create a KMS key in an CloudHSM key store, KMS generates an encryption key in the CloudHSM cluster and associates it with the KMS key. When you create a KMS key in an external key store, you specify an existing encryption key in the external key manager.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Before you create a KMS key in a custom key store, the ConnectionState of the key store must be CONNECTED. To connect the custom key store, use the ConnectCustomKeyStore operation. To find the ConnectionState, use the DescribeCustomKeyStores operation.

To create a KMS key in a custom key store, use the CustomKeyStoreId. Use the default KeySpec value, SYMMETRIC_DEFAULT, and the default KeyUsage value, ENCRYPT_DECRYPT to create a symmetric encryption key. No other key type is supported in a custom key store.

To create a KMS key in an CloudHSM key store, use the Origin parameter with a value of AWS_CLOUDHSM. The CloudHSM cluster that is associated with the custom key store must have at least two active HSMs in different Availability Zones in the Amazon Web Services Region.

To create a KMS key in an external key store, use the Origin parameter with a value of EXTERNAL_KEY_STORE and an XksKeyId parameter that identifies an existing external key.

Some external key managers provide a simpler method for creating a KMS key in an external key store. For details, see your external key manager documentation.

Cross-account use: No. You cannot use this operation to create a KMS key in a different Amazon Web Services account.

Required permissions: kms:CreateKey (IAM policy). To use the Tags parameter, kms:TagResource (IAM policy). For examples and information about related permissions, see Allow a user to create KMS keys in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the CreateKey service method. @param completionHandler The completion handler to call when the load request is complete. @@ -322,7 +322,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)createKey:(AWSKMSCreateKeyRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSCreateKeyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:

You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

The Decrypt operation also decrypts ciphertext that was encrypted outside of KMS by the public key in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

If the ciphertext was encrypted under a symmetric encryption KMS key, the KeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as a best practice. When you use the KeyId parameter to specify a KMS key, KMS only uses the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the Decrypt operation fails. This practice ensures that you use the KMS key that you intend.

Whenever possible, use key policies to give users permission to call the Decrypt operation on a particular KMS key, instead of using &IAM; policies. Otherwise, you might create an &IAM; policy that gives the user Decrypt permission on all KMS keys. This user could decrypt ciphertext that was encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must use an IAM policy for Decrypt permissions, limit the user to particular KMS keys or particular trusted accounts. For details, see Best practices for IAM policies in the Key Management Service Developer Guide.

Decrypt also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call Decrypt for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data encrypted with the public key from the attestation document (CiphertextForRecipient).For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. If you use the KeyId parameter to identify a KMS key in a different Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.

Required permissions: kms:Decrypt (key policy)

Related operations:

+

Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:

You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

The Decrypt operation also decrypts ciphertext that was encrypted outside of KMS by the public key in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

If the ciphertext was encrypted under a symmetric encryption KMS key, the KeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as a best practice. When you use the KeyId parameter to specify a KMS key, KMS only uses the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the Decrypt operation fails. This practice ensures that you use the KMS key that you intend.

Whenever possible, use key policies to give users permission to call the Decrypt operation on a particular KMS key, instead of using &IAM; policies. Otherwise, you might create an &IAM; policy that gives the user Decrypt permission on all KMS keys. This user could decrypt ciphertext that was encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must use an IAM policy for Decrypt permissions, limit the user to particular KMS keys or particular trusted accounts. For details, see Best practices for IAM policies in the Key Management Service Developer Guide.

Decrypt also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call Decrypt for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data encrypted with the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. If you use the KeyId parameter to identify a KMS key in a different Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.

Required permissions: kms:Decrypt (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the Decrypt service method. @@ -334,7 +334,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)decrypt:(AWSKMSDecryptRequest *)request; /** -

Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:

You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

The Decrypt operation also decrypts ciphertext that was encrypted outside of KMS by the public key in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

If the ciphertext was encrypted under a symmetric encryption KMS key, the KeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as a best practice. When you use the KeyId parameter to specify a KMS key, KMS only uses the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the Decrypt operation fails. This practice ensures that you use the KMS key that you intend.

Whenever possible, use key policies to give users permission to call the Decrypt operation on a particular KMS key, instead of using &IAM; policies. Otherwise, you might create an &IAM; policy that gives the user Decrypt permission on all KMS keys. This user could decrypt ciphertext that was encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must use an IAM policy for Decrypt permissions, limit the user to particular KMS keys or particular trusted accounts. For details, see Best practices for IAM policies in the Key Management Service Developer Guide.

Decrypt also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call Decrypt for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data encrypted with the public key from the attestation document (CiphertextForRecipient).For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. If you use the KeyId parameter to identify a KMS key in a different Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.

Required permissions: kms:Decrypt (key policy)

Related operations:

+

Decrypts ciphertext that was encrypted by a KMS key using any of the following operations:

You can use this operation to decrypt ciphertext that was encrypted under a symmetric encryption KMS key or an asymmetric encryption KMS key. When the KMS key is asymmetric, you must specify the KMS key and the encryption algorithm that was used to encrypt the ciphertext. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

The Decrypt operation also decrypts ciphertext that was encrypted outside of KMS by the public key in an KMS asymmetric KMS key. However, it cannot decrypt symmetric ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

If the ciphertext was encrypted under a symmetric encryption KMS key, the KeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the KMS key is always recommended as a best practice. When you use the KeyId parameter to specify a KMS key, KMS only uses the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the Decrypt operation fails. This practice ensures that you use the KMS key that you intend.

Whenever possible, use key policies to give users permission to call the Decrypt operation on a particular KMS key, instead of using &IAM; policies. Otherwise, you might create an &IAM; policy that gives the user Decrypt permission on all KMS keys. This user could decrypt ciphertext that was encrypted by KMS keys in other accounts if the key policy for the cross-account KMS key permits it. If you must use an IAM policy for Decrypt permissions, limit the user to particular KMS keys or particular trusted accounts. For details, see Best practices for IAM policies in the Key Management Service Developer Guide.

Decrypt also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call Decrypt for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of the plaintext data, the response includes the plaintext data encrypted with the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. If you use the KeyId parameter to identify a KMS key in a different Amazon Web Services account, specify the key ARN or the alias ARN of the KMS key.

Required permissions: kms:Decrypt (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the Decrypt service method. @param completionHandler The completion handler to call when the load request is complete. @@ -347,7 +347,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)decrypt:(AWSKMSDecryptRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSDecryptResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Deletes the specified alias.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys, use the ListAliases operation.

Each KMS key can have multiple aliases. To change the alias of a KMS key, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different KMS key, call UpdateAlias.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

+

Deletes the specified alias.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys, use the ListAliases operation.

Each KMS key can have multiple aliases. To change the alias of a KMS key, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different KMS key, call UpdateAlias.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DeleteAlias service method. @@ -358,7 +358,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)deleteAlias:(AWSKMSDeleteAliasRequest *)request; /** -

Deletes the specified alias.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys, use the ListAliases operation.

Each KMS key can have multiple aliases. To change the alias of a KMS key, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different KMS key, call UpdateAlias.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

+

Deletes the specified alias.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Because an alias is not a property of a KMS key, you can delete and change the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys, use the ListAliases operation.

Each KMS key can have multiple aliases. To change the alias of a KMS key, use DeleteAlias to delete the current alias and CreateAlias to create a new alias. To associate an existing alias with a different KMS key, call UpdateAlias.

Cross-account use: No. You cannot perform this operation on an alias in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Deletes a custom key store. This operation does not affect any backing elements of the custom key store. It does not delete the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster. For an external key store, it does not affect the external key store proxy, external key manager, or any external keys.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The custom key store that you delete cannot contain any KMS keys. Before deleting the key store, verify that you will never need to use any of the KMS keys in the key store for any cryptographic operations. Then, use ScheduleKeyDeletion to delete the KMS keys from the key store. After the required waiting period expires and all KMS keys are deleted from the custom key store, use DisconnectCustomKeyStore to disconnect the key store from KMS. Then, you can delete the custom key store.

For keys in an CloudHSM key store, the ScheduleKeyDeletion operation makes a best effort to delete the key material from the associated cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. KMS never creates, manages, or deletes cryptographic keys in the external key manager associated with an external key store. You must manage them using your external key manager tools.

Instead of deleting the custom key store, consider using the DisconnectCustomKeyStore operation to disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a disconnected custom key store at any time.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DeleteCustomKeyStore (IAM policy)

Related operations:

+

Deletes a custom key store. This operation does not affect any backing elements of the custom key store. It does not delete the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster. For an external key store, it does not affect the external key store proxy, external key manager, or any external keys.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The custom key store that you delete cannot contain any KMS keys. Before deleting the key store, verify that you will never need to use any of the KMS keys in the key store for any cryptographic operations. Then, use ScheduleKeyDeletion to delete the KMS keys from the key store. After the required waiting period expires and all KMS keys are deleted from the custom key store, use DisconnectCustomKeyStore to disconnect the key store from KMS. Then, you can delete the custom key store.

For keys in an CloudHSM key store, the ScheduleKeyDeletion operation makes a best effort to delete the key material from the associated cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. KMS never creates, manages, or deletes cryptographic keys in the external key manager associated with an external key store. You must manage them using your external key manager tools.

Instead of deleting the custom key store, consider using the DisconnectCustomKeyStore operation to disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a disconnected custom key store at any time.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DeleteCustomKeyStore (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DeleteCustomKeyStore service method. @@ -381,7 +381,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)deleteCustomKeyStore:(AWSKMSDeleteCustomKeyStoreRequest *)request; /** -

Deletes a custom key store. This operation does not affect any backing elements of the custom key store. It does not delete the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster. For an external key store, it does not affect the external key store proxy, external key manager, or any external keys.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The custom key store that you delete cannot contain any KMS keys. Before deleting the key store, verify that you will never need to use any of the KMS keys in the key store for any cryptographic operations. Then, use ScheduleKeyDeletion to delete the KMS keys from the key store. After the required waiting period expires and all KMS keys are deleted from the custom key store, use DisconnectCustomKeyStore to disconnect the key store from KMS. Then, you can delete the custom key store.

For keys in an CloudHSM key store, the ScheduleKeyDeletion operation makes a best effort to delete the key material from the associated cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. KMS never creates, manages, or deletes cryptographic keys in the external key manager associated with an external key store. You must manage them using your external key manager tools.

Instead of deleting the custom key store, consider using the DisconnectCustomKeyStore operation to disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a disconnected custom key store at any time.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DeleteCustomKeyStore (IAM policy)

Related operations:

+

Deletes a custom key store. This operation does not affect any backing elements of the custom key store. It does not delete the CloudHSM cluster that is associated with an CloudHSM key store, or affect any users or keys in the cluster. For an external key store, it does not affect the external key store proxy, external key manager, or any external keys.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

The custom key store that you delete cannot contain any KMS keys. Before deleting the key store, verify that you will never need to use any of the KMS keys in the key store for any cryptographic operations. Then, use ScheduleKeyDeletion to delete the KMS keys from the key store. After the required waiting period expires and all KMS keys are deleted from the custom key store, use DisconnectCustomKeyStore to disconnect the key store from KMS. Then, you can delete the custom key store.

For keys in an CloudHSM key store, the ScheduleKeyDeletion operation makes a best effort to delete the key material from the associated cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. KMS never creates, manages, or deletes cryptographic keys in the external key manager associated with an external key store. You must manage them using your external key manager tools.

Instead of deleting the custom key store, consider using the DisconnectCustomKeyStore operation to disconnect the custom key store from its backing key store. While the key store is disconnected, you cannot create or use the KMS keys in the key store. But, you do not need to delete KMS keys and you can reconnect a disconnected custom key store at any time.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DeleteCustomKeyStore (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DeleteCustomKeyStore service method. @param completionHandler The completion handler to call when the load request is complete. @@ -394,7 +394,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)deleteCustomKeyStore:(AWSKMSDeleteCustomKeyStoreRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSDeleteCustomKeyStoreResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Deletes key material that was previously imported. This operation makes the specified KMS key temporarily unusable. To restore the usability of the KMS key, reimport the same key material. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide.

When the specified KMS key is in the PendingDeletion state, this operation does not change the KMS key's state. Otherwise, it changes the KMS key's state to PendingImport.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DeleteImportedKeyMaterial (key policy)

Related operations:

+

Deletes key material that was previously imported. This operation makes the specified KMS key temporarily unusable. To restore the usability of the KMS key, reimport the same key material. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide.

When the specified KMS key is in the PendingDeletion state, this operation does not change the KMS key's state. Otherwise, it changes the KMS key's state to PendingImport.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DeleteImportedKeyMaterial (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DeleteImportedKeyMaterial service method. @@ -405,7 +405,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)deleteImportedKeyMaterial:(AWSKMSDeleteImportedKeyMaterialRequest *)request; /** -

Deletes key material that was previously imported. This operation makes the specified KMS key temporarily unusable. To restore the usability of the KMS key, reimport the same key material. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide.

When the specified KMS key is in the PendingDeletion state, this operation does not change the KMS key's state. Otherwise, it changes the KMS key's state to PendingImport.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DeleteImportedKeyMaterial (key policy)

Related operations:

+

Deletes key material that was previously imported. This operation makes the specified KMS key temporarily unusable. To restore the usability of the KMS key, reimport the same key material. For more information about importing key material into KMS, see Importing Key Material in the Key Management Service Developer Guide.

When the specified KMS key is in the PendingDeletion state, this operation does not change the KMS key's state. Otherwise, it changes the KMS key's state to PendingImport.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DeleteImportedKeyMaterial (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Gets information about custom key stores in the account and Region.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

By default, this operation returns information about all custom key stores in the account and Region. To get only information about a particular custom key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter (but not both).

To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use the ConnectionState element in the response. If an attempt to connect the custom key store failed, the ConnectionState value is FAILED and the ConnectionErrorCode element in the response indicates the cause of the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

Custom key stores have a DISCONNECTED connection state if the key store has never been connected or you used the DisconnectCustomKeyStore operation to disconnect it. Otherwise, the connection state is CONNECTED. If your custom key store connection state is CONNECTED but you are having trouble using it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an external key store, verify that the external key store proxy and its associated external key manager are reachable and enabled.

For help repairing your CloudHSM key store, see the Troubleshooting CloudHSM key stores. For help repairing your external key store, see the Troubleshooting external key stores. Both topics are in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DescribeCustomKeyStores (IAM policy)

Related operations:

+

Gets information about custom key stores in the account and Region.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

By default, this operation returns information about all custom key stores in the account and Region. To get only information about a particular custom key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter (but not both).

To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use the ConnectionState element in the response. If an attempt to connect the custom key store failed, the ConnectionState value is FAILED and the ConnectionErrorCode element in the response indicates the cause of the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

Custom key stores have a DISCONNECTED connection state if the key store has never been connected or you used the DisconnectCustomKeyStore operation to disconnect it. Otherwise, the connection state is CONNECTED. If your custom key store connection state is CONNECTED but you are having trouble using it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an external key store, verify that the external key store proxy and its associated external key manager are reachable and enabled.

For help repairing your CloudHSM key store, see the Troubleshooting CloudHSM key stores. For help repairing your external key store, see the Troubleshooting external key stores. Both topics are in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DescribeCustomKeyStores (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DescribeCustomKeyStores service method. @@ -428,7 +428,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)describeCustomKeyStores:(AWSKMSDescribeCustomKeyStoresRequest *)request; /** -

Gets information about custom key stores in the account and Region.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

By default, this operation returns information about all custom key stores in the account and Region. To get only information about a particular custom key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter (but not both).

To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use the ConnectionState element in the response. If an attempt to connect the custom key store failed, the ConnectionState value is FAILED and the ConnectionErrorCode element in the response indicates the cause of the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

Custom key stores have a DISCONNECTED connection state if the key store has never been connected or you used the DisconnectCustomKeyStore operation to disconnect it. Otherwise, the connection state is CONNECTED. If your custom key store connection state is CONNECTED but you are having trouble using it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an external key store, verify that the external key store proxy and its associated external key manager are reachable and enabled.

For help repairing your CloudHSM key store, see the Troubleshooting CloudHSM key stores. For help repairing your external key store, see the Troubleshooting external key stores. Both topics are in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DescribeCustomKeyStores (IAM policy)

Related operations:

+

Gets information about custom key stores in the account and Region.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

By default, this operation returns information about all custom key stores in the account and Region. To get only information about a particular custom key store, use either the CustomKeyStoreName or CustomKeyStoreId parameter (but not both).

To determine whether the custom key store is connected to its CloudHSM cluster or external key store proxy, use the ConnectionState element in the response. If an attempt to connect the custom key store failed, the ConnectionState value is FAILED and the ConnectionErrorCode element in the response indicates the cause of the failure. For help interpreting the ConnectionErrorCode, see CustomKeyStoresListEntry.

Custom key stores have a DISCONNECTED connection state if the key store has never been connected or you used the DisconnectCustomKeyStore operation to disconnect it. Otherwise, the connection state is CONNECTED. If your custom key store connection state is CONNECTED but you are having trouble using it, verify that the backing store is active and available. For an CloudHSM key store, verify that the associated CloudHSM cluster is active and contains the minimum number of HSMs required for the operation, if any. For an external key store, verify that the external key store proxy and its associated external key manager are reachable and enabled.

For help repairing your CloudHSM key store, see the Troubleshooting CloudHSM key stores. For help repairing your external key store, see the Troubleshooting external key stores. Both topics are in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DescribeCustomKeyStores (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DescribeCustomKeyStores service method. @param completionHandler The completion handler to call when the load request is complete. @@ -441,7 +441,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)describeCustomKeyStores:(AWSKMSDescribeCustomKeyStoresRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSDescribeCustomKeyStoresResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Provides detailed information about a KMS key. You can run DescribeKey on a customer managed key or an Amazon Web Services managed key.

This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state, and the origin and expiration date (if any) of the key material. It includes fields, like KeySpec, that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or generating and verifying MACs) and the algorithms that the KMS key supports.

For multi-Region keys, DescribeKey displays the primary key and all related replica keys. For KMS keys in CloudHSM key stores, it includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in external key stores, it includes the custom key store ID and the ID of the external key.

DescribeKey does not return the following information:

  • Aliases associated with the KMS key. To get this information, use ListAliases.

  • Whether automatic key rotation is enabled on the KMS key. To get this information, use GetKeyRotationStatus. Also, some key states prevent a KMS key from being automatically rotated. For details, see How Automatic Key Rotation Works in the Key Management Service Developer Guide.

  • Tags on the KMS key. To get this information, use ListResourceTags.

  • Key policies and grants on the KMS key. To get this information, use GetKeyPolicy and ListGrants.

In general, DescribeKey is a non-mutating operation. It returns data about KMS keys, but doesn't change them. However, Amazon Web Services services use DescribeKey to create Amazon Web Services managed keys from a predefined Amazon Web Services alias with no key ID.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:DescribeKey (key policy)

Related operations:

+

Provides detailed information about a KMS key. You can run DescribeKey on a customer managed key or an Amazon Web Services managed key.

This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state, and the origin and expiration date (if any) of the key material. It includes fields, like KeySpec, that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or generating and verifying MACs) and the algorithms that the KMS key supports.

For multi-Region keys, DescribeKey displays the primary key and all related replica keys. For KMS keys in CloudHSM key stores, it includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in external key stores, it includes the custom key store ID and the ID of the external key.

DescribeKey does not return the following information:

  • Aliases associated with the KMS key. To get this information, use ListAliases.

  • Whether automatic key rotation is enabled on the KMS key. To get this information, use GetKeyRotationStatus. Also, some key states prevent a KMS key from being automatically rotated. For details, see How Automatic Key Rotation Works in the Key Management Service Developer Guide.

  • Tags on the KMS key. To get this information, use ListResourceTags.

  • Key policies and grants on the KMS key. To get this information, use GetKeyPolicy and ListGrants.

In general, DescribeKey is a non-mutating operation. It returns data about KMS keys, but doesn't change them. However, Amazon Web Services services use DescribeKey to create Amazon Web Services managed keys from a predefined Amazon Web Services alias with no key ID.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:DescribeKey (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DescribeKey service method. @@ -453,7 +453,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)describeKey:(AWSKMSDescribeKeyRequest *)request; /** -

Provides detailed information about a KMS key. You can run DescribeKey on a customer managed key or an Amazon Web Services managed key.

This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state, and the origin and expiration date (if any) of the key material. It includes fields, like KeySpec, that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or generating and verifying MACs) and the algorithms that the KMS key supports.

For multi-Region keys, DescribeKey displays the primary key and all related replica keys. For KMS keys in CloudHSM key stores, it includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in external key stores, it includes the custom key store ID and the ID of the external key.

DescribeKey does not return the following information:

  • Aliases associated with the KMS key. To get this information, use ListAliases.

  • Whether automatic key rotation is enabled on the KMS key. To get this information, use GetKeyRotationStatus. Also, some key states prevent a KMS key from being automatically rotated. For details, see How Automatic Key Rotation Works in the Key Management Service Developer Guide.

  • Tags on the KMS key. To get this information, use ListResourceTags.

  • Key policies and grants on the KMS key. To get this information, use GetKeyPolicy and ListGrants.

In general, DescribeKey is a non-mutating operation. It returns data about KMS keys, but doesn't change them. However, Amazon Web Services services use DescribeKey to create Amazon Web Services managed keys from a predefined Amazon Web Services alias with no key ID.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:DescribeKey (key policy)

Related operations:

+

Provides detailed information about a KMS key. You can run DescribeKey on a customer managed key or an Amazon Web Services managed key.

This detailed information includes the key ARN, creation date (and deletion date, if applicable), the key state, and the origin and expiration date (if any) of the key material. It includes fields, like KeySpec, that help you distinguish different types of KMS keys. It also displays the key usage (encryption, signing, or generating and verifying MACs) and the algorithms that the KMS key supports.

For multi-Region keys, DescribeKey displays the primary key and all related replica keys. For KMS keys in CloudHSM key stores, it includes information about the key store, such as the key store ID and the CloudHSM cluster ID. For KMS keys in external key stores, it includes the custom key store ID and the ID of the external key.

DescribeKey does not return the following information:

  • Aliases associated with the KMS key. To get this information, use ListAliases.

  • Whether automatic key rotation is enabled on the KMS key. To get this information, use GetKeyRotationStatus. Also, some key states prevent a KMS key from being automatically rotated. For details, see How Automatic Key Rotation Works in the Key Management Service Developer Guide.

  • Tags on the KMS key. To get this information, use ListResourceTags.

  • Key policies and grants on the KMS key. To get this information, use GetKeyPolicy and ListGrants.

In general, DescribeKey is a non-mutating operation. It returns data about KMS keys, but doesn't change them. However, Amazon Web Services services use DescribeKey to create Amazon Web Services managed keys from a predefined Amazon Web Services alias with no key ID.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:DescribeKey (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DescribeKey service method. @param completionHandler The completion handler to call when the load request is complete. @@ -466,7 +466,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)describeKey:(AWSKMSDescribeKeyRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSDescribeKeyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for cryptographic operations.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKey (key policy)

Related operations: EnableKey

+

Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for cryptographic operations.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKey (key policy)

Related operations: EnableKey

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DisableKey service method. @@ -477,7 +477,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)disableKey:(AWSKMSDisableKeyRequest *)request; /** -

Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for cryptographic operations.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKey (key policy)

Related operations: EnableKey

+

Sets the state of a KMS key to disabled. This change temporarily prevents use of the KMS key for cryptographic operations.

For more information about how key state affects the use of a KMS key, see Key states of KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKey (key policy)

Related operations: EnableKey

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Disables automatic rotation of the key material of the specified symmetric encryption KMS key.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You can enable (EnableKeyRotation) and disable automatic rotation of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material for every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKeyRotation (key policy)

Related operations:

+

Disables automatic rotation of the key material of the specified symmetric encryption KMS key.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You can enable (EnableKeyRotation) and disable automatic rotation of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material for every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKeyRotation (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DisableKeyRotation service method. @@ -499,7 +499,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)disableKeyRotation:(AWSKMSDisableKeyRotationRequest *)request; /** -

Disables automatic rotation of the key material of the specified symmetric encryption KMS key.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You can enable (EnableKeyRotation) and disable automatic rotation of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material for every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKeyRotation (key policy)

Related operations:

+

Disables automatic rotation of the key material of the specified symmetric encryption KMS key.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You can enable (EnableKeyRotation) and disable automatic rotation of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material for every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:DisableKeyRotation (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Disconnects the custom key store from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster or disconnects an external key store from the external key store proxy that communicates with your external key manager.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot create or use its KMS keys. You can reconnect the custom key store at any time.

While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use existing KMS keys in cryptographic operations will fail. This action can prevent users from storing and accessing sensitive data.

When you disconnect a custom key store, its ConnectionState changes to Disconnected. To find the connection state of a custom key store, use the DescribeCustomKeyStores operation. To reconnect a custom key store, use the ConnectCustomKeyStore operation.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DisconnectCustomKeyStore (IAM policy)

Related operations:

+

Disconnects the custom key store from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster or disconnects an external key store from the external key store proxy that communicates with your external key manager.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot create or use its KMS keys. You can reconnect the custom key store at any time.

While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use existing KMS keys in cryptographic operations will fail. This action can prevent users from storing and accessing sensitive data.

When you disconnect a custom key store, its ConnectionState changes to Disconnected. To find the connection state of a custom key store, use the DescribeCustomKeyStores operation. To reconnect a custom key store, use the ConnectCustomKeyStore operation.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DisconnectCustomKeyStore (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DisconnectCustomKeyStore service method. @@ -522,7 +522,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)disconnectCustomKeyStore:(AWSKMSDisconnectCustomKeyStoreRequest *)request; /** -

Disconnects the custom key store from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster or disconnects an external key store from the external key store proxy that communicates with your external key manager.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot create or use its KMS keys. You can reconnect the custom key store at any time.

While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use existing KMS keys in cryptographic operations will fail. This action can prevent users from storing and accessing sensitive data.

When you disconnect a custom key store, its ConnectionState changes to Disconnected. To find the connection state of a custom key store, use the DescribeCustomKeyStores operation. To reconnect a custom key store, use the ConnectCustomKeyStore operation.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DisconnectCustomKeyStore (IAM policy)

Related operations:

+

Disconnects the custom key store from its backing key store. This operation disconnects an CloudHSM key store from its associated CloudHSM cluster or disconnects an external key store from the external key store proxy that communicates with your external key manager.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

While a custom key store is disconnected, you can manage the custom key store and its KMS keys, but you cannot create or use its KMS keys. You can reconnect the custom key store at any time.

While a custom key store is disconnected, all attempts to create KMS keys in the custom key store or to use existing KMS keys in cryptographic operations will fail. This action can prevent users from storing and accessing sensitive data.

When you disconnect a custom key store, its ConnectionState changes to Disconnected. To find the connection state of a custom key store, use the DescribeCustomKeyStores operation. To reconnect a custom key store, use the ConnectCustomKeyStore operation.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:DisconnectCustomKeyStore (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the DisconnectCustomKeyStore service method. @param completionHandler The completion handler to call when the load request is complete. @@ -535,7 +535,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)disconnectCustomKeyStore:(AWSKMSDisconnectCustomKeyStoreRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSDisconnectCustomKeyStoreResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Sets the key state of a KMS key to enabled. This allows you to use the KMS key for cryptographic operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKey (key policy)

Related operations: DisableKey

+

Sets the key state of a KMS key to enabled. This allows you to use the KMS key for cryptographic operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKey (key policy)

Related operations: DisableKey

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the EnableKey service method. @@ -546,7 +546,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)enableKey:(AWSKMSEnableKeyRequest *)request; /** -

Sets the key state of a KMS key to enabled. This allows you to use the KMS key for cryptographic operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKey (key policy)

Related operations: DisableKey

+

Sets the key state of a KMS key to enabled. This allows you to use the KMS key for cryptographic operations.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKey (key policy)

Related operations: DisableKey

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Enables automatic rotation of the key material of the specified symmetric encryption KMS key.

When you enable automatic rotation of acustomer managed KMS key, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the DisableKeyRotation operation.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You cannot enable or disable automatic rotation Amazon Web Services managed KMS keys. KMS always rotates the key material of Amazon Web Services managed keys every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years (approximately 1,095 days) to every year (approximately 365 days).

New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately every year thereafter.

Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation, and every year thereafter.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKeyRotation (key policy)

Related operations:

+

Enables automatic rotation of the key material of the specified symmetric encryption KMS key.

When you enable automatic rotation of a customer managed KMS key, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the DisableKeyRotation operation.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You cannot enable or disable automatic rotation Amazon Web Services managed KMS keys. KMS always rotates the key material of Amazon Web Services managed keys every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years (approximately 1,095 days) to every year (approximately 365 days).

New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately every year thereafter.

Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation, and every year thereafter.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKeyRotation (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the EnableKeyRotation service method. @@ -568,7 +568,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)enableKeyRotation:(AWSKMSEnableKeyRotationRequest *)request; /** -

Enables automatic rotation of the key material of the specified symmetric encryption KMS key.

When you enable automatic rotation of acustomer managed KMS key, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the DisableKeyRotation operation.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You cannot enable or disable automatic rotation Amazon Web Services managed KMS keys. KMS always rotates the key material of Amazon Web Services managed keys every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years (approximately 1,095 days) to every year (approximately 365 days).

New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately every year thereafter.

Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation, and every year thereafter.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKeyRotation (key policy)

Related operations:

+

Enables automatic rotation of the key material of the specified symmetric encryption KMS key.

When you enable automatic rotation of a customer managed KMS key, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch. To disable rotation of the key material in a customer managed KMS key, use the DisableKeyRotation operation.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key.

You cannot enable or disable automatic rotation Amazon Web Services managed KMS keys. KMS always rotates the key material of Amazon Web Services managed keys every year. Rotation of Amazon Web Services owned KMS keys varies.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years (approximately 1,095 days) to every year (approximately 365 days).

New Amazon Web Services managed keys are automatically rotated one year after they are created, and approximately every year thereafter.

Existing Amazon Web Services managed keys are automatically rotated one year after their most recent rotation, and every year thereafter.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:EnableKeyRotation (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a KeyUsage of ENCRYPT_DECRYPT.

You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database password, or other sensitive information. You don't need to use the Encrypt operation to encrypt a data key. The GenerateDataKey and GenerateDataKeyPair operations return a plaintext data key and an encrypted copy of that data key.

If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your encryption operation. If you specify an EncryptionContext when encrypting data, you must specify the same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be compatible with the KMS key spec.

When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm that you choose.

  • Symmetric encryption KMS keys

    • SYMMETRIC_DEFAULT: 4096 bytes

  • RSA_2048

    • RSAES_OAEP_SHA_1: 214 bytes

    • RSAES_OAEP_SHA_256: 190 bytes

  • RSA_3072

    • RSAES_OAEP_SHA_1: 342 bytes

    • RSAES_OAEP_SHA_256: 318 bytes

  • RSA_4096

    • RSAES_OAEP_SHA_1: 470 bytes

    • RSAES_OAEP_SHA_256: 446 bytes

  • SM2PKE: 1024 bytes (China Regions only)

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Encrypt (key policy)

Related operations:

+

Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a KeyUsage of ENCRYPT_DECRYPT.

You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database password, or other sensitive information. You don't need to use the Encrypt operation to encrypt a data key. The GenerateDataKey and GenerateDataKeyPair operations return a plaintext data key and an encrypted copy of that data key.

If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your encryption operation. If you specify an EncryptionContext when encrypting data, you must specify the same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be compatible with the KMS key spec.

When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm that you choose.

  • Symmetric encryption KMS keys

    • SYMMETRIC_DEFAULT: 4096 bytes

  • RSA_2048

    • RSAES_OAEP_SHA_1: 214 bytes

    • RSAES_OAEP_SHA_256: 190 bytes

  • RSA_3072

    • RSAES_OAEP_SHA_1: 342 bytes

    • RSAES_OAEP_SHA_256: 318 bytes

  • RSA_4096

    • RSAES_OAEP_SHA_1: 470 bytes

    • RSAES_OAEP_SHA_256: 446 bytes

  • SM2PKE: 1024 bytes (China Regions only)

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Encrypt (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the Encrypt service method. @@ -591,7 +591,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)encrypt:(AWSKMSEncryptRequest *)request; /** -

Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a KeyUsage of ENCRYPT_DECRYPT.

You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database password, or other sensitive information. You don't need to use the Encrypt operation to encrypt a data key. The GenerateDataKey and GenerateDataKeyPair operations return a plaintext data key and an encrypted copy of that data key.

If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your encryption operation. If you specify an EncryptionContext when encrypting data, you must specify the same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be compatible with the KMS key spec.

When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm that you choose.

  • Symmetric encryption KMS keys

    • SYMMETRIC_DEFAULT: 4096 bytes

  • RSA_2048

    • RSAES_OAEP_SHA_1: 214 bytes

    • RSAES_OAEP_SHA_256: 190 bytes

  • RSA_3072

    • RSAES_OAEP_SHA_1: 342 bytes

    • RSAES_OAEP_SHA_256: 318 bytes

  • RSA_4096

    • RSAES_OAEP_SHA_1: 470 bytes

    • RSAES_OAEP_SHA_256: 446 bytes

  • SM2PKE: 1024 bytes (China Regions only)

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Encrypt (key policy)

Related operations:

+

Encrypts plaintext of up to 4,096 bytes using a KMS key. You can use a symmetric or asymmetric KMS key with a KeyUsage of ENCRYPT_DECRYPT.

You can use this operation to encrypt small amounts of arbitrary data, such as a personal identifier or database password, or other sensitive information. You don't need to use the Encrypt operation to encrypt a data key. The GenerateDataKey and GenerateDataKeyPair operations return a plaintext data key and an encrypted copy of that data key.

If you use a symmetric encryption KMS key, you can use an encryption context to add additional security to your encryption operation. If you specify an EncryptionContext when encrypting data, you must specify the same encryption context (a case-sensitive exact match) when decrypting the data. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

If you specify an asymmetric KMS key, you must also specify the encryption algorithm. The algorithm must be compatible with the KMS key spec.

When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The maximum size of the data that you can encrypt varies with the type of KMS key and the encryption algorithm that you choose.

  • Symmetric encryption KMS keys

    • SYMMETRIC_DEFAULT: 4096 bytes

  • RSA_2048

    • RSAES_OAEP_SHA_1: 214 bytes

    • RSAES_OAEP_SHA_256: 190 bytes

  • RSA_3072

    • RSAES_OAEP_SHA_1: 342 bytes

    • RSAES_OAEP_SHA_256: 318 bytes

  • RSA_4096

    • RSAES_OAEP_SHA_1: 470 bytes

    • RSAES_OAEP_SHA_256: 446 bytes

  • SM2PKE: 1024 bytes (China Regions only)

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Encrypt (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the Encrypt service method. @param completionHandler The completion handler to call when the load request is complete. @@ -604,7 +604,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)encrypt:(AWSKMSEncryptRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSEncryptResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to encrypt your data outside of KMS and store the encrypted data key with the encrypted data.

To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate a 128-bit SM4 data key (China Regions only), specify a KeySpec value of AES_128 or a NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

To get only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. To generate an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operation. To get a cryptographically secure random byte string, use GenerateRandom.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

GenerateDataKey also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKey for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKey returns a copy of the data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of the data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

How to use your data key

We recommend that you use the following pattern to encrypt data locally in your application. You can write your own code or use a client-side encryption library, such as the Amazon Web Services Encryption SDK, the Amazon DynamoDB Encryption Client, or Amazon S3 client-side encryption to do these tasks for you.

To encrypt data outside of KMS:

  1. Use the GenerateDataKey operation to get a data key.

  2. Use the plaintext data key (in the Plaintext field of the response) to encrypt your data outside of KMS. Then erase the plaintext data key from memory.

  3. Store the encrypted data key (in the CiphertextBlob field of the response) with the encrypted data.

To decrypt data outside of KMS:

  1. Use the Decrypt operation to decrypt the encrypted data key. The operation returns a plaintext copy of the data key.

  2. Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKey (key policy)

Related operations:

+

Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to encrypt your data outside of KMS and store the encrypted data key with the encrypted data.

To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate a 128-bit SM4 data key (China Regions only), specify a KeySpec value of AES_128 or a NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

To get only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. To generate an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operation. To get a cryptographically secure random byte string, use GenerateRandom.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

GenerateDataKey also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKey for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKey returns a copy of the data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of the data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

How to use your data key

We recommend that you use the following pattern to encrypt data locally in your application. You can write your own code or use a client-side encryption library, such as the Amazon Web Services Encryption SDK, the Amazon DynamoDB Encryption Client, or Amazon S3 client-side encryption to do these tasks for you.

To encrypt data outside of KMS:

  1. Use the GenerateDataKey operation to get a data key.

  2. Use the plaintext data key (in the Plaintext field of the response) to encrypt your data outside of KMS. Then erase the plaintext data key from memory.

  3. Store the encrypted data key (in the CiphertextBlob field of the response) with the encrypted data.

To decrypt data outside of KMS:

  1. Use the Decrypt operation to decrypt the encrypted data key. The operation returns a plaintext copy of the data key.

  2. Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKey (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateDataKey service method. @@ -616,7 +616,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)generateDataKey:(AWSKMSGenerateDataKeyRequest *)request; /** -

Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to encrypt your data outside of KMS and store the encrypted data key with the encrypted data.

To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate a 128-bit SM4 data key (China Regions only), specify a KeySpec value of AES_128 or a NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

To get only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. To generate an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operation. To get a cryptographically secure random byte string, use GenerateRandom.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

GenerateDataKey also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKey for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKey returns a copy of the data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of the data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

How to use your data key

We recommend that you use the following pattern to encrypt data locally in your application. You can write your own code or use a client-side encryption library, such as the Amazon Web Services Encryption SDK, the Amazon DynamoDB Encryption Client, or Amazon S3 client-side encryption to do these tasks for you.

To encrypt data outside of KMS:

  1. Use the GenerateDataKey operation to get a data key.

  2. Use the plaintext data key (in the Plaintext field of the response) to encrypt your data outside of KMS. Then erase the plaintext data key from memory.

  3. Store the encrypted data key (in the CiphertextBlob field of the response) with the encrypted data.

To decrypt data outside of KMS:

  1. Use the Decrypt operation to decrypt the encrypted data key. The operation returns a plaintext copy of the data key.

  2. Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKey (key policy)

Related operations:

+

Returns a unique symmetric data key for use outside of KMS. This operation returns a plaintext copy of the data key and a copy that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the plaintext key are random; they are not related to the caller or the KMS key. You can use the plaintext key to encrypt your data outside of KMS and store the encrypted data key with the encrypted data.

To generate a data key, specify the symmetric encryption KMS key that will be used to encrypt the data key. You cannot use an asymmetric KMS key to encrypt data keys. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate a 128-bit SM4 data key (China Regions only), specify a KeySpec value of AES_128 or a NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

To get only an encrypted copy of the data key, use GenerateDataKeyWithoutPlaintext. To generate an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operation. To get a cryptographically secure random byte string, use GenerateRandom.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

GenerateDataKey also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKey for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKey returns a copy of the data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the data key, the response includes a copy of the data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

How to use your data key

We recommend that you use the following pattern to encrypt data locally in your application. You can write your own code or use a client-side encryption library, such as the Amazon Web Services Encryption SDK, the Amazon DynamoDB Encryption Client, or Amazon S3 client-side encryption to do these tasks for you.

To encrypt data outside of KMS:

  1. Use the GenerateDataKey operation to get a data key.

  2. Use the plaintext data key (in the Plaintext field of the response) to encrypt your data outside of KMS. Then erase the plaintext data key from memory.

  3. Store the encrypted data key (in the CiphertextBlob field of the response) with the encrypted data.

To decrypt data outside of KMS:

  1. Use the Decrypt operation to decrypt the encrypted data key. The operation returns a plaintext copy of the data key.

  2. Use the plaintext data key to decrypt data outside of KMS, then erase the plaintext data key from memory.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKey (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateDataKey service method. @param completionHandler The completion handler to call when the load request is complete. @@ -629,7 +629,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)generateDataKey:(AWSKMSGenerateDataKeyRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGenerateDataKeyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key, a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures outside of KMS. The bytes in the keys are random; they not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPair returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a private key, consider using the GenerateDataKeyPairWithoutPlaintext operation. GenerateDataKeyPairWithoutPlaintext returns a plaintext public key and an encrypted private key, but omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need to decrypt the data or sign a message, use the Decrypt operation to decrypt the encrypted private key in the data key pair.

GenerateDataKeyPair returns a unique data key pair for each request. The bytes in the keys are random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in RFC 5958.

GenerateDataKeyPair also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKeyPair for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKeyPair returns the public data key and a copy of the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the private data key (PrivateKeyPlaintext), the response includes a copy of the private data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPair (key policy)

Related operations:

+

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key, a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPair returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a private key, consider using the GenerateDataKeyPairWithoutPlaintext operation. GenerateDataKeyPairWithoutPlaintext returns a plaintext public key and an encrypted private key, but omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need to decrypt the data or sign a message, use the Decrypt operation to decrypt the encrypted private key in the data key pair.

GenerateDataKeyPair returns a unique data key pair for each request. The bytes in the keys are random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in RFC 5958.

GenerateDataKeyPair also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKeyPair for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKeyPair returns the public data key and a copy of the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the private data key (PrivateKeyPlaintext), the response includes a copy of the private data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPair (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateDataKeyPair service method. @@ -641,7 +641,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)generateDataKeyPair:(AWSKMSGenerateDataKeyPairRequest *)request; /** -

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key, a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures outside of KMS. The bytes in the keys are random; they not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPair returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a private key, consider using the GenerateDataKeyPairWithoutPlaintext operation. GenerateDataKeyPairWithoutPlaintext returns a plaintext public key and an encrypted private key, but omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need to decrypt the data or sign a message, use the Decrypt operation to decrypt the encrypted private key in the data key pair.

GenerateDataKeyPair returns a unique data key pair for each request. The bytes in the keys are random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in RFC 5958.

GenerateDataKeyPair also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKeyPair for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKeyPair returns the public data key and a copy of the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the private data key (PrivateKeyPlaintext), the response includes a copy of the private data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPair (key policy)

Related operations:

+

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key, a plaintext private key, and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. You can use the data key pair to perform asymmetric cryptography and implement digital signatures outside of KMS. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPair returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

If you are using the data key pair to encrypt data, or for any operation where you don't immediately need a private key, consider using the GenerateDataKeyPairWithoutPlaintext operation. GenerateDataKeyPairWithoutPlaintext returns a plaintext public key and an encrypted private key, but omits the plaintext private key that you need only to decrypt ciphertext or sign a message. Later, when you need to decrypt the data or sign a message, use the Decrypt operation to decrypt the encrypted private key in the data key pair.

GenerateDataKeyPair returns a unique data key pair for each request. The bytes in the keys are random; they are not related to the caller or the KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280. The private key is a DER-encoded PKCS8 PrivateKeyInfo, as specified in RFC 5958.

GenerateDataKeyPair also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateDataKeyPair for an Amazon Web Services Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. GenerateDataKeyPair returns the public data key and a copy of the private data key encrypted under the specified KMS key, as usual. But instead of a plaintext copy of the private data key (PrivateKeyPlaintext), the response includes a copy of the private data key encrypted under the public key from the attestation document (CiphertextForRecipient). For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide..

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPair (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateDataKeyPair service method. @param completionHandler The completion handler to call when the load request is complete. @@ -654,7 +654,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)generateDataKeyPair:(AWSKMSGenerateDataKeyPairRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGenerateDataKeyPairResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike GenerateDataKeyPair, this operation does not return a plaintext private key. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPairWithoutPlaintext returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

GenerateDataKeyPairWithoutPlaintext returns a unique data key pair for each request. The bytes in the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPairWithoutPlaintext (key policy)

Related operations:

+

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike GenerateDataKeyPair, this operation does not return a plaintext private key. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPairWithoutPlaintext returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

GenerateDataKeyPairWithoutPlaintext returns a unique data key pair for each request. The bytes in the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPairWithoutPlaintext (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateDataKeyPairWithoutPlaintext service method. @@ -666,7 +666,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)generateDataKeyPairWithoutPlaintext:(AWSKMSGenerateDataKeyPairWithoutPlaintextRequest *)request; /** -

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike GenerateDataKeyPair, this operation does not return a plaintext private key. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPairWithoutPlaintext returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

GenerateDataKeyPairWithoutPlaintext returns a unique data key pair for each request. The bytes in the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPairWithoutPlaintext (key policy)

Related operations:

+

Returns a unique asymmetric data key pair for use outside of KMS. This operation returns a plaintext public key and a copy of the private key that is encrypted under the symmetric encryption KMS key you specify. Unlike GenerateDataKeyPair, this operation does not return a plaintext private key. The bytes in the keys are random; they are not related to the caller or to the KMS key that is used to encrypt the private key.

You can use the public key that GenerateDataKeyPairWithoutPlaintext returns to encrypt data or verify a signature outside of KMS. Then, store the encrypted private key with the data. When you are ready to decrypt data or sign a message, you can use the Decrypt operation to decrypt the encrypted private key.

To generate a data key pair, you must specify a symmetric encryption KMS key to encrypt the private key in a data key pair. You cannot use an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the DescribeKey operation.

Use the KeyPairSpec parameter to choose an RSA or Elliptic Curve (ECC) data key pair. In China Regions, you can also choose an SM2 data key pair. KMS recommends that you use ECC key pairs for signing, and use RSA and SM2 key pairs for either encryption or signing, but not both. However, KMS cannot enforce any restrictions on the use of data key pairs outside of KMS.

GenerateDataKeyPairWithoutPlaintext returns a unique data key pair for each request. The bytes in the key are not related to the caller or KMS key that is used to encrypt the private key. The public key is a DER-encoded X.509 SubjectPublicKeyInfo, as specified in RFC 5280.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyPairWithoutPlaintext (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateDataKeyPairWithoutPlaintext service method. @param completionHandler The completion handler to call when the load request is complete. @@ -679,7 +679,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)generateDataKeyPairWithoutPlaintext:(AWSKMSGenerateDataKeyPairWithoutPlaintextRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGenerateDataKeyPairWithoutPlaintextResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to the caller or to the KMS key.

GenerateDataKeyWithoutPlaintext is identical to the GenerateDataKey operation except that it does not return a plaintext copy of the data key.

This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need to encrypt the data, you call the Decrypt operation on the encrypted copy of the key.

It's also useful in distributed systems with different levels of trust. For example, you might store encrypted data in containers. One component of your system creates new containers and stores an encrypted data key with each container. Then, a different component puts the data into the containers. That component first decrypts the data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then destroys the plaintext data key. In this system, the component that creates the containers never sees the plaintext data key.

To request an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operations.

To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key. You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate an SM4 data key (China Regions only), specify a KeySpec value of AES_128 or NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

If the operation succeeds, you will find the encrypted copy of the data key in the CiphertextBlob field.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyWithoutPlaintext (key policy)

Related operations:

+

Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to the caller or to the KMS key.

GenerateDataKeyWithoutPlaintext is identical to the GenerateDataKey operation except that it does not return a plaintext copy of the data key.

This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need to encrypt the data, you call the Decrypt operation on the encrypted copy of the key.

It's also useful in distributed systems with different levels of trust. For example, you might store encrypted data in containers. One component of your system creates new containers and stores an encrypted data key with each container. Then, a different component puts the data into the containers. That component first decrypts the data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then destroys the plaintext data key. In this system, the component that creates the containers never sees the plaintext data key.

To request an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operations.

To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key. You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate an SM4 data key (China Regions only), specify a KeySpec value of AES_128 or NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

If the operation succeeds, you will find the encrypted copy of the data key in the CiphertextBlob field.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyWithoutPlaintext (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateDataKeyWithoutPlaintext service method. @@ -691,7 +691,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)generateDataKeyWithoutPlaintext:(AWSKMSGenerateDataKeyWithoutPlaintextRequest *)request; /** -

Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to the caller or to the KMS key.

GenerateDataKeyWithoutPlaintext is identical to the GenerateDataKey operation except that it does not return a plaintext copy of the data key.

This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need to encrypt the data, you call the Decrypt operation on the encrypted copy of the key.

It's also useful in distributed systems with different levels of trust. For example, you might store encrypted data in containers. One component of your system creates new containers and stores an encrypted data key with each container. Then, a different component puts the data into the containers. That component first decrypts the data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then destroys the plaintext data key. In this system, the component that creates the containers never sees the plaintext data key.

To request an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operations.

To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key. You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate an SM4 data key (China Regions only), specify a KeySpec value of AES_128 or NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

If the operation succeeds, you will find the encrypted copy of the data key in the CiphertextBlob field.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyWithoutPlaintext (key policy)

Related operations:

+

Returns a unique symmetric data key for use outside of KMS. This operation returns a data key that is encrypted under a symmetric encryption KMS key that you specify. The bytes in the key are random; they are not related to the caller or to the KMS key.

GenerateDataKeyWithoutPlaintext is identical to the GenerateDataKey operation except that it does not return a plaintext copy of the data key.

This operation is useful for systems that need to encrypt data at some point, but not immediately. When you need to encrypt the data, you call the Decrypt operation on the encrypted copy of the key.

It's also useful in distributed systems with different levels of trust. For example, you might store encrypted data in containers. One component of your system creates new containers and stores an encrypted data key with each container. Then, a different component puts the data into the containers. That component first decrypts the data key, uses the plaintext data key to encrypt data, puts the encrypted data into the container, and then destroys the plaintext data key. In this system, the component that creates the containers never sees the plaintext data key.

To request an asymmetric data key pair, use the GenerateDataKeyPair or GenerateDataKeyPairWithoutPlaintext operations.

To generate a data key, you must specify the symmetric encryption KMS key that is used to encrypt the data key. You cannot use an asymmetric KMS key or a key in a custom key store to generate a data key. To get the type of your KMS key, use the DescribeKey operation.

You must also specify the length of the data key. Use either the KeySpec or NumberOfBytes parameters (but not both). For 128-bit and 256-bit data keys, use the KeySpec parameter.

To generate an SM4 data key (China Regions only), specify a KeySpec value of AES_128 or NumberOfBytes value of 16. The symmetric encryption key used in China Regions to encrypt your data key is an SM4 encryption key.

If the operation succeeds, you will find the encrypted copy of the data key in the CiphertextBlob field.

You can use an optional encryption context to add additional security to the encryption operation. If you specify an EncryptionContext, you must specify the same encryption context (a case-sensitive exact match) when decrypting the encrypted data key. Otherwise, the request to decrypt fails with an InvalidCiphertextException. For more information, see Encryption Context in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateDataKeyWithoutPlaintext (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateDataKeyWithoutPlaintext service method. @param completionHandler The completion handler to call when the load request is complete. @@ -704,7 +704,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)generateDataKeyWithoutPlaintext:(AWSKMSGenerateDataKeyWithoutPlaintextRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGenerateDataKeyWithoutPlaintextResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

You can use value that GenerateMac returns in the VerifyMac operation to demonstrate that the original message has not changed. Also, because a secret key is used to create the hash, you can verify that the party that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the token or message to help you detect when its time to refresh the HMAC.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateMac (key policy)

Related operations: VerifyMac

+

Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

You can use value that GenerateMac returns in the VerifyMac operation to demonstrate that the original message has not changed. Also, because a secret key is used to create the hash, you can verify that the party that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the token or message to help you detect when its time to refresh the HMAC.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateMac (key policy)

Related operations: VerifyMac

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateMac service method. @@ -716,7 +716,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)generateMac:(AWSKMSGenerateMacRequest *)request; /** -

Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

You can use value that GenerateMac returns in the VerifyMac operation to demonstrate that the original message has not changed. Also, because a secret key is used to create the hash, you can verify that the party that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the token or message to help you detect when its time to refresh the HMAC.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateMac (key policy)

Related operations: VerifyMac

+

Generates a hash-based message authentication code (HMAC) for a message using an HMAC KMS key and a MAC algorithm that the key supports. HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

You can use value that GenerateMac returns in the VerifyMac operation to demonstrate that the original message has not changed. Also, because a secret key is used to create the hash, you can verify that the party that generated the hash has the required secret key. You can also use the raw result to implement HMAC-based algorithms such as key derivation functions. This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

Best practices recommend that you limit the time during which any signing mechanism, including an HMAC, is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. HMAC tags do not include a timestamp, but you can include a timestamp in the token or message to help you detect when its time to refresh the HMAC.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GenerateMac (key policy)

Related operations: VerifyMac

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateMac service method. @param completionHandler The completion handler to call when the load request is complete. @@ -729,7 +729,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)generateMac:(AWSKMSGenerateMacRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGenerateMacResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Returns a random byte string that is cryptographically secure.

You must use the NumberOfBytes parameter to specify the length of the random byte string. There is no default value for string length.

By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster associated with an CloudHSM key store, use the CustomKeyStoreId parameter.

GenerateRandom also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateRandom for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes encrypted under the public key from the attestation document (CiphertextForRecipient).For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

For more information about entropy and random number generation, see Key Management Service Cryptographic Details.

Cross-account use: Not applicable. GenerateRandom does not use any account-specific resources, such as KMS keys.

Required permissions: kms:GenerateRandom (IAM policy)

+

Returns a random byte string that is cryptographically secure.

You must use the NumberOfBytes parameter to specify the length of the random byte string. There is no default value for string length.

By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster associated with an CloudHSM key store, use the CustomKeyStoreId parameter.

GenerateRandom also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateRandom for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes encrypted under the public key from the attestation document (CiphertextForRecipient).For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

For more information about entropy and random number generation, see Key Management Service Cryptographic Details.

Cross-account use: Not applicable. GenerateRandom does not use any account-specific resources, such as KMS keys.

Required permissions: kms:GenerateRandom (IAM policy)

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateRandom service method. @@ -741,7 +741,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)generateRandom:(AWSKMSGenerateRandomRequest *)request; /** -

Returns a random byte string that is cryptographically secure.

You must use the NumberOfBytes parameter to specify the length of the random byte string. There is no default value for string length.

By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster associated with an CloudHSM key store, use the CustomKeyStoreId parameter.

GenerateRandom also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateRandom for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes encrypted under the public key from the attestation document (CiphertextForRecipient).For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

For more information about entropy and random number generation, see Key Management Service Cryptographic Details.

Cross-account use: Not applicable. GenerateRandom does not use any account-specific resources, such as KMS keys.

Required permissions: kms:GenerateRandom (IAM policy)

+

Returns a random byte string that is cryptographically secure.

You must use the NumberOfBytes parameter to specify the length of the random byte string. There is no default value for string length.

By default, the random byte string is generated in KMS. To generate the byte string in the CloudHSM cluster associated with an CloudHSM key store, use the CustomKeyStoreId parameter.

GenerateRandom also supports Amazon Web Services Nitro Enclaves, which provide an isolated compute environment in Amazon EC2. To call GenerateRandom for a Nitro enclave, use the Amazon Web Services Nitro Enclaves SDK or any Amazon Web Services SDK. Use the Recipient parameter to provide the attestation document for the enclave. Instead of plaintext bytes, the response includes the plaintext bytes encrypted under the public key from the attestation document (CiphertextForRecipient).For information about the interaction between KMS and Amazon Web Services Nitro Enclaves, see How Amazon Web Services Nitro Enclaves uses KMS in the Key Management Service Developer Guide.

For more information about entropy and random number generation, see Key Management Service Cryptographic Details.

Cross-account use: Not applicable. GenerateRandom does not use any account-specific resources, such as KMS keys.

Required permissions: kms:GenerateRandom (IAM policy)

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GenerateRandom service method. @param completionHandler The completion handler to call when the load request is complete. @@ -754,7 +754,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)generateRandom:(AWSKMSGenerateRandomRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGenerateRandomResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Gets a key policy attached to the specified KMS key.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetKeyPolicy (key policy)

Related operations: PutKeyPolicy

+

Gets a key policy attached to the specified KMS key.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetKeyPolicy (key policy)

Related operations: PutKeyPolicy

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GetKeyPolicy service method. @@ -766,7 +766,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)getKeyPolicy:(AWSKMSGetKeyPolicyRequest *)request; /** -

Gets a key policy attached to the specified KMS key.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetKeyPolicy (key policy)

Related operations: PutKeyPolicy

+

Gets a key policy attached to the specified KMS key.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetKeyPolicy (key policy)

Related operations: PutKeyPolicy

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GetKeyPolicy service method. @param completionHandler The completion handler to call when the load request is complete. @@ -779,7 +779,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)getKeyPolicy:(AWSKMSGetKeyPolicyRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGetKeyPolicyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified KMS key.

When you enable automatic rotation for customer managed KMS keys, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key..

You can enable (EnableKeyRotation) and disable automatic rotation (DisableKeyRotation) of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS keys every year. The key rotation status for Amazon Web Services managed KMS keys is always true.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

  • Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS key resumes its prior rotation schedule.

  • Pending deletion: While a KMS key is pending deletion, its key rotation status is false and KMS does not rotate the key material. If you cancel the deletion, the original key rotation status returns to true.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:GetKeyRotationStatus (key policy)

Related operations:

+

Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified KMS key.

When you enable automatic rotation for customer managed KMS keys, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key..

You can enable (EnableKeyRotation) and disable automatic rotation (DisableKeyRotation) of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS keys every year. The key rotation status for Amazon Web Services managed KMS keys is always true.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

  • Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS key resumes its prior rotation schedule.

  • Pending deletion: While a KMS key is pending deletion, its key rotation status is false and KMS does not rotate the key material. If you cancel the deletion, the original key rotation status returns to true.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:GetKeyRotationStatus (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GetKeyRotationStatus service method. @@ -791,7 +791,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)getKeyRotationStatus:(AWSKMSGetKeyRotationStatusRequest *)request; /** -

Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified KMS key.

When you enable automatic rotation for customer managed KMS keys, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key..

You can enable (EnableKeyRotation) and disable automatic rotation (DisableKeyRotation) of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS keys every year. The key rotation status for Amazon Web Services managed KMS keys is always true.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

  • Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS key resumes its prior rotation schedule.

  • Pending deletion: While a KMS key is pending deletion, its key rotation status is false and KMS does not rotate the key material. If you cancel the deletion, the original key rotation status returns to true.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:GetKeyRotationStatus (key policy)

Related operations:

+

Gets a Boolean value that indicates whether automatic rotation of the key material is enabled for the specified KMS key.

When you enable automatic rotation for customer managed KMS keys, KMS rotates the key material of the KMS key one year (approximately 365 days) from the enable date and every year thereafter. You can monitor rotation of the key material for your KMS keys in CloudTrail and Amazon CloudWatch.

Automatic key rotation is supported only on symmetric encryption KMS keys. You cannot enable automatic rotation of asymmetric KMS keys, HMAC KMS keys, KMS keys with imported key material, or KMS keys in a custom key store. To enable or disable automatic rotation of a set of related multi-Region keys, set the property on the primary key..

You can enable (EnableKeyRotation) and disable automatic rotation (DisableKeyRotation) of the key material in customer managed KMS keys. Key material rotation of Amazon Web Services managed KMS keys is not configurable. KMS always rotates the key material in Amazon Web Services managed KMS keys every year. The key rotation status for Amazon Web Services managed KMS keys is always true.

In May 2022, KMS changed the rotation schedule for Amazon Web Services managed keys from every three years to every year. For details, see EnableKeyRotation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

  • Disabled: The key rotation status does not change when you disable a KMS key. However, while the KMS key is disabled, KMS does not rotate the key material. When you re-enable the KMS key, rotation resumes. If the key material in the re-enabled KMS key hasn't been rotated in one year, KMS rotates it immediately, and every year thereafter. If it's been less than a year since the key material in the re-enabled KMS key was rotated, the KMS key resumes its prior rotation schedule.

  • Pending deletion: While a KMS key is pending deletion, its key rotation status is false and KMS does not rotate the key material. If you cancel the deletion, the original key rotation status returns to true.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:GetKeyRotationStatus (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GetKeyRotationStatus service method. @param completionHandler The completion handler to call when the load request is complete. @@ -804,7 +804,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)getKeyRotationStatus:(AWSKMSGetKeyRotationStatusRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGetKeyRotationStatusResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Returns the public key and an import token you need to import or reimport key material for a KMS key.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

Before calling GetParametersForImport, use the CreateKey operation with an Origin value of EXTERNAL to create a KMS key with no key material. You can import key material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store. You can also use GetParametersForImport to get a public key and import token to reimport the original key material into a KMS key whose key material expired or was deleted.

GetParametersForImport returns the items that you need to import your key material.

  • The public key (or "wrapping key") of an RSA key pair that KMS generates.

    You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.

  • A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.

The public key and its import token are permanently linked and must be used together. Each public key and import token set is valid for 24 hours. The expiration date and time appear in the ParametersValidTo field in the GetParametersForImport response. You cannot use an expired public key or import token in an ImportKeyMaterial request. If your key and token expire, send another GetParametersForImport request.

GetParametersForImport requires the following information:

  • The key ID of the KMS key for which you are importing the key material.

  • The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.

  • The wrapping algorithm that you will use with the public key to encrypt your key material.

You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the same key material.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetParametersForImport (key policy)

Related operations:

+

Returns the public key and an import token you need to import or reimport key material for a KMS key.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

Before calling GetParametersForImport, use the CreateKey operation with an Origin value of EXTERNAL to create a KMS key with no key material. You can import key material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store. You can also use GetParametersForImport to get a public key and import token to reimport the original key material into a KMS key whose key material expired or was deleted.

GetParametersForImport returns the items that you need to import your key material.

  • The public key (or "wrapping key") of an RSA key pair that KMS generates.

    You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.

  • A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.

The public key and its import token are permanently linked and must be used together. Each public key and import token set is valid for 24 hours. The expiration date and time appear in the ParametersValidTo field in the GetParametersForImport response. You cannot use an expired public key or import token in an ImportKeyMaterial request. If your key and token expire, send another GetParametersForImport request.

GetParametersForImport requires the following information:

  • The key ID of the KMS key for which you are importing the key material.

  • The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.

  • The wrapping algorithm that you will use with the public key to encrypt your key material.

You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the same key material.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetParametersForImport (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GetParametersForImport service method. @@ -816,7 +816,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)getParametersForImport:(AWSKMSGetParametersForImportRequest *)request; /** -

Returns the public key and an import token you need to import or reimport key material for a KMS key.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

Before calling GetParametersForImport, use the CreateKey operation with an Origin value of EXTERNAL to create a KMS key with no key material. You can import key material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store. You can also use GetParametersForImport to get a public key and import token to reimport the original key material into a KMS key whose key material expired or was deleted.

GetParametersForImport returns the items that you need to import your key material.

  • The public key (or "wrapping key") of an RSA key pair that KMS generates.

    You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.

  • A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.

The public key and its import token are permanently linked and must be used together. Each public key and import token set is valid for 24 hours. The expiration date and time appear in the ParametersValidTo field in the GetParametersForImport response. You cannot use an expired public key or import token in an ImportKeyMaterial request. If your key and token expire, send another GetParametersForImport request.

GetParametersForImport requires the following information:

  • The key ID of the KMS key for which you are importing the key material.

  • The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.

  • The wrapping algorithm that you will use with the public key to encrypt your key material.

You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the same key material.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetParametersForImport (key policy)

Related operations:

+

Returns the public key and an import token you need to import or reimport key material for a KMS key.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

Before calling GetParametersForImport, use the CreateKey operation with an Origin value of EXTERNAL to create a KMS key with no key material. You can import key material for a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store. You can also use GetParametersForImport to get a public key and import token to reimport the original key material into a KMS key whose key material expired or was deleted.

GetParametersForImport returns the items that you need to import your key material.

  • The public key (or "wrapping key") of an RSA key pair that KMS generates.

    You will use this public key to encrypt ("wrap") your key material while it's in transit to KMS.

  • A import token that ensures that KMS can decrypt your key material and associate it with the correct KMS key.

The public key and its import token are permanently linked and must be used together. Each public key and import token set is valid for 24 hours. The expiration date and time appear in the ParametersValidTo field in the GetParametersForImport response. You cannot use an expired public key or import token in an ImportKeyMaterial request. If your key and token expire, send another GetParametersForImport request.

GetParametersForImport requires the following information:

  • The key ID of the KMS key for which you are importing the key material.

  • The key spec of the public key ("wrapping key") that you will use to encrypt your key material during import.

  • The wrapping algorithm that you will use with the public key to encrypt your key material.

You can use the same or a different public key spec and wrapping algorithm each time you import or reimport the same key material.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:GetParametersForImport (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GetParametersForImport service method. @param completionHandler The completion handler to call when the load request is complete. @@ -829,7 +829,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)getParametersForImport:(AWSKMSGetParametersForImportRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGetParametersForImportResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS.

To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including:

  • KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521.

  • KeyUsage: Whether the key is used for encryption or signing.

  • EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key.

Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GetPublicKey (key policy)

Related operations: CreateKey

+

Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS.

To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including:

  • KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521.

  • KeyUsage: Whether the key is used for encryption or signing.

  • EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key.

Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GetPublicKey (key policy)

Related operations: CreateKey

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GetPublicKey service method. @@ -841,7 +841,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)getPublicKey:(AWSKMSGetPublicKeyRequest *)request; /** -

Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS.

To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including:

  • KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521.

  • KeyUsage: Whether the key is used for encryption or signing.

  • EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key.

Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GetPublicKey (key policy)

Related operations: CreateKey

+

Returns the public key of an asymmetric KMS key. Unlike the private key of a asymmetric KMS key, which never leaves KMS unencrypted, callers with kms:GetPublicKey permission can download the public key of an asymmetric KMS key. You can share the public key to allow others to encrypt messages and verify signatures outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

You do not need to download the public key. Instead, you can use the public key within KMS by calling the Encrypt, ReEncrypt, or Verify operations with the identifier of an asymmetric KMS key. When you use the public key within KMS, you benefit from the authentication, authorization, and logging that are part of every KMS operation. You also reduce of risk of encrypting data that cannot be decrypted. These features are not effective outside of KMS.

To help you use the public key safely outside of KMS, GetPublicKey returns important information about the public key in the response, including:

  • KeySpec: The type of key material in the public key, such as RSA_4096 or ECC_NIST_P521.

  • KeyUsage: Whether the key is used for encryption or signing.

  • EncryptionAlgorithms or SigningAlgorithms: A list of the encryption algorithms or the signing algorithms for the key.

Although KMS cannot enforce these restrictions on external operations, it is crucial that you use this information to prevent the public key from being used improperly. For example, you can prevent a public signing key from being used encrypt data, or prevent a public key from being used with an encryption algorithm that is not supported by KMS. You can also avoid errors, such as using the wrong signing algorithm in a verification operation.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:GetPublicKey (key policy)

Related operations: CreateKey

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the GetPublicKey service method. @param completionHandler The completion handler to call when the load request is complete. @@ -854,7 +854,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)getPublicKey:(AWSKMSGetPublicKeyRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSGetPublicKeyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Imports or reimports key material into an existing KMS key that was created without key material. ImportKeyMaterial also sets the expiration model and expiration date of the imported key material.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

After you successfully import key material into a KMS key, you can reimport the same key material into that KMS key, but you cannot import different key material. You might reimport key material to replace key material that expired or key material that you deleted. You might also reimport key material to change the expiration model or expiration date of the key material. Before reimporting key material, if necessary, call DeleteImportedKeyMaterial to delete the current imported key material.

Each time you import key material into KMS, you can determine whether (ExpirationModel) and when (ValidTo) the key material expires. To change the expiration of your key material, you must import it again, either by calling ImportKeyMaterial or using the import features of the KMS console.

Before calling ImportKeyMaterial:

  • Create or identify a KMS key with no key material. The KMS key must have an Origin value of EXTERNAL, which indicates that the KMS key is designed for imported key material.

    To create an new KMS key for imported key material, call the CreateKey operation with an Origin value of EXTERNAL. You can create a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store.

  • Use the DescribeKey operation to verify that the KeyState of the KMS key is PendingImport, which indicates that the KMS key has no key material.

    If you are reimporting the same key material into an existing KMS key, you might need to call the DeleteImportedKeyMaterial to delete its existing key material.

  • Call the GetParametersForImport operation to get a public key and import token set for importing key material.

  • Use the public key in the GetParametersForImport response to encrypt your key material.

Then, in an ImportKeyMaterial request, you submit your encrypted key material and import token. When calling this operation, you must specify the following values:

  • The key ID or key ARN of the KMS key to associate with the imported key material. Its Origin must be EXTERNAL and its KeyState must be PendingImport. You cannot perform this operation on a KMS key in a custom key store, or on a KMS key in a different Amazon Web Services account. To get the Origin and KeyState of a KMS key, call DescribeKey.

  • The encrypted key material.

  • The import token that GetParametersForImport returned. You must use a public key and token from the same GetParametersForImport response.

  • Whether the key material expires (ExpirationModel) and, if so, when (ValidTo). For help with this choice, see Setting an expiration time in the Key Management Service Developer Guide.

    If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material. However, you can delete and reimport the key material at any time, including before the key material expires. Each time you reimport, you can eliminate or reset the expiration time.

When this operation is successful, the key state of the KMS key changes from PendingImport to Enabled, and you can use the KMS key in cryptographic operations.

If this operation fails, use the exception to help determine the problem. If the error is related to the key material, the import token, or wrapping key, use GetParametersForImport to get a new public key and import token for the KMS key and repeat the import procedure. For help, see How To Import Key Material in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ImportKeyMaterial (key policy)

Related operations:

+

Imports or reimports key material into an existing KMS key that was created without key material. ImportKeyMaterial also sets the expiration model and expiration date of the imported key material.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

After you successfully import key material into a KMS key, you can reimport the same key material into that KMS key, but you cannot import different key material. You might reimport key material to replace key material that expired or key material that you deleted. You might also reimport key material to change the expiration model or expiration date of the key material. Before reimporting key material, if necessary, call DeleteImportedKeyMaterial to delete the current imported key material.

Each time you import key material into KMS, you can determine whether (ExpirationModel) and when (ValidTo) the key material expires. To change the expiration of your key material, you must import it again, either by calling ImportKeyMaterial or using the import features of the KMS console.

Before calling ImportKeyMaterial:

  • Create or identify a KMS key with no key material. The KMS key must have an Origin value of EXTERNAL, which indicates that the KMS key is designed for imported key material.

    To create an new KMS key for imported key material, call the CreateKey operation with an Origin value of EXTERNAL. You can create a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store.

  • Use the DescribeKey operation to verify that the KeyState of the KMS key is PendingImport, which indicates that the KMS key has no key material.

    If you are reimporting the same key material into an existing KMS key, you might need to call the DeleteImportedKeyMaterial to delete its existing key material.

  • Call the GetParametersForImport operation to get a public key and import token set for importing key material.

  • Use the public key in the GetParametersForImport response to encrypt your key material.

Then, in an ImportKeyMaterial request, you submit your encrypted key material and import token. When calling this operation, you must specify the following values:

  • The key ID or key ARN of the KMS key to associate with the imported key material. Its Origin must be EXTERNAL and its KeyState must be PendingImport. You cannot perform this operation on a KMS key in a custom key store, or on a KMS key in a different Amazon Web Services account. To get the Origin and KeyState of a KMS key, call DescribeKey.

  • The encrypted key material.

  • The import token that GetParametersForImport returned. You must use a public key and token from the same GetParametersForImport response.

  • Whether the key material expires (ExpirationModel) and, if so, when (ValidTo). For help with this choice, see Setting an expiration time in the Key Management Service Developer Guide.

    If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material. However, you can delete and reimport the key material at any time, including before the key material expires. Each time you reimport, you can eliminate or reset the expiration time.

When this operation is successful, the key state of the KMS key changes from PendingImport to Enabled, and you can use the KMS key in cryptographic operations.

If this operation fails, use the exception to help determine the problem. If the error is related to the key material, the import token, or wrapping key, use GetParametersForImport to get a new public key and import token for the KMS key and repeat the import procedure. For help, see How To Import Key Material in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ImportKeyMaterial (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ImportKeyMaterial service method. @@ -866,7 +866,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)importKeyMaterial:(AWSKMSImportKeyMaterialRequest *)request; /** -

Imports or reimports key material into an existing KMS key that was created without key material. ImportKeyMaterial also sets the expiration model and expiration date of the imported key material.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

After you successfully import key material into a KMS key, you can reimport the same key material into that KMS key, but you cannot import different key material. You might reimport key material to replace key material that expired or key material that you deleted. You might also reimport key material to change the expiration model or expiration date of the key material. Before reimporting key material, if necessary, call DeleteImportedKeyMaterial to delete the current imported key material.

Each time you import key material into KMS, you can determine whether (ExpirationModel) and when (ValidTo) the key material expires. To change the expiration of your key material, you must import it again, either by calling ImportKeyMaterial or using the import features of the KMS console.

Before calling ImportKeyMaterial:

  • Create or identify a KMS key with no key material. The KMS key must have an Origin value of EXTERNAL, which indicates that the KMS key is designed for imported key material.

    To create an new KMS key for imported key material, call the CreateKey operation with an Origin value of EXTERNAL. You can create a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store.

  • Use the DescribeKey operation to verify that the KeyState of the KMS key is PendingImport, which indicates that the KMS key has no key material.

    If you are reimporting the same key material into an existing KMS key, you might need to call the DeleteImportedKeyMaterial to delete its existing key material.

  • Call the GetParametersForImport operation to get a public key and import token set for importing key material.

  • Use the public key in the GetParametersForImport response to encrypt your key material.

Then, in an ImportKeyMaterial request, you submit your encrypted key material and import token. When calling this operation, you must specify the following values:

  • The key ID or key ARN of the KMS key to associate with the imported key material. Its Origin must be EXTERNAL and its KeyState must be PendingImport. You cannot perform this operation on a KMS key in a custom key store, or on a KMS key in a different Amazon Web Services account. To get the Origin and KeyState of a KMS key, call DescribeKey.

  • The encrypted key material.

  • The import token that GetParametersForImport returned. You must use a public key and token from the same GetParametersForImport response.

  • Whether the key material expires (ExpirationModel) and, if so, when (ValidTo). For help with this choice, see Setting an expiration time in the Key Management Service Developer Guide.

    If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material. However, you can delete and reimport the key material at any time, including before the key material expires. Each time you reimport, you can eliminate or reset the expiration time.

When this operation is successful, the key state of the KMS key changes from PendingImport to Enabled, and you can use the KMS key in cryptographic operations.

If this operation fails, use the exception to help determine the problem. If the error is related to the key material, the import token, or wrapping key, use GetParametersForImport to get a new public key and import token for the KMS key and repeat the import procedure. For help, see How To Import Key Material in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ImportKeyMaterial (key policy)

Related operations:

+

Imports or reimports key material into an existing KMS key that was created without key material. ImportKeyMaterial also sets the expiration model and expiration date of the imported key material.

By default, KMS keys are created with key material that KMS generates. This operation supports Importing key material, an advanced feature that lets you generate and import the cryptographic key material for a KMS key. For more information about importing key material into KMS, see Importing key material in the Key Management Service Developer Guide.

After you successfully import key material into a KMS key, you can reimport the same key material into that KMS key, but you cannot import different key material. You might reimport key material to replace key material that expired or key material that you deleted. You might also reimport key material to change the expiration model or expiration date of the key material. Before reimporting key material, if necessary, call DeleteImportedKeyMaterial to delete the current imported key material.

Each time you import key material into KMS, you can determine whether (ExpirationModel) and when (ValidTo) the key material expires. To change the expiration of your key material, you must import it again, either by calling ImportKeyMaterial or using the import features of the KMS console.

Before calling ImportKeyMaterial:

  • Create or identify a KMS key with no key material. The KMS key must have an Origin value of EXTERNAL, which indicates that the KMS key is designed for imported key material.

    To create an new KMS key for imported key material, call the CreateKey operation with an Origin value of EXTERNAL. You can create a symmetric encryption KMS key, HMAC KMS key, asymmetric encryption KMS key, or asymmetric signing KMS key. You can also import key material into a multi-Region key of any supported type. However, you can't import key material into a KMS key in a custom key store.

  • Use the DescribeKey operation to verify that the KeyState of the KMS key is PendingImport, which indicates that the KMS key has no key material.

    If you are reimporting the same key material into an existing KMS key, you might need to call the DeleteImportedKeyMaterial to delete its existing key material.

  • Call the GetParametersForImport operation to get a public key and import token set for importing key material.

  • Use the public key in the GetParametersForImport response to encrypt your key material.

Then, in an ImportKeyMaterial request, you submit your encrypted key material and import token. When calling this operation, you must specify the following values:

  • The key ID or key ARN of the KMS key to associate with the imported key material. Its Origin must be EXTERNAL and its KeyState must be PendingImport. You cannot perform this operation on a KMS key in a custom key store, or on a KMS key in a different Amazon Web Services account. To get the Origin and KeyState of a KMS key, call DescribeKey.

  • The encrypted key material.

  • The import token that GetParametersForImport returned. You must use a public key and token from the same GetParametersForImport response.

  • Whether the key material expires (ExpirationModel) and, if so, when (ValidTo). For help with this choice, see Setting an expiration time in the Key Management Service Developer Guide.

    If you set an expiration date, KMS deletes the key material from the KMS key on the specified date, making the KMS key unusable. To use the KMS key in cryptographic operations again, you must reimport the same key material. However, you can delete and reimport the key material at any time, including before the key material expires. Each time you reimport, you can eliminate or reset the expiration time.

When this operation is successful, the key state of the KMS key changes from PendingImport to Enabled, and you can use the KMS key in cryptographic operations.

If this operation fails, use the exception to help determine the problem. If the error is related to the key material, the import token, or wrapping key, use GetParametersForImport to get a new public key and import token for the KMS key and repeat the import procedure. For help, see How To Import Key Material in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ImportKeyMaterial (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ImportKeyMaterial service method. @param completionHandler The completion handler to call when the load request is complete. @@ -879,7 +879,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)importKeyMaterial:(AWSKMSImportKeyMaterialRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSImportKeyMaterialResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about aliases, see CreateAlias.

By default, the ListAliases operation returns all aliases in the account and region. To get only the aliases associated with a particular KMS key, use the KeyId parameter.

The ListAliases response can include aliases that you created and associated with your customer managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys in your account. You can recognize Amazon Web Services aliases because their names have the format aws/<service-name>, such as aws/dynamodb.

The response might also include aliases that have no TargetKeyId field. These are predefined aliases that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services creates in your account, including predefined aliases, do not count against your KMS aliases quota.

Cross-account use: No. ListAliases does not return aliases in other Amazon Web Services accounts.

Required permissions: kms:ListAliases (IAM policy)

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

+

Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about aliases, see CreateAlias.

By default, the ListAliases operation returns all aliases in the account and region. To get only the aliases associated with a particular KMS key, use the KeyId parameter.

The ListAliases response can include aliases that you created and associated with your customer managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys in your account. You can recognize Amazon Web Services aliases because their names have the format aws/<service-name>, such as aws/dynamodb.

The response might also include aliases that have no TargetKeyId field. These are predefined aliases that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services creates in your account, including predefined aliases, do not count against your KMS aliases quota.

Cross-account use: No. ListAliases does not return aliases in other Amazon Web Services accounts.

Required permissions: kms:ListAliases (IAM policy)

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListAliases service method. @@ -891,7 +891,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)listAliases:(AWSKMSListAliasesRequest *)request; /** -

Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about aliases, see CreateAlias.

By default, the ListAliases operation returns all aliases in the account and region. To get only the aliases associated with a particular KMS key, use the KeyId parameter.

The ListAliases response can include aliases that you created and associated with your customer managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys in your account. You can recognize Amazon Web Services aliases because their names have the format aws/<service-name>, such as aws/dynamodb.

The response might also include aliases that have no TargetKeyId field. These are predefined aliases that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services creates in your account, including predefined aliases, do not count against your KMS aliases quota.

Cross-account use: No. ListAliases does not return aliases in other Amazon Web Services accounts.

Required permissions: kms:ListAliases (IAM policy)

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

+

Gets a list of aliases in the caller's Amazon Web Services account and region. For more information about aliases, see CreateAlias.

By default, the ListAliases operation returns all aliases in the account and region. To get only the aliases associated with a particular KMS key, use the KeyId parameter.

The ListAliases response can include aliases that you created and associated with your customer managed keys, and aliases that Amazon Web Services created and associated with Amazon Web Services managed keys in your account. You can recognize Amazon Web Services aliases because their names have the format aws/<service-name>, such as aws/dynamodb.

The response might also include aliases that have no TargetKeyId field. These are predefined aliases that Amazon Web Services has created but has not yet associated with a KMS key. Aliases that Amazon Web Services creates in your account, including predefined aliases, do not count against your KMS aliases quota.

Cross-account use: No. ListAliases does not return aliases in other Amazon Web Services accounts.

Required permissions: kms:ListAliases (IAM policy)

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListAliases service method. @param completionHandler The completion handler to call when the load request is complete. @@ -904,7 +904,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)listAliases:(AWSKMSListAliasesRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSListAliasesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Gets a list of all grants for the specified KMS key.

You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:ListGrants (key policy)

Related operations:

+

Gets a list of all grants for the specified KMS key.

You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:ListGrants (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListGrants service method. @@ -916,7 +916,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)listGrants:(AWSKMSListGrantsRequest *)request; /** -

Gets a list of all grants for the specified KMS key.

You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:ListGrants (key policy)

Related operations:

+

Gets a list of all grants for the specified KMS key.

You must specify the KMS key in all requests. You can filter the grant list by grant ID or grantee principal.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

The GranteePrincipal field in the ListGrants response usually contains the user or role designated as the grantee principal in the grant. However, when the grantee principal in the grant is an Amazon Web Services service, the GranteePrincipal field contains the service principal, which might represent several different grantee principals.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:ListGrants (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListGrants service method. @param completionHandler The completion handler to call when the load request is complete. @@ -929,7 +929,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)listGrants:(AWSKMSListGrantsRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSListGrantsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeyPolicies (key policy)

Related operations:

+

Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeyPolicies (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListKeyPolicies service method. @@ -941,7 +941,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)listKeyPolicies:(AWSKMSListKeyPoliciesRequest *)request; /** -

Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeyPolicies (key policy)

Related operations:

+

Gets the names of the key policies that are attached to a KMS key. This operation is designed to get policy names that you can use in a GetKeyPolicy operation. However, the only valid policy name is default.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeyPolicies (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListKeyPolicies service method. @param completionHandler The completion handler to call when the load request is complete. @@ -954,7 +954,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)listKeyPolicies:(AWSKMSListKeyPoliciesRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSListKeyPoliciesResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeys (IAM policy)

Related operations:

+

Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeys (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListKeys service method. @@ -966,7 +966,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)listKeys:(AWSKMSListKeysRequest *)request; /** -

Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeys (IAM policy)

Related operations:

+

Gets a list of all KMS keys in the caller's Amazon Web Services account and Region.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListKeys (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListKeys service method. @param completionHandler The completion handler to call when the load request is complete. @@ -979,7 +979,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)listKeys:(AWSKMSListKeysRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSListKeysResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Returns all tags on the specified KMS key.

For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. For information about using tags in KMS, see Tagging keys.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListResourceTags (key policy)

Related operations:

+

Returns all tags on the specified KMS key.

For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. For information about using tags in KMS, see Tagging keys.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListResourceTags (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListResourceTags service method. @@ -991,7 +991,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)listResourceTags:(AWSKMSListResourceTagsRequest *)request; /** -

Returns all tags on the specified KMS key.

For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. For information about using tags in KMS, see Tagging keys.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListResourceTags (key policy)

Related operations:

+

Returns all tags on the specified KMS key.

For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. For information about using tags in KMS, see Tagging keys.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ListResourceTags (key policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListResourceTags service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1004,7 +1004,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)listResourceTags:(AWSKMSListResourceTagsRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSListResourceTagsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.

You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: You must specify a principal in your Amazon Web Services account. However, this operation can return grants in any Amazon Web Services account. You do not need kms:ListRetirableGrants permission (or any other additional permission) in any Amazon Web Services account other than your own.

Required permissions: kms:ListRetirableGrants (IAM policy) in your Amazon Web Services account.

Related operations:

+

Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.

You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: You must specify a principal in your Amazon Web Services account. This operation returns a list of grants where the retiring principal specified in the ListRetirableGrants request is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web Services accounts, but you do not need kms:ListRetirableGrants permission (or any other additional permission) in any Amazon Web Services account other than your own.

Required permissions: kms:ListRetirableGrants (IAM policy) in your Amazon Web Services account.

KMS authorizes ListRetirableGrants requests by evaluating the caller account's kms:ListRetirableGrants permissions. The authorized resource in ListRetirableGrants calls is the retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their access to any KMS keys or grants that might be returned by the ListRetirableGrants call.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListRetirableGrants service method. @@ -1016,7 +1016,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)listRetirableGrants:(AWSKMSListRetirableGrantsRequest *)request; /** -

Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.

You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: You must specify a principal in your Amazon Web Services account. However, this operation can return grants in any Amazon Web Services account. You do not need kms:ListRetirableGrants permission (or any other additional permission) in any Amazon Web Services account other than your own.

Required permissions: kms:ListRetirableGrants (IAM policy) in your Amazon Web Services account.

Related operations:

+

Returns information about all grants in the Amazon Web Services account and Region that have the specified retiring principal.

You can specify any principal in your Amazon Web Services account. The grants that are returned include grants for KMS keys in your Amazon Web Services account and other Amazon Web Services accounts. You might use this operation to determine which grants you may retire. To retire a grant, use the RetireGrant operation.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: You must specify a principal in your Amazon Web Services account. This operation returns a list of grants where the retiring principal specified in the ListRetirableGrants request is the same retiring principal on the grant. This can include grants on KMS keys owned by other Amazon Web Services accounts, but you do not need kms:ListRetirableGrants permission (or any other additional permission) in any Amazon Web Services account other than your own.

Required permissions: kms:ListRetirableGrants (IAM policy) in your Amazon Web Services account.

KMS authorizes ListRetirableGrants requests by evaluating the caller account's kms:ListRetirableGrants permissions. The authorized resource in ListRetirableGrants calls is the retiring principal specified in the request. KMS does not evaluate the caller's permissions to verify their access to any KMS keys or grants that might be returned by the ListRetirableGrants call.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ListRetirableGrants service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1029,7 +1029,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)listRetirableGrants:(AWSKMSListRetirableGrantsRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSListGrantsResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Attaches a key policy to the specified KMS key.

For more information about key policies, see Key Policies in the Key Management Service Developer Guide. For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the Identity and Access Management User Guide. For examples of adding a key policy in multiple programming languages, see Setting a key policy in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:PutKeyPolicy (key policy)

Related operations: GetKeyPolicy

+

Attaches a key policy to the specified KMS key.

For more information about key policies, see Key Policies in the Key Management Service Developer Guide. For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the Identity and Access Management User Guide. For examples of adding a key policy in multiple programming languages, see Setting a key policy in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:PutKeyPolicy (key policy)

Related operations: GetKeyPolicy

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the PutKeyPolicy service method. @@ -1040,7 +1040,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)putKeyPolicy:(AWSKMSPutKeyPolicyRequest *)request; /** -

Attaches a key policy to the specified KMS key.

For more information about key policies, see Key Policies in the Key Management Service Developer Guide. For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the Identity and Access Management User Guide. For examples of adding a key policy in multiple programming languages, see Setting a key policy in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:PutKeyPolicy (key policy)

Related operations: GetKeyPolicy

+

Attaches a key policy to the specified KMS key.

For more information about key policies, see Key Policies in the Key Management Service Developer Guide. For help writing and formatting a JSON policy document, see the IAM JSON Policy Reference in the Identity and Access Management User Guide. For examples of adding a key policy in multiple programming languages, see Setting a key policy in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:PutKeyPolicy (key policy)

Related operations: GetKeyPolicy

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key under which data is encrypted, such as when you manually rotate a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt ciphertext under the same KMS key, such as to change the encryption context of a ciphertext.

The ReEncrypt operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS operation, such as Encrypt or GenerateDataKey. It can also decrypt ciphertext that was encrypted by using the public key of an asymmetric KMS key outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

When you use the ReEncrypt operation, you need to provide information for the decrypt operation and the subsequent encrypt operation.

  • If your ciphertext was encrypted under an asymmetric KMS key, you must use the SourceKeyId parameter to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was used. This information is required to decrypt the data.

  • If your ciphertext was encrypted under a symmetric encryption KMS key, the SourceKeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always recommended as a best practice. When you use the SourceKeyId parameter to specify a KMS key, KMS uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the ReEncrypt operation fails. This practice ensures that you use the KMS key that you intend.

  • To reencrypt the data, you must use the DestinationKeyId parameter to specify the KMS key that re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.

    When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

    You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, you must use its key ARN or alias ARN.

Required permissions:

To permit reencryption from or to a KMS key, include the "kms:ReEncrypt*" permission in your key policy. This permission is automatically included in the key policy when you use the console to create a KMS key. But you must include it manually when you create a KMS key programmatically or when you use the PutKeyPolicy operation to set a key policy.

Related operations:

+

Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key under which data is encrypted, such as when you manually rotate a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt ciphertext under the same KMS key, such as to change the encryption context of a ciphertext.

The ReEncrypt operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS operation, such as Encrypt or GenerateDataKey. It can also decrypt ciphertext that was encrypted by using the public key of an asymmetric KMS key outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

When you use the ReEncrypt operation, you need to provide information for the decrypt operation and the subsequent encrypt operation.

  • If your ciphertext was encrypted under an asymmetric KMS key, you must use the SourceKeyId parameter to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was used. This information is required to decrypt the data.

  • If your ciphertext was encrypted under a symmetric encryption KMS key, the SourceKeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always recommended as a best practice. When you use the SourceKeyId parameter to specify a KMS key, KMS uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the ReEncrypt operation fails. This practice ensures that you use the KMS key that you intend.

  • To reencrypt the data, you must use the DestinationKeyId parameter to specify the KMS key that re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.

    When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

    You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, you must use its key ARN or alias ARN.

Required permissions:

To permit reencryption from or to a KMS key, include the "kms:ReEncrypt*" permission in your key policy. This permission is automatically included in the key policy when you use the console to create a KMS key. But you must include it manually when you create a KMS key programmatically or when you use the PutKeyPolicy operation to set a key policy.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ReEncrypt service method. @@ -1063,7 +1063,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)reEncrypt:(AWSKMSReEncryptRequest *)request; /** -

Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key under which data is encrypted, such as when you manually rotate a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt ciphertext under the same KMS key, such as to change the encryption context of a ciphertext.

The ReEncrypt operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS operation, such as Encrypt or GenerateDataKey. It can also decrypt ciphertext that was encrypted by using the public key of an asymmetric KMS key outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

When you use the ReEncrypt operation, you need to provide information for the decrypt operation and the subsequent encrypt operation.

  • If your ciphertext was encrypted under an asymmetric KMS key, you must use the SourceKeyId parameter to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was used. This information is required to decrypt the data.

  • If your ciphertext was encrypted under a symmetric encryption KMS key, the SourceKeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always recommended as a best practice. When you use the SourceKeyId parameter to specify a KMS key, KMS uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the ReEncrypt operation fails. This practice ensures that you use the KMS key that you intend.

  • To reencrypt the data, you must use the DestinationKeyId parameter to specify the KMS key that re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.

    When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

    You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, you must use its key ARN or alias ARN.

Required permissions:

To permit reencryption from or to a KMS key, include the "kms:ReEncrypt*" permission in your key policy. This permission is automatically included in the key policy when you use the console to create a KMS key. But you must include it manually when you create a KMS key programmatically or when you use the PutKeyPolicy operation to set a key policy.

Related operations:

+

Decrypts ciphertext and then reencrypts it entirely within KMS. You can use this operation to change the KMS key under which data is encrypted, such as when you manually rotate a KMS key or change the KMS key that protects a ciphertext. You can also use it to reencrypt ciphertext under the same KMS key, such as to change the encryption context of a ciphertext.

The ReEncrypt operation can decrypt ciphertext that was encrypted by using a KMS key in an KMS operation, such as Encrypt or GenerateDataKey. It can also decrypt ciphertext that was encrypted by using the public key of an asymmetric KMS key outside of KMS. However, it cannot decrypt ciphertext produced by other libraries, such as the Amazon Web Services Encryption SDK or Amazon S3 client-side encryption. These libraries return a ciphertext format that is incompatible with KMS.

When you use the ReEncrypt operation, you need to provide information for the decrypt operation and the subsequent encrypt operation.

  • If your ciphertext was encrypted under an asymmetric KMS key, you must use the SourceKeyId parameter to identify the KMS key that encrypted the ciphertext. You must also supply the encryption algorithm that was used. This information is required to decrypt the data.

  • If your ciphertext was encrypted under a symmetric encryption KMS key, the SourceKeyId parameter is optional. KMS can get this information from metadata that it adds to the symmetric ciphertext blob. This feature adds durability to your implementation by ensuring that authorized users can decrypt ciphertext decades after it was encrypted, even if they've lost track of the key ID. However, specifying the source KMS key is always recommended as a best practice. When you use the SourceKeyId parameter to specify a KMS key, KMS uses only the KMS key you specify. If the ciphertext was encrypted under a different KMS key, the ReEncrypt operation fails. This practice ensures that you use the KMS key that you intend.

  • To reencrypt the data, you must use the DestinationKeyId parameter to specify the KMS key that re-encrypts the data after it is decrypted. If the destination KMS key is an asymmetric KMS key, you must also provide the encryption algorithm. The algorithm that you choose must be compatible with the KMS key.

    When you use an asymmetric KMS key to encrypt or reencrypt data, be sure to record the KMS key and encryption algorithm that you choose. You will be required to provide the same KMS key and encryption algorithm when you decrypt the data. If the KMS key and algorithm do not match the values used to encrypt the data, the decrypt operation fails.

    You are not required to supply the key ID and encryption algorithm when you decrypt with symmetric encryption KMS keys because KMS stores this information in the ciphertext blob. KMS cannot store metadata in ciphertext generated with asymmetric keys. The standard format for asymmetric key ciphertext does not include configurable fields.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. The source KMS key and destination KMS key can be in different Amazon Web Services accounts. Either or both KMS keys can be in a different account than the caller. To specify a KMS key in a different account, you must use its key ARN or alias ARN.

Required permissions:

To permit reencryption from or to a KMS key, include the "kms:ReEncrypt*" permission in your key policy. This permission is automatically included in the key policy when you use the console to create a KMS key. But you must include it manually when you create a KMS key programmatically or when you use the PutKeyPolicy operation to set a key policy.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ReEncrypt service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1076,7 +1076,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)reEncrypt:(AWSKMSReEncryptRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSReEncryptResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key, use the CreateKey operation.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

A replica key is a fully-functional KMS key that can be used independently of its primary and peer replica keys. A primary key and its replica keys share properties that make them interoperable. They have the same key ID and key material. They also have the same key spec, key usage, key material origin, and automatic key rotation status. KMS automatically synchronizes these shared properties among related multi-Region keys. All other properties of a replica key can differ, including its key policy, tags, aliases, and Key states of KMS keys. KMS pricing and quotas for KMS keys apply to each primary key and replica key.

When this operation completes, the new replica key has a transient key state of Creating. This key state changes to Enabled (or PendingImport) after a few seconds when the process of creating the new replica key is complete. While the key state is Creating, you can manage key, but you cannot yet use it in cryptographic operations. If you are creating and using the replica key programmatically, retry on KMSInvalidStateException or call DescribeKey to check its KeyState value before using it. For details about the Creating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica of the key you're trying to replicate, ReplicateKey returns an AlreadyExistsException error. If the key state of the existing replica is PendingDeletion, you can cancel the scheduled key deletion (CancelKeyDeletion) or wait for the key to be deleted. The new replica key you create will have the same shared properties as the original replica key.

The CloudTrail log of a ReplicateKey operation records a ReplicateKey operation in the primary key's Region and a CreateKey operation in the replica key's Region.

If you replicate a multi-Region primary key with imported key material, the replica key is created with no key material. You must import the same key material that you imported into the primary key. For details, see Importing key material into multi-Region keys in the Key Management Service Developer Guide.

To convert a replica key to a primary key, use the UpdatePrimaryRegion operation.

ReplicateKey uses different default values for the KeyPolicy and Tags parameters than those used in the KMS console. For details, see the parameter descriptions.

Cross-account use: No. You cannot use this operation to create a replica key in a different Amazon Web Services account.

Required permissions:

  • kms:ReplicateKey on the primary key (in the primary key's Region). Include this permission in the primary key's key policy.

  • kms:CreateKey in an IAM policy in the replica Region.

  • To use the Tags parameter, kms:TagResource in an IAM policy in the replica Region.

Related operations

+

Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key, use the CreateKey operation.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

A replica key is a fully-functional KMS key that can be used independently of its primary and peer replica keys. A primary key and its replica keys share properties that make them interoperable. They have the same key ID and key material. They also have the same key spec, key usage, key material origin, and automatic key rotation status. KMS automatically synchronizes these shared properties among related multi-Region keys. All other properties of a replica key can differ, including its key policy, tags, aliases, and Key states of KMS keys. KMS pricing and quotas for KMS keys apply to each primary key and replica key.

When this operation completes, the new replica key has a transient key state of Creating. This key state changes to Enabled (or PendingImport) after a few seconds when the process of creating the new replica key is complete. While the key state is Creating, you can manage key, but you cannot yet use it in cryptographic operations. If you are creating and using the replica key programmatically, retry on KMSInvalidStateException or call DescribeKey to check its KeyState value before using it. For details about the Creating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica of the key you're trying to replicate, ReplicateKey returns an AlreadyExistsException error. If the key state of the existing replica is PendingDeletion, you can cancel the scheduled key deletion (CancelKeyDeletion) or wait for the key to be deleted. The new replica key you create will have the same shared properties as the original replica key.

The CloudTrail log of a ReplicateKey operation records a ReplicateKey operation in the primary key's Region and a CreateKey operation in the replica key's Region.

If you replicate a multi-Region primary key with imported key material, the replica key is created with no key material. You must import the same key material that you imported into the primary key. For details, see Importing key material into multi-Region keys in the Key Management Service Developer Guide.

To convert a replica key to a primary key, use the UpdatePrimaryRegion operation.

ReplicateKey uses different default values for the KeyPolicy and Tags parameters than those used in the KMS console. For details, see the parameter descriptions.

Cross-account use: No. You cannot use this operation to create a replica key in a different Amazon Web Services account.

Required permissions:

  • kms:ReplicateKey on the primary key (in the primary key's Region). Include this permission in the primary key's key policy.

  • kms:CreateKey in an IAM policy in the replica Region.

  • To use the Tags parameter, kms:TagResource in an IAM policy in the replica Region.

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ReplicateKey service method. @@ -1088,7 +1088,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)replicateKey:(AWSKMSReplicateKeyRequest *)request; /** -

Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key, use the CreateKey operation.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

A replica key is a fully-functional KMS key that can be used independently of its primary and peer replica keys. A primary key and its replica keys share properties that make them interoperable. They have the same key ID and key material. They also have the same key spec, key usage, key material origin, and automatic key rotation status. KMS automatically synchronizes these shared properties among related multi-Region keys. All other properties of a replica key can differ, including its key policy, tags, aliases, and Key states of KMS keys. KMS pricing and quotas for KMS keys apply to each primary key and replica key.

When this operation completes, the new replica key has a transient key state of Creating. This key state changes to Enabled (or PendingImport) after a few seconds when the process of creating the new replica key is complete. While the key state is Creating, you can manage key, but you cannot yet use it in cryptographic operations. If you are creating and using the replica key programmatically, retry on KMSInvalidStateException or call DescribeKey to check its KeyState value before using it. For details about the Creating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica of the key you're trying to replicate, ReplicateKey returns an AlreadyExistsException error. If the key state of the existing replica is PendingDeletion, you can cancel the scheduled key deletion (CancelKeyDeletion) or wait for the key to be deleted. The new replica key you create will have the same shared properties as the original replica key.

The CloudTrail log of a ReplicateKey operation records a ReplicateKey operation in the primary key's Region and a CreateKey operation in the replica key's Region.

If you replicate a multi-Region primary key with imported key material, the replica key is created with no key material. You must import the same key material that you imported into the primary key. For details, see Importing key material into multi-Region keys in the Key Management Service Developer Guide.

To convert a replica key to a primary key, use the UpdatePrimaryRegion operation.

ReplicateKey uses different default values for the KeyPolicy and Tags parameters than those used in the KMS console. For details, see the parameter descriptions.

Cross-account use: No. You cannot use this operation to create a replica key in a different Amazon Web Services account.

Required permissions:

  • kms:ReplicateKey on the primary key (in the primary key's Region). Include this permission in the primary key's key policy.

  • kms:CreateKey in an IAM policy in the replica Region.

  • To use the Tags parameter, kms:TagResource in an IAM policy in the replica Region.

Related operations

+

Replicates a multi-Region key into the specified Region. This operation creates a multi-Region replica key based on a multi-Region primary key in a different Region of the same Amazon Web Services partition. You can create multiple replicas of a primary key, but each must be in a different Region. To create a multi-Region primary key, use the CreateKey operation.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

A replica key is a fully-functional KMS key that can be used independently of its primary and peer replica keys. A primary key and its replica keys share properties that make them interoperable. They have the same key ID and key material. They also have the same key spec, key usage, key material origin, and automatic key rotation status. KMS automatically synchronizes these shared properties among related multi-Region keys. All other properties of a replica key can differ, including its key policy, tags, aliases, and Key states of KMS keys. KMS pricing and quotas for KMS keys apply to each primary key and replica key.

When this operation completes, the new replica key has a transient key state of Creating. This key state changes to Enabled (or PendingImport) after a few seconds when the process of creating the new replica key is complete. While the key state is Creating, you can manage key, but you cannot yet use it in cryptographic operations. If you are creating and using the replica key programmatically, retry on KMSInvalidStateException or call DescribeKey to check its KeyState value before using it. For details about the Creating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

You cannot create more than one replica of a primary key in any Region. If the Region already includes a replica of the key you're trying to replicate, ReplicateKey returns an AlreadyExistsException error. If the key state of the existing replica is PendingDeletion, you can cancel the scheduled key deletion (CancelKeyDeletion) or wait for the key to be deleted. The new replica key you create will have the same shared properties as the original replica key.

The CloudTrail log of a ReplicateKey operation records a ReplicateKey operation in the primary key's Region and a CreateKey operation in the replica key's Region.

If you replicate a multi-Region primary key with imported key material, the replica key is created with no key material. You must import the same key material that you imported into the primary key. For details, see Importing key material into multi-Region keys in the Key Management Service Developer Guide.

To convert a replica key to a primary key, use the UpdatePrimaryRegion operation.

ReplicateKey uses different default values for the KeyPolicy and Tags parameters than those used in the KMS console. For details, see the parameter descriptions.

Cross-account use: No. You cannot use this operation to create a replica key in a different Amazon Web Services account.

Required permissions:

  • kms:ReplicateKey on the primary key (in the primary key's Region). Include this permission in the primary key's key policy.

  • kms:CreateKey in an IAM policy in the replica Region.

  • To use the Tags parameter, kms:TagResource in an IAM policy in the replica Region.

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ReplicateKey service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1101,7 +1101,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)replicateKey:(AWSKMSReplicateKeyRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSReplicateKeyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to retire, use a grant token, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The CreateGrant operation returns both values.

This operation can be called by the retiring principal for a grant, by the grantee principal if the grant allows the RetireGrant operation, and by the Amazon Web Services account in which the grant is created. It can also be called by principals to whom permission for retiring a grant is delegated. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.

Required permissions::Permission to retire a grant is determined primarily by the grant. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

Related operations:

+

Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to retire, use a grant token, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The CreateGrant operation returns both values.

This operation can be called by the retiring principal for a grant, by the grantee principal if the grant allows the RetireGrant operation, and by the Amazon Web Services account in which the grant is created. It can also be called by principals to whom permission for retiring a grant is delegated. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.

Required permissions: Permission to retire a grant is determined primarily by the grant. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the RetireGrant service method. @@ -1112,7 +1112,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)retireGrant:(AWSKMSRetireGrantRequest *)request; /** -

Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to retire, use a grant token, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The CreateGrant operation returns both values.

This operation can be called by the retiring principal for a grant, by the grantee principal if the grant allows the RetireGrant operation, and by the Amazon Web Services account in which the grant is created. It can also be called by principals to whom permission for retiring a grant is delegated. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.

Required permissions::Permission to retire a grant is determined primarily by the grant. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

Related operations:

+

Deletes a grant. Typically, you retire a grant when you no longer need its permissions. To identify the grant to retire, use a grant token, or both the grant ID and a key identifier (key ID or key ARN) of the KMS key. The CreateGrant operation returns both values.

This operation can be called by the retiring principal for a grant, by the grantee principal if the grant allows the RetireGrant operation, and by the Amazon Web Services account in which the grant is created. It can also be called by principals to whom permission for retiring a grant is delegated. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. You can retire a grant on a KMS key in a different Amazon Web Services account.

Required permissions: Permission to retire a grant is determined primarily by the grant. For details, see Retiring and revoking grants in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more information, see Retiring and revoking grants in the Key Management Service Developer Guide.

When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. For details, see Eventual consistency in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:RevokeGrant (key policy).

Related operations:

+

Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more information, see Retiring and revoking grants in the Key Management Service Developer Guide.

When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. For details, see Eventual consistency in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:RevokeGrant (key policy).

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the RevokeGrant service method. @@ -1134,7 +1134,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)revokeGrant:(AWSKMSRevokeGrantRequest *)request; /** -

Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more information, see Retiring and revoking grants in the Key Management Service Developer Guide.

When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. For details, see Eventual consistency in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:RevokeGrant (key policy).

Related operations:

+

Deletes the specified grant. You revoke a grant to terminate the permissions that the grant allows. For more information, see Retiring and revoking grants in the Key Management Service Developer Guide.

When you create, retire, or revoke a grant, there might be a brief delay, usually less than five minutes, until the grant is available throughout KMS. This state is known as eventual consistency. For details, see Eventual consistency in the Key Management Service Developer Guide.

For detailed information about grants, including grant terminology, see Grants in KMS in the Key Management Service Developer Guide. For examples of working with grants in several programming languages, see Programming grants.

Cross-account use: Yes. To perform this operation on a KMS key in a different Amazon Web Services account, specify the key ARN in the value of the KeyId parameter.

Required permissions: kms:RevokeGrant (key policy).

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to PendingDeletion and the key can't be used in any cryptographic operations. It remains in this state for the duration of the waiting period. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and all KMS data associated with it, including all aliases that refer to it.

Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is a multi-Region replica key, or an asymmetric or HMAC KMS key with imported key material.) To prevent the use of a KMS key without deleting it, use DisableKey.

You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key with replicas, its key state changes to PendingReplicaDeletion and it cannot be replicated or used in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted (not just scheduled), the key state of the primary key changes to PendingDeletion and its waiting period (PendingWindowInDays) begins. For details, see Deleting multi-Region keys in the Key Management Service Developer Guide.

When KMS deletes a KMS key from an CloudHSM key store, it makes a best effort to delete the associated key material from the associated CloudHSM cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. Deleting a KMS key from an external key store has no effect on the associated external key. However, for both types of custom key stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external key store by creating a new KMS key with the same key material.

For more information about scheduling a KMS key for deletion, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ScheduleKeyDeletion (key policy)

Related operations

+

Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to PendingDeletion and the key can't be used in any cryptographic operations. It remains in this state for the duration of the waiting period. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and all KMS data associated with it, including all aliases that refer to it.

Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is a multi-Region replica key, or an asymmetric or HMAC KMS key with imported key material.) To prevent the use of a KMS key without deleting it, use DisableKey.

You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key with replicas, its key state changes to PendingReplicaDeletion and it cannot be replicated or used in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted (not just scheduled), the key state of the primary key changes to PendingDeletion and its waiting period (PendingWindowInDays) begins. For details, see Deleting multi-Region keys in the Key Management Service Developer Guide.

When KMS deletes a KMS key from an CloudHSM key store, it makes a best effort to delete the associated key material from the associated CloudHSM cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. Deleting a KMS key from an external key store has no effect on the associated external key. However, for both types of custom key stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external key store by creating a new KMS key with the same key material.

For more information about scheduling a KMS key for deletion, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ScheduleKeyDeletion (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ScheduleKeyDeletion service method. @@ -1157,7 +1157,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)scheduleKeyDeletion:(AWSKMSScheduleKeyDeletionRequest *)request; /** -

Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to PendingDeletion and the key can't be used in any cryptographic operations. It remains in this state for the duration of the waiting period. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and all KMS data associated with it, including all aliases that refer to it.

Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is a multi-Region replica key, or an asymmetric or HMAC KMS key with imported key material.) To prevent the use of a KMS key without deleting it, use DisableKey.

You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key with replicas, its key state changes to PendingReplicaDeletion and it cannot be replicated or used in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted (not just scheduled), the key state of the primary key changes to PendingDeletion and its waiting period (PendingWindowInDays) begins. For details, see Deleting multi-Region keys in the Key Management Service Developer Guide.

When KMS deletes a KMS key from an CloudHSM key store, it makes a best effort to delete the associated key material from the associated CloudHSM cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. Deleting a KMS key from an external key store has no effect on the associated external key. However, for both types of custom key stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external key store by creating a new KMS key with the same key material.

For more information about scheduling a KMS key for deletion, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ScheduleKeyDeletion (key policy)

Related operations

+

Schedules the deletion of a KMS key. By default, KMS applies a waiting period of 30 days, but you can specify a waiting period of 7-30 days. When this operation is successful, the key state of the KMS key changes to PendingDeletion and the key can't be used in any cryptographic operations. It remains in this state for the duration of the waiting period. Before the waiting period ends, you can use CancelKeyDeletion to cancel the deletion of the KMS key. After the waiting period ends, KMS deletes the KMS key, its key material, and all KMS data associated with it, including all aliases that refer to it.

Deleting a KMS key is a destructive and potentially dangerous operation. When a KMS key is deleted, all data that was encrypted under the KMS key is unrecoverable. (The only exception is a multi-Region replica key, or an asymmetric or HMAC KMS key with imported key material.) To prevent the use of a KMS key without deleting it, use DisableKey.

You can schedule the deletion of a multi-Region primary key and its replica keys at any time. However, KMS will not delete a multi-Region primary key with existing replica keys. If you schedule the deletion of a primary key with replicas, its key state changes to PendingReplicaDeletion and it cannot be replicated or used in cryptographic operations. This status can continue indefinitely. When the last of its replicas keys is deleted (not just scheduled), the key state of the primary key changes to PendingDeletion and its waiting period (PendingWindowInDays) begins. For details, see Deleting multi-Region keys in the Key Management Service Developer Guide.

When KMS deletes a KMS key from an CloudHSM key store, it makes a best effort to delete the associated key material from the associated CloudHSM cluster. However, you might need to manually delete the orphaned key material from the cluster and its backups. Deleting a KMS key from an external key store has no effect on the associated external key. However, for both types of custom key stores, deleting a KMS key is destructive and irreversible. You cannot decrypt ciphertext encrypted under the KMS key by using only its associated external key or CloudHSM key. Also, you cannot recreate a KMS key in an external key store by creating a new KMS key with the same key material.

For more information about scheduling a KMS key for deletion, see Deleting KMS keys in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:ScheduleKeyDeletion (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the ScheduleKeyDeletion service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1170,7 +1170,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)scheduleKeyDeletion:(AWSKMSScheduleKeyDeletionRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSScheduleKeyDeletionResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Creates a digital signature for a message or message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the Verify operation, or use the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a message. Anyone with the public key can verify that the message was signed with that particular private key and that the message hasn't changed since it was signed.

To use the Sign operation, provide the following information:

  • Use the KeyId parameter to identify an asymmetric KMS key with a KeyUsage value of SIGN_VERIFY. To get the KeyUsage value of a KMS key, use the DescribeKey operation. The caller must have kms:Sign permission on the KMS key.

  • Use the Message parameter to specify the message or message digest to sign. You can submit messages of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash digest in the Message parameter. To indicate whether the message is a full message or a digest, use the MessageType parameter.

  • Choose a signing algorithm that is compatible with the KMS key.

When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to verify the signature.

Best practices recommend that you limit the time during which any signature is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect when its time to refresh the signature.

To verify the signature that this operation generates, use the Verify operation. Or use the GetPublicKey operation to download the public key and then use the public key to verify the signature outside of KMS.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Sign (key policy)

Related operations: Verify

+

Creates a digital signature for a message or message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the Verify operation, or use the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a message. Anyone with the public key can verify that the message was signed with that particular private key and that the message hasn't changed since it was signed.

To use the Sign operation, provide the following information:

  • Use the KeyId parameter to identify an asymmetric KMS key with a KeyUsage value of SIGN_VERIFY. To get the KeyUsage value of a KMS key, use the DescribeKey operation. The caller must have kms:Sign permission on the KMS key.

  • Use the Message parameter to specify the message or message digest to sign. You can submit messages of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash digest in the Message parameter. To indicate whether the message is a full message or a digest, use the MessageType parameter.

  • Choose a signing algorithm that is compatible with the KMS key.

When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to verify the signature.

Best practices recommend that you limit the time during which any signature is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect when its time to refresh the signature.

To verify the signature that this operation generates, use the Verify operation. Or use the GetPublicKey operation to download the public key and then use the public key to verify the signature outside of KMS.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Sign (key policy)

Related operations: Verify

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the Sign service method. @@ -1182,7 +1182,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)sign:(AWSKMSSignRequest *)request; /** -

Creates a digital signature for a message or message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the Verify operation, or use the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a message. Anyone with the public key can verify that the message was signed with that particular private key and that the message hasn't changed since it was signed.

To use the Sign operation, provide the following information:

  • Use the KeyId parameter to identify an asymmetric KMS key with a KeyUsage value of SIGN_VERIFY. To get the KeyUsage value of a KMS key, use the DescribeKey operation. The caller must have kms:Sign permission on the KMS key.

  • Use the Message parameter to specify the message or message digest to sign. You can submit messages of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash digest in the Message parameter. To indicate whether the message is a full message or a digest, use the MessageType parameter.

  • Choose a signing algorithm that is compatible with the KMS key.

When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to verify the signature.

Best practices recommend that you limit the time during which any signature is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect when its time to refresh the signature.

To verify the signature that this operation generates, use the Verify operation. Or use the GetPublicKey operation to download the public key and then use the public key to verify the signature outside of KMS.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Sign (key policy)

Related operations: Verify

+

Creates a digital signature for a message or message digest by using the private key in an asymmetric signing KMS key. To verify the signature, use the Verify operation, or use the public key in the same asymmetric KMS key outside of KMS. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

Digital signatures are generated and verified by using asymmetric key pair, such as an RSA or ECC pair that is represented by an asymmetric KMS key. The key owner (or an authorized user) uses their private key to sign a message. Anyone with the public key can verify that the message was signed with that particular private key and that the message hasn't changed since it was signed.

To use the Sign operation, provide the following information:

  • Use the KeyId parameter to identify an asymmetric KMS key with a KeyUsage value of SIGN_VERIFY. To get the KeyUsage value of a KMS key, use the DescribeKey operation. The caller must have kms:Sign permission on the KMS key.

  • Use the Message parameter to specify the message or message digest to sign. You can submit messages of up to 4096 bytes. To sign a larger message, generate a hash digest of the message, and then provide the hash digest in the Message parameter. To indicate whether the message is a full message or a digest, use the MessageType parameter.

  • Choose a signing algorithm that is compatible with the KMS key.

When signing a message, be sure to record the KMS key and the signing algorithm. This information is required to verify the signature.

Best practices recommend that you limit the time during which any signature is effective. This deters an attack where the actor uses a signed message to establish validity repeatedly or long after the message is superseded. Signatures do not include a timestamp, but you can include a timestamp in the signed message to help you detect when its time to refresh the signature.

To verify the signature that this operation generates, use the Verify operation. Or use the GetPublicKey operation to download the public key and then use the public key to verify the signature outside of KMS.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Sign (key policy)

Related operations: Verify

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the Sign service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1195,7 +1195,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)sign:(AWSKMSSignRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSSignResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Adds or edits tags on a customer managed key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

You can use this operation to tag a customer managed key, but you cannot tag an Amazon Web Services managed key, an Amazon Web Services owned key, a custom key store, or an alias.

You can also add tags to a KMS key while creating it (CreateKey) or replicating it (ReplicateKey).

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:TagResource (key policy)

Related operations

+

Adds or edits tags on a customer managed key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

You can use this operation to tag a customer managed key, but you cannot tag an Amazon Web Services managed key, an Amazon Web Services owned key, a custom key store, or an alias.

You can also add tags to a KMS key while creating it (CreateKey) or replicating it (ReplicateKey).

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:TagResource (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the TagResource service method. @@ -1206,7 +1206,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)tagResource:(AWSKMSTagResourceRequest *)request; /** -

Adds or edits tags on a customer managed key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

You can use this operation to tag a customer managed key, but you cannot tag an Amazon Web Services managed key, an Amazon Web Services owned key, a custom key store, or an alias.

You can also add tags to a KMS key while creating it (CreateKey) or replicating it (ReplicateKey).

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:TagResource (key policy)

Related operations

+

Adds or edits tags on a customer managed key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value.

You can use this operation to tag a customer managed key, but you cannot tag an Amazon Web Services managed key, an Amazon Web Services owned key, a custom key store, or an alias.

You can also add tags to a KMS key while creating it (CreateKey) or replicating it (ReplicateKey).

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:TagResource (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Deletes tags from a customer managed key. To delete a tag, specify the tag key and the KMS key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

When it succeeds, the UntagResource operation doesn't return any output. Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation worked, use the ListResourceTags operation.

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UntagResource (key policy)

Related operations

+

Deletes tags from a customer managed key. To delete a tag, specify the tag key and the KMS key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

When it succeeds, the UntagResource operation doesn't return any output. Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation worked, use the ListResourceTags operation.

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UntagResource (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the UntagResource service method. @@ -1228,7 +1228,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)untagResource:(AWSKMSUntagResourceRequest *)request; /** -

Deletes tags from a customer managed key. To delete a tag, specify the tag key and the KMS key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

When it succeeds, the UntagResource operation doesn't return any output. Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation worked, use the ListResourceTags operation.

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UntagResource (key policy)

Related operations

+

Deletes tags from a customer managed key. To delete a tag, specify the tag key and the KMS key.

Tagging or untagging a KMS key can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

When it succeeds, the UntagResource operation doesn't return any output. Also, if the specified tag key isn't found on the KMS key, it doesn't throw an exception or return a response. To confirm that the operation worked, use the ListResourceTags operation.

For information about using tags in KMS, see Tagging keys. For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UntagResource (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web Services account and Region.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias to a different type of KMS key, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

You cannot use UpdateAlias to change an alias name. To change an alias name, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys in the account, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

+

Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web Services account and Region.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias to a different type of KMS key, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

You cannot use UpdateAlias to change an alias name. To change an alias name, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys in the account, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the UpdateAlias service method. @@ -1250,7 +1250,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)updateAlias:(AWSKMSUpdateAliasRequest *)request; /** -

Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web Services account and Region.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias to a different type of KMS key, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

You cannot use UpdateAlias to change an alias name. To change an alias name, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys in the account, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

+

Associates an existing KMS alias with a different KMS key. Each alias is associated with only one KMS key at a time, although a KMS key can have multiple aliases. The alias and the KMS key must be in the same Amazon Web Services account and Region.

Adding, deleting, or updating an alias can allow or deny permission to the KMS key. For details, see ABAC for KMS in the Key Management Service Developer Guide.

The current and new KMS key must be the same type (both symmetric or both asymmetric or both HMAC), and they must have the same key usage. This restriction prevents errors in code that uses aliases. If you must assign an alias to a different type of KMS key, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

You cannot use UpdateAlias to change an alias name. To change an alias name, use DeleteAlias to delete the old alias and CreateAlias to create a new alias.

Because an alias is not a property of a KMS key, you can create, update, and delete the aliases of a KMS key without affecting the KMS key. Also, aliases do not appear in the response from the DescribeKey operation. To get the aliases of all KMS keys in the account, use the ListAliases operation.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions

For details, see Controlling access to aliases in the Key Management Service Developer Guide.

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM key store or an external key store.

Use the required CustomKeyStoreId parameter to identify the custom key store. Use the remaining optional parameters to change its properties. This operation does not return any property values. To verify the updated property values, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

When updating the properties of an external key store, verify that the updated settings connect your key store, via the external key store proxy, to the same external key manager as the previous settings, or to a backup or snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail, you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.

For external key stores:

Some external key managers provide a simpler method for updating an external key store. For details, see your external key manager documentation.

When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot upload the proxy configuration file to the UpdateCustomKeyStore operation. However, you can use the file to help you determine the correct values for the UpdateCustomKeyStore parameters.

For an CloudHSM key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), to tell KMS about a change to the kmsuser crypto user password (KeyStorePassword), or to associate the custom key store with a different, but related, CloudHSM cluster (CloudHsmClusterId). To update any property of an CloudHSM key store, the ConnectionState of the CloudHSM key store must be DISCONNECTED.

For an external key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), or to tell KMS about a change to the external key store proxy authentication credentials (XksProxyAuthenticationCredential), connection method (XksProxyConnectivity), external proxy endpoint (XksProxyUriEndpoint) and path (XksProxyUriPath). For external key stores with an XksProxyConnectivity of VPC_ENDPOINT_SERVICE, you can also update the Amazon VPC endpoint service name (XksProxyVpcEndpointServiceName). To update most properties of an external key store, the ConnectionState of the external key store must be DISCONNECTED. However, you can update the CustomKeyStoreName, XksProxyAuthenticationCredential, and XksProxyUriPath of an external key store when it is in the CONNECTED or DISCONNECTED state.

If your update requires a DISCONNECTED state, before using UpdateCustomKeyStore, use the DisconnectCustomKeyStore operation to disconnect the custom key store. After the UpdateCustomKeyStore operation completes, use the ConnectCustomKeyStore to reconnect the custom key store. To find the ConnectionState of the custom key store, use the DescribeCustomKeyStores operation.

Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its backing key store. For example, before you change the XksProxyUriPath value, verify that the external key store proxy is reachable at the new path.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:UpdateCustomKeyStore (IAM policy)

Related operations:

+

Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM key store or an external key store.

Use the required CustomKeyStoreId parameter to identify the custom key store. Use the remaining optional parameters to change its properties. This operation does not return any property values. To verify the updated property values, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

When updating the properties of an external key store, verify that the updated settings connect your key store, via the external key store proxy, to the same external key manager as the previous settings, or to a backup or snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail, you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.

For external key stores:

Some external key managers provide a simpler method for updating an external key store. For details, see your external key manager documentation.

When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot upload the proxy configuration file to the UpdateCustomKeyStore operation. However, you can use the file to help you determine the correct values for the UpdateCustomKeyStore parameters.

For an CloudHSM key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), to tell KMS about a change to the kmsuser crypto user password (KeyStorePassword), or to associate the custom key store with a different, but related, CloudHSM cluster (CloudHsmClusterId). To update any property of an CloudHSM key store, the ConnectionState of the CloudHSM key store must be DISCONNECTED.

For an external key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), or to tell KMS about a change to the external key store proxy authentication credentials (XksProxyAuthenticationCredential), connection method (XksProxyConnectivity), external proxy endpoint (XksProxyUriEndpoint) and path (XksProxyUriPath). For external key stores with an XksProxyConnectivity of VPC_ENDPOINT_SERVICE, you can also update the Amazon VPC endpoint service name (XksProxyVpcEndpointServiceName). To update most properties of an external key store, the ConnectionState of the external key store must be DISCONNECTED. However, you can update the CustomKeyStoreName, XksProxyAuthenticationCredential, and XksProxyUriPath of an external key store when it is in the CONNECTED or DISCONNECTED state.

If your update requires a DISCONNECTED state, before using UpdateCustomKeyStore, use the DisconnectCustomKeyStore operation to disconnect the custom key store. After the UpdateCustomKeyStore operation completes, use the ConnectCustomKeyStore to reconnect the custom key store. To find the ConnectionState of the custom key store, use the DescribeCustomKeyStores operation.

Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its backing key store. For example, before you change the XksProxyUriPath value, verify that the external key store proxy is reachable at the new path.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:UpdateCustomKeyStore (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the UpdateCustomKeyStore service method. @@ -1273,7 +1273,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)updateCustomKeyStore:(AWSKMSUpdateCustomKeyStoreRequest *)request; /** -

Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM key store or an external key store.

Use the required CustomKeyStoreId parameter to identify the custom key store. Use the remaining optional parameters to change its properties. This operation does not return any property values. To verify the updated property values, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

When updating the properties of an external key store, verify that the updated settings connect your key store, via the external key store proxy, to the same external key manager as the previous settings, or to a backup or snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail, you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.

For external key stores:

Some external key managers provide a simpler method for updating an external key store. For details, see your external key manager documentation.

When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot upload the proxy configuration file to the UpdateCustomKeyStore operation. However, you can use the file to help you determine the correct values for the UpdateCustomKeyStore parameters.

For an CloudHSM key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), to tell KMS about a change to the kmsuser crypto user password (KeyStorePassword), or to associate the custom key store with a different, but related, CloudHSM cluster (CloudHsmClusterId). To update any property of an CloudHSM key store, the ConnectionState of the CloudHSM key store must be DISCONNECTED.

For an external key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), or to tell KMS about a change to the external key store proxy authentication credentials (XksProxyAuthenticationCredential), connection method (XksProxyConnectivity), external proxy endpoint (XksProxyUriEndpoint) and path (XksProxyUriPath). For external key stores with an XksProxyConnectivity of VPC_ENDPOINT_SERVICE, you can also update the Amazon VPC endpoint service name (XksProxyVpcEndpointServiceName). To update most properties of an external key store, the ConnectionState of the external key store must be DISCONNECTED. However, you can update the CustomKeyStoreName, XksProxyAuthenticationCredential, and XksProxyUriPath of an external key store when it is in the CONNECTED or DISCONNECTED state.

If your update requires a DISCONNECTED state, before using UpdateCustomKeyStore, use the DisconnectCustomKeyStore operation to disconnect the custom key store. After the UpdateCustomKeyStore operation completes, use the ConnectCustomKeyStore to reconnect the custom key store. To find the ConnectionState of the custom key store, use the DescribeCustomKeyStores operation.

Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its backing key store. For example, before you change the XksProxyUriPath value, verify that the external key store proxy is reachable at the new path.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:UpdateCustomKeyStore (IAM policy)

Related operations:

+

Changes the properties of a custom key store. You can use this operation to change the properties of an CloudHSM key store or an external key store.

Use the required CustomKeyStoreId parameter to identify the custom key store. Use the remaining optional parameters to change its properties. This operation does not return any property values. To verify the updated property values, use the DescribeCustomKeyStores operation.

This operation is part of the custom key stores feature in KMS, which combines the convenience and extensive integration of KMS with the isolation and control of a key store that you own and manage.

When updating the properties of an external key store, verify that the updated settings connect your key store, via the external key store proxy, to the same external key manager as the previous settings, or to a backup or snapshot of the external key manager with the same cryptographic keys. If the updated connection settings fail, you can fix them and retry, although an extended delay might disrupt Amazon Web Services services. However, if KMS permanently loses its access to cryptographic keys, ciphertext encrypted under those keys is unrecoverable.

For external key stores:

Some external key managers provide a simpler method for updating an external key store. For details, see your external key manager documentation.

When updating an external key store in the KMS console, you can upload a JSON-based proxy configuration file with the desired values. You cannot upload the proxy configuration file to the UpdateCustomKeyStore operation. However, you can use the file to help you determine the correct values for the UpdateCustomKeyStore parameters.

For an CloudHSM key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), to tell KMS about a change to the kmsuser crypto user password (KeyStorePassword), or to associate the custom key store with a different, but related, CloudHSM cluster (CloudHsmClusterId). To update any property of an CloudHSM key store, the ConnectionState of the CloudHSM key store must be DISCONNECTED.

For an external key store, you can use this operation to change the custom key store friendly name (NewCustomKeyStoreName), or to tell KMS about a change to the external key store proxy authentication credentials (XksProxyAuthenticationCredential), connection method (XksProxyConnectivity), external proxy endpoint (XksProxyUriEndpoint) and path (XksProxyUriPath). For external key stores with an XksProxyConnectivity of VPC_ENDPOINT_SERVICE, you can also update the Amazon VPC endpoint service name (XksProxyVpcEndpointServiceName). To update most properties of an external key store, the ConnectionState of the external key store must be DISCONNECTED. However, you can update the CustomKeyStoreName, XksProxyAuthenticationCredential, and XksProxyUriPath of an external key store when it is in the CONNECTED or DISCONNECTED state.

If your update requires a DISCONNECTED state, before using UpdateCustomKeyStore, use the DisconnectCustomKeyStore operation to disconnect the custom key store. After the UpdateCustomKeyStore operation completes, use the ConnectCustomKeyStore to reconnect the custom key store. To find the ConnectionState of the custom key store, use the DescribeCustomKeyStores operation.

Before updating the custom key store, verify that the new values allow KMS to connect the custom key store to its backing key store. For example, before you change the XksProxyUriPath value, verify that the external key store proxy is reachable at the new path.

If the operation succeeds, it returns a JSON object with no properties.

Cross-account use: No. You cannot perform this operation on a custom key store in a different Amazon Web Services account.

Required permissions: kms:UpdateCustomKeyStore (IAM policy)

Related operations:

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the UpdateCustomKeyStore service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1286,7 +1286,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)updateCustomKeyStore:(AWSKMSUpdateCustomKeyStoreRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSUpdateCustomKeyStoreResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Updates the description of a KMS key. To see the description of a KMS key, use DescribeKey.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UpdateKeyDescription (key policy)

Related operations

+

Updates the description of a KMS key. To see the description of a KMS key, use DescribeKey.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UpdateKeyDescription (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the UpdateKeyDescription service method. @@ -1297,7 +1297,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)updateKeyDescription:(AWSKMSUpdateKeyDescriptionRequest *)request; /** -

Updates the description of a KMS key. To see the description of a KMS key, use DescribeKey.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UpdateKeyDescription (key policy)

Related operations

+

Updates the description of a KMS key. To see the description of a KMS key, use DescribeKey.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.

Required permissions: kms:UpdateKeyDescription (key policy)

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Changes the primary key of a multi-Region key.

This operation changes the replica key in the specified Region to a primary key and changes the former primary key to a replica key. For example, suppose you have a primary key in us-east-1 and a replica key in eu-west-2. If you run UpdatePrimaryRegion with a PrimaryRegion value of eu-west-2, the primary key is now the key in eu-west-2, and the key in us-east-1 becomes a replica key. For details, see Updating the primary Region in the Key Management Service Developer Guide.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

The primary key of a multi-Region key is the source for properties that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material origin, and automatic key rotation. It's the only key that can be replicated. You cannot delete the primary key until all replica keys are deleted.

The key ID and primary Region that you specify uniquely identify the replica key that will become the primary key. The primary Region must already have a replica key. This operation does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica key, use the ReplicateKey operation.

You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation should not delay, interrupt, or cause failures in cryptographic operations.

Even after this operation completes, the process of updating the primary Region might still be in progress for a few more seconds. Operations such as DescribeKey might display both the old and new primary keys as replicas. The old and new primary keys have a transient key state of Updating. The original key state is restored when the update is complete. While the key state is Updating, you can use the keys in cryptographic operations, but you cannot replicate the new primary key or perform certain management operations, such as enabling or disabling these keys. For details about the Updating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

This operation does not return any output. To verify that primary key is changed, use the DescribeKey operation.

Cross-account use: No. You cannot use this operation in a different Amazon Web Services account.

Required permissions:

  • kms:UpdatePrimaryRegion on the current primary key (in the primary key's Region). Include this permission primary key's key policy.

  • kms:UpdatePrimaryRegion on the current replica key (in the replica key's Region). Include this permission in the replica key's key policy.

Related operations

+

Changes the primary key of a multi-Region key.

This operation changes the replica key in the specified Region to a primary key and changes the former primary key to a replica key. For example, suppose you have a primary key in us-east-1 and a replica key in eu-west-2. If you run UpdatePrimaryRegion with a PrimaryRegion value of eu-west-2, the primary key is now the key in eu-west-2, and the key in us-east-1 becomes a replica key. For details, see Updating the primary Region in the Key Management Service Developer Guide.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

The primary key of a multi-Region key is the source for properties that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material origin, and automatic key rotation. It's the only key that can be replicated. You cannot delete the primary key until all replica keys are deleted.

The key ID and primary Region that you specify uniquely identify the replica key that will become the primary key. The primary Region must already have a replica key. This operation does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica key, use the ReplicateKey operation.

You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation should not delay, interrupt, or cause failures in cryptographic operations.

Even after this operation completes, the process of updating the primary Region might still be in progress for a few more seconds. Operations such as DescribeKey might display both the old and new primary keys as replicas. The old and new primary keys have a transient key state of Updating. The original key state is restored when the update is complete. While the key state is Updating, you can use the keys in cryptographic operations, but you cannot replicate the new primary key or perform certain management operations, such as enabling or disabling these keys. For details about the Updating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

This operation does not return any output. To verify that primary key is changed, use the DescribeKey operation.

Cross-account use: No. You cannot use this operation in a different Amazon Web Services account.

Required permissions:

  • kms:UpdatePrimaryRegion on the current primary key (in the primary key's Region). Include this permission primary key's key policy.

  • kms:UpdatePrimaryRegion on the current replica key (in the replica key's Region). Include this permission in the replica key's key policy.

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the UpdatePrimaryRegion service method. @@ -1319,7 +1319,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)updatePrimaryRegion:(AWSKMSUpdatePrimaryRegionRequest *)request; /** -

Changes the primary key of a multi-Region key.

This operation changes the replica key in the specified Region to a primary key and changes the former primary key to a replica key. For example, suppose you have a primary key in us-east-1 and a replica key in eu-west-2. If you run UpdatePrimaryRegion with a PrimaryRegion value of eu-west-2, the primary key is now the key in eu-west-2, and the key in us-east-1 becomes a replica key. For details, see Updating the primary Region in the Key Management Service Developer Guide.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

The primary key of a multi-Region key is the source for properties that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material origin, and automatic key rotation. It's the only key that can be replicated. You cannot delete the primary key until all replica keys are deleted.

The key ID and primary Region that you specify uniquely identify the replica key that will become the primary key. The primary Region must already have a replica key. This operation does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica key, use the ReplicateKey operation.

You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation should not delay, interrupt, or cause failures in cryptographic operations.

Even after this operation completes, the process of updating the primary Region might still be in progress for a few more seconds. Operations such as DescribeKey might display both the old and new primary keys as replicas. The old and new primary keys have a transient key state of Updating. The original key state is restored when the update is complete. While the key state is Updating, you can use the keys in cryptographic operations, but you cannot replicate the new primary key or perform certain management operations, such as enabling or disabling these keys. For details about the Updating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

This operation does not return any output. To verify that primary key is changed, use the DescribeKey operation.

Cross-account use: No. You cannot use this operation in a different Amazon Web Services account.

Required permissions:

  • kms:UpdatePrimaryRegion on the current primary key (in the primary key's Region). Include this permission primary key's key policy.

  • kms:UpdatePrimaryRegion on the current replica key (in the replica key's Region). Include this permission in the replica key's key policy.

Related operations

+

Changes the primary key of a multi-Region key.

This operation changes the replica key in the specified Region to a primary key and changes the former primary key to a replica key. For example, suppose you have a primary key in us-east-1 and a replica key in eu-west-2. If you run UpdatePrimaryRegion with a PrimaryRegion value of eu-west-2, the primary key is now the key in eu-west-2, and the key in us-east-1 becomes a replica key. For details, see Updating the primary Region in the Key Management Service Developer Guide.

This operation supports multi-Region keys, an KMS feature that lets you create multiple interoperable KMS keys in different Amazon Web Services Regions. Because these KMS keys have the same key ID, key material, and other metadata, you can use them interchangeably to encrypt data in one Amazon Web Services Region and decrypt it in a different Amazon Web Services Region without re-encrypting the data or making a cross-Region call. For more information about multi-Region keys, see Multi-Region keys in KMS in the Key Management Service Developer Guide.

The primary key of a multi-Region key is the source for properties that are always shared by primary and replica keys, including the key material, key ID, key spec, key usage, key material origin, and automatic key rotation. It's the only key that can be replicated. You cannot delete the primary key until all replica keys are deleted.

The key ID and primary Region that you specify uniquely identify the replica key that will become the primary key. The primary Region must already have a replica key. This operation does not create a KMS key in the specified Region. To find the replica keys, use the DescribeKey operation on the primary key or any replica key. To create a replica key, use the ReplicateKey operation.

You can run this operation while using the affected multi-Region keys in cryptographic operations. This operation should not delay, interrupt, or cause failures in cryptographic operations.

Even after this operation completes, the process of updating the primary Region might still be in progress for a few more seconds. Operations such as DescribeKey might display both the old and new primary keys as replicas. The old and new primary keys have a transient key state of Updating. The original key state is restored when the update is complete. While the key state is Updating, you can use the keys in cryptographic operations, but you cannot replicate the new primary key or perform certain management operations, such as enabling or disabling these keys. For details about the Updating key state, see Key states of KMS keys in the Key Management Service Developer Guide.

This operation does not return any output. To verify that primary key is changed, use the DescribeKey operation.

Cross-account use: No. You cannot use this operation in a different Amazon Web Services account.

Required permissions:

  • kms:UpdatePrimaryRegion on the current primary key (in the primary key's Region). Include this permission primary key's key policy.

  • kms:UpdatePrimaryRegion on the current replica key (in the replica key's Region). Include this permission in the replica key's key policy.

Related operations

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

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

Verifies a digital signature that was generated by the Sign operation.

Verification confirms that an authorized user signed the message with the specified KMS key and signing algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the SignatureValid field in the response is True. If the signature verification fails, the Verify operation fails with an KMSInvalidSignatureException exception.

A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

To use the Verify operation, specify the same asymmetric KMS key, message, and signing algorithm that were used to produce the signature. The message type does not need to be the same as the one used for signing, but it must indicate whether the value of the Message parameter should be hashed as part of the verification process.

You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the GetPublicKey operation to download the public key in the asymmetric KMS key and then use the public key to verify the signature outside of KMS. The advantage of using the Verify operation is that it is performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key to verify signatures.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Verify (key policy)

Related operations: Sign

+

Verifies a digital signature that was generated by the Sign operation.

Verification confirms that an authorized user signed the message with the specified KMS key and signing algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the SignatureValid field in the response is True. If the signature verification fails, the Verify operation fails with an KMSInvalidSignatureException exception.

A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

To use the Verify operation, specify the same asymmetric KMS key, message, and signing algorithm that were used to produce the signature. The message type does not need to be the same as the one used for signing, but it must indicate whether the value of the Message parameter should be hashed as part of the verification process.

You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the GetPublicKey operation to download the public key in the asymmetric KMS key and then use the public key to verify the signature outside of KMS. The advantage of using the Verify operation is that it is performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key to verify signatures.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Verify (key policy)

Related operations: Sign

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the Verify service method. @@ -1342,7 +1342,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)verify:(AWSKMSVerifyRequest *)request; /** -

Verifies a digital signature that was generated by the Sign operation.

Verification confirms that an authorized user signed the message with the specified KMS key and signing algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the SignatureValid field in the response is True. If the signature verification fails, the Verify operation fails with an KMSInvalidSignatureException exception.

A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

To use the Verify operation, specify the same asymmetric KMS key, message, and signing algorithm that were used to produce the signature. The message type does not need to be the same as the one used for signing, but it must indicate whether the value of the Message parameter should be hashed as part of the verification process.

You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the GetPublicKey operation to download the public key in the asymmetric KMS key and then use the public key to verify the signature outside of KMS. The advantage of using the Verify operation is that it is performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key to verify signatures.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Verify (key policy)

Related operations: Sign

+

Verifies a digital signature that was generated by the Sign operation.

Verification confirms that an authorized user signed the message with the specified KMS key and signing algorithm, and the message hasn't changed since it was signed. If the signature is verified, the value of the SignatureValid field in the response is True. If the signature verification fails, the Verify operation fails with an KMSInvalidSignatureException exception.

A digital signature is generated by using the private key in an asymmetric KMS key. The signature is verified by using the public key in the same asymmetric KMS key. For information about asymmetric KMS keys, see Asymmetric KMS keys in the Key Management Service Developer Guide.

To use the Verify operation, specify the same asymmetric KMS key, message, and signing algorithm that were used to produce the signature. The message type does not need to be the same as the one used for signing, but it must indicate whether the value of the Message parameter should be hashed as part of the verification process.

You can also verify the digital signature by using the public key of the KMS key outside of KMS. Use the GetPublicKey operation to download the public key in the asymmetric KMS key and then use the public key to verify the signature outside of KMS. The advantage of using the Verify operation is that it is performed within KMS. As a result, it's easy to call, the operation is performed within the FIPS boundary, it is logged in CloudTrail, and you can use key policy and IAM policy to determine who is authorized to use the KMS key to verify signatures.

To verify a signature outside of KMS with an SM2 public key (China Regions only), you must specify the distinguishing ID. By default, KMS uses 1234567812345678 as the distinguishing ID. For more information, see Offline verification with SM2 key pairs.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:Verify (key policy)

Related operations: Sign

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the Verify service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1355,7 +1355,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (void)verify:(AWSKMSVerifyRequest *)request completionHandler:(void (^ _Nullable)(AWSKMSVerifyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC algorithm. To verify the HMAC, VerifyMac computes an HMAC using the message, HMAC KMS key, and MAC algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.

HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:VerifyMac (key policy)

Related operations: GenerateMac

+

Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC algorithm. To verify the HMAC, VerifyMac computes an HMAC using the message, HMAC KMS key, and MAC algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.

HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:VerifyMac (key policy)

Related operations: GenerateMac

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the VerifyMac service method. @@ -1367,7 +1367,7 @@ FOUNDATION_EXPORT NSString *const AWSKMSSDKVersion; - (AWSTask *)verifyMac:(AWSKMSVerifyMacRequest *)request; /** -

Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC algorithm. To verify the HMAC, VerifyMac computes an HMAC using the message, HMAC KMS key, and MAC algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.

HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:VerifyMac (key policy)

Related operations: GenerateMac

+

Verifies the hash-based message authentication code (HMAC) for a specified message, HMAC KMS key, and MAC algorithm. To verify the HMAC, VerifyMac computes an HMAC using the message, HMAC KMS key, and MAC algorithm that you specify, and compares the computed HMAC to the HMAC that you specify. If the HMACs are identical, the verification succeeds; otherwise, it fails. Verification indicates that the message hasn't changed since the HMAC was calculated, and the specified key was used to generate and verify the HMAC.

HMAC KMS keys and the HMAC algorithms that KMS uses conform to industry standards defined in RFC 2104.

This operation is part of KMS support for HMAC KMS keys. For details, see HMAC keys in KMS in the Key Management Service Developer Guide.

The KMS key that you use for this operation must be in a compatible key state. For details, see Key states of KMS keys in the Key Management Service Developer Guide.

Cross-account use: Yes. To perform this operation with a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN in the value of the KeyId parameter.

Required permissions: kms:VerifyMac (key policy)

Related operations: GenerateMac

Eventual consistency: The KMS API follows an eventual consistency model. For more information, see KMS eventual consistency.

@param request A container for the necessary parameters to execute the VerifyMac service method. @param completionHandler The completion handler to call when the load request is complete. From 4ba0e5fa9230eb0e1b7e0482b177aab797ea61e4 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 28 Dec 2023 10:06:27 -0800 Subject: [PATCH 07/13] feat(AWSIoT): update models to latest (#5122) --- AWSIoT/AWSIoTModel.h | 236 ++++++++++++++- AWSIoT/AWSIoTModel.m | 188 ++++++++++++ AWSIoT/AWSIoTResources.m | 303 +++++++++++++++++++- AWSIoT/AWSIoTService.h | 125 ++++++++ AWSIoT/AWSIoTService.m | 115 ++++++++ AWSIoTUnitTests/AWSGeneralIoTTests.m | 240 ++++++++++++++++ AWSIoTUnitTests/AWSIoTNSSecureCodingTests.m | 55 ++++ 7 files changed, 1260 insertions(+), 2 deletions(-) diff --git a/AWSIoT/AWSIoTModel.h b/AWSIoT/AWSIoTModel.h index 9ad5525013a..38a2c97e9f6 100644 --- a/AWSIoT/AWSIoTModel.h +++ b/AWSIoT/AWSIoTModel.h @@ -214,6 +214,11 @@ typedef NS_ENUM(NSInteger, AWSIoTCertificateMode) { AWSIoTCertificateModeSniOnly, }; +typedef NS_ENUM(NSInteger, AWSIoTCertificateProviderOperation) { + AWSIoTCertificateProviderOperationUnknown, + AWSIoTCertificateProviderOperationCreateCertificateFromCsr, +}; + typedef NS_ENUM(NSInteger, AWSIoTCertificateStatus) { AWSIoTCertificateStatusUnknown, AWSIoTCertificateStatusActive, @@ -682,6 +687,7 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @class AWSIoTCancelJobResponse; @class AWSIoTCertificate; @class AWSIoTCertificateDescription; +@class AWSIoTCertificateProviderSummary; @class AWSIoTCertificateValidity; @class AWSIoTClearDefaultAuthorizerRequest; @class AWSIoTClearDefaultAuthorizerResponse; @@ -702,6 +708,8 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @class AWSIoTCreateBillingGroupResponse; @class AWSIoTCreateCertificateFromCsrRequest; @class AWSIoTCreateCertificateFromCsrResponse; +@class AWSIoTCreateCertificateProviderRequest; +@class AWSIoTCreateCertificateProviderResponse; @class AWSIoTCreateCustomMetricRequest; @class AWSIoTCreateCustomMetricResponse; @class AWSIoTCreateDimensionRequest; @@ -764,6 +772,8 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @class AWSIoTDeleteBillingGroupResponse; @class AWSIoTDeleteCACertificateRequest; @class AWSIoTDeleteCACertificateResponse; +@class AWSIoTDeleteCertificateProviderRequest; +@class AWSIoTDeleteCertificateProviderResponse; @class AWSIoTDeleteCertificateRequest; @class AWSIoTDeleteCustomMetricRequest; @class AWSIoTDeleteCustomMetricResponse; @@ -830,6 +840,8 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @class AWSIoTDescribeBillingGroupResponse; @class AWSIoTDescribeCACertificateRequest; @class AWSIoTDescribeCACertificateResponse; +@class AWSIoTDescribeCertificateProviderRequest; +@class AWSIoTDescribeCertificateProviderResponse; @class AWSIoTDescribeCertificateRequest; @class AWSIoTDescribeCertificateResponse; @class AWSIoTDescribeCustomMetricRequest; @@ -996,6 +1008,8 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @class AWSIoTListBillingGroupsResponse; @class AWSIoTListCACertificatesRequest; @class AWSIoTListCACertificatesResponse; +@class AWSIoTListCertificateProvidersRequest; +@class AWSIoTListCertificateProvidersResponse; @class AWSIoTListCertificatesByCARequest; @class AWSIoTListCertificatesByCAResponse; @class AWSIoTListCertificatesRequest; @@ -1244,6 +1258,8 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @class AWSIoTUpdateBillingGroupResponse; @class AWSIoTUpdateCACertificateParams; @class AWSIoTUpdateCACertificateRequest; +@class AWSIoTUpdateCertificateProviderRequest; +@class AWSIoTUpdateCertificateProviderResponse; @class AWSIoTUpdateCertificateRequest; @class AWSIoTUpdateCustomMetricRequest; @class AWSIoTUpdateCustomMetricResponse; @@ -3036,6 +3052,24 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @end +/** +

The certificate provider summary.

+ */ +@interface AWSIoTCertificateProviderSummary : AWSModel + + +/** +

The ARN of the certificate provider.

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

The name of the certificate provider.

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

When the certificate is valid.

*/ @@ -3450,6 +3484,57 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @end +/** + + */ +@interface AWSIoTCreateCertificateProviderRequest : AWSRequest + + +/** +

A list of the operations that the certificate provider will use to generate certificates. Valid value: CreateCertificateFromCsr.

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

The name of the certificate provider.

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

A string that you can optionally pass in the CreateCertificateProvider request to make sure the request is idempotent.

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

The ARN of the Lambda function that defines the authentication logic.

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

Metadata which can be used to manage the certificate provider.

+ */ +@property (nonatomic, strong) NSArray * _Nullable tags; + +@end + +/** + + */ +@interface AWSIoTCreateCertificateProviderResponse : AWSModel + + +/** +

The ARN of the certificate provider.

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

The name of the certificate provider.

+ */ +@property (nonatomic, strong) NSString * _Nullable certificateProviderName; + +@end + /** */ @@ -5135,6 +5220,27 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @interface AWSIoTDeleteCACertificateResponse : AWSModel +@end + +/** + + */ +@interface AWSIoTDeleteCertificateProviderRequest : AWSRequest + + +/** +

The name of the certificate provider.

+ */ +@property (nonatomic, strong) NSString * _Nullable certificateProviderName; + +@end + +/** + + */ +@interface AWSIoTDeleteCertificateProviderResponse : AWSModel + + @end /** @@ -6123,6 +6229,57 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @end +/** + + */ +@interface AWSIoTDescribeCertificateProviderRequest : AWSRequest + + +/** +

The name of the certificate provider.

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

A list of the operations that the certificate provider will use to generate certificates. Valid value: CreateCertificateFromCsr.

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

The ARN of the certificate provider.

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

The name of the certificate provider.

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

The date-time string that indicates when the certificate provider was created.

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

The Lambda function ARN that's associated with the certificate provider.

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

The date-time string that indicates when the certificate provider was last updated.

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

The input for the DescribeCertificate operation.

Required parameters: [certificateId] @@ -10132,6 +10289,42 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @end +/** + + */ +@interface AWSIoTListCertificateProvidersRequest : AWSRequest + + +/** +

Returns the list of certificate providers in ascending alphabetical order.

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

The token for the next set of results, or null if there are no more results.

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

The list of certificate providers in your Amazon Web Services account.

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

The token for the next set of results, or null if there are no more results.

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

The input to the ListCertificatesByCA operation.

Required parameters: [caCertificateId] @@ -12502,7 +12695,7 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { /** -

Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.

+

The value indicates exporting metrics related to the MetricToRetain when it's true.

*/ @property (nonatomic, strong) NSNumber * _Nullable exportMetric; @@ -15933,6 +16126,47 @@ typedef NS_ENUM(NSInteger, AWSIoTViolationEventType) { @end +/** + + */ +@interface AWSIoTUpdateCertificateProviderRequest : AWSRequest + + +/** +

A list of the operations that the certificate provider will use to generate certificates. Valid value: CreateCertificateFromCsr.

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

The name of the certificate provider.

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

The Lambda function ARN that's associated with the certificate provider.

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

The ARN of the certificate provider.

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

The name of the certificate provider.

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

The input for the UpdateCertificate operation.

Required parameters: [certificateId, newStatus] diff --git a/AWSIoT/AWSIoTModel.m b/AWSIoT/AWSIoTModel.m index da88ea19c3c..fe13b68e368 100644 --- a/AWSIoT/AWSIoTModel.m +++ b/AWSIoT/AWSIoTModel.m @@ -2155,6 +2155,21 @@ + (NSValueTransformer *)validityJSONTransformer { @end +@implementation AWSIoTCertificateProviderSummary + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"certificateProviderArn" : @"certificateProviderArn", + @"certificateProviderName" : @"certificateProviderName", + }; +} + +@end + @implementation AWSIoTCertificateValidity + (BOOL)supportsSecureCoding { @@ -2514,6 +2529,43 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @end +@implementation AWSIoTCreateCertificateProviderRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"accountDefaultForOperations" : @"accountDefaultForOperations", + @"certificateProviderName" : @"certificateProviderName", + @"clientToken" : @"clientToken", + @"lambdaFunctionArn" : @"lambdaFunctionArn", + @"tags" : @"tags", + }; +} + ++ (NSValueTransformer *)tagsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSIoTTag class]]; +} + +@end + +@implementation AWSIoTCreateCertificateProviderResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"certificateProviderArn" : @"certificateProviderArn", + @"certificateProviderName" : @"certificateProviderName", + }; +} + +@end + @implementation AWSIoTCreateCustomMetricRequest + (BOOL)supportsSecureCoding { @@ -4194,6 +4246,28 @@ + (BOOL)supportsSecureCoding { @end +@implementation AWSIoTDeleteCertificateProviderRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"certificateProviderName" : @"certificateProviderName", + }; +} + +@end + +@implementation AWSIoTDeleteCertificateProviderResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + +@end + @implementation AWSIoTDeleteCertificateRequest + (BOOL)supportsSecureCoding { @@ -5277,6 +5351,55 @@ + (NSValueTransformer *)registrationConfigJSONTransformer { @end +@implementation AWSIoTDescribeCertificateProviderRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"certificateProviderName" : @"certificateProviderName", + }; +} + +@end + +@implementation AWSIoTDescribeCertificateProviderResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"accountDefaultForOperations" : @"accountDefaultForOperations", + @"certificateProviderArn" : @"certificateProviderArn", + @"certificateProviderName" : @"certificateProviderName", + @"creationDate" : @"creationDate", + @"lambdaFunctionArn" : @"lambdaFunctionArn", + @"lastModifiedDate" : @"lastModifiedDate", + }; +} + ++ (NSValueTransformer *)creationDateJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + ++ (NSValueTransformer *)lastModifiedDateJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + +@end + @implementation AWSIoTDescribeCertificateRequest + (BOOL)supportsSecureCoding { @@ -9883,6 +10006,40 @@ + (NSValueTransformer *)certificatesJSONTransformer { @end +@implementation AWSIoTListCertificateProvidersRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"ascendingOrder" : @"ascendingOrder", + @"nextToken" : @"nextToken", + }; +} + +@end + +@implementation AWSIoTListCertificateProvidersResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"certificateProviders" : @"certificateProviders", + @"nextToken" : @"nextToken", + }; +} + ++ (NSValueTransformer *)certificateProvidersJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSIoTCertificateProviderSummary class]]; +} + +@end + @implementation AWSIoTListCertificatesByCARequest + (BOOL)supportsSecureCoding { @@ -16179,6 +16336,37 @@ + (NSValueTransformer *)registrationConfigJSONTransformer { @end +@implementation AWSIoTUpdateCertificateProviderRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"accountDefaultForOperations" : @"accountDefaultForOperations", + @"certificateProviderName" : @"certificateProviderName", + @"lambdaFunctionArn" : @"lambdaFunctionArn", + }; +} + +@end + +@implementation AWSIoTUpdateCertificateProviderResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"certificateProviderArn" : @"certificateProviderArn", + @"certificateProviderName" : @"certificateProviderName", + }; +} + +@end + @implementation AWSIoTUpdateCertificateRequest + (BOOL)supportsSecureCoding { diff --git a/AWSIoT/AWSIoTResources.m b/AWSIoT/AWSIoTResources.m index fa5bd586855..caebb242ed0 100644 --- a/AWSIoT/AWSIoTResources.m +++ b/AWSIoT/AWSIoTResources.m @@ -413,6 +413,25 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Creates an X.509 certificate using the specified certificate signing request.

Requires permission to access the CreateCertificateFromCsr action.

The CSR must include a public key that is either an RSA key with a length of at least 2048 bits or an ECC key from NIST P-256, NIST P-384, or NIST P-521 curves. For supported certificates, consult Certificate signing algorithms supported by IoT.

Reusing the same certificate signing request (CSR) results in a distinct certificate.

You can create multiple certificates in a batch by creating a directory, copying multiple .csr files into that directory, and then specifying that directory on the command line. The following commands show how to create a batch of certificates given a batch of CSRs. In the following commands, we assume that a set of CSRs are located inside of the directory my-csr-directory:

On Linux and OS X, the command is:

$ ls my-csr-directory/ | xargs -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

This command lists all of the CSRs in my-csr-directory and pipes each CSR file name to the aws iot create-certificate-from-csr Amazon Web Services CLI command to create a certificate for the corresponding CSR.

You can also run the aws iot create-certificate-from-csr part of the command in parallel to speed up the certificate creation process:

$ ls my-csr-directory/ | xargs -P 10 -I {} aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/{}

On Windows PowerShell, the command to create certificates for all CSRs in my-csr-directory is:

> ls -Name my-csr-directory | %{aws iot create-certificate-from-csr --certificate-signing-request file://my-csr-directory/$_}

On a Windows command prompt, the command to create certificates for all CSRs in my-csr-directory is:

> forfiles /p my-csr-directory /c \\\"cmd /c aws iot create-certificate-from-csr --certificate-signing-request file://@path\\\"

\"\ },\ + \"CreateCertificateProvider\":{\ + \"name\":\"CreateCertificateProvider\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/certificate-providers/{certificateProviderName}\"\ + },\ + \"input\":{\"shape\":\"CreateCertificateProviderRequest\"},\ + \"output\":{\"shape\":\"CreateCertificateProviderResponse\"},\ + \"errors\":[\ + {\"shape\":\"LimitExceededException\"},\ + {\"shape\":\"ResourceAlreadyExistsException\"},\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"UnauthorizedException\"},\ + {\"shape\":\"ServiceUnavailableException\"},\ + {\"shape\":\"InternalFailureException\"}\ + ],\ + \"documentation\":\"

Creates an Amazon Web Services IoT Core certificate provider. You can use Amazon Web Services IoT Core certificate provider to customize how to sign a certificate signing request (CSR) in IoT fleet provisioning. For more information, see Customizing certificate signing using Amazon Web Services IoT Core certificate provider from Amazon Web Services IoT Core Developer Guide.

Requires permission to access the CreateCertificateProvider action.

After you create a certificate provider, the behavior of CreateCertificateFromCsr API for fleet provisioning will change and all API calls to CreateCertificateFromCsr will invoke the certificate provider to create the certificates. It can take up to a few minutes for this behavior to change after a certificate provider is created.

\"\ + },\ \"CreateCustomMetric\":{\ \"name\":\"CreateCustomMetric\",\ \"http\":{\ @@ -994,6 +1013,25 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Deletes the specified certificate.

A certificate cannot be deleted if it has a policy or IoT thing attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPolicy action to detach all policies. Next, use the UpdateCertificate action to set the certificate to the INACTIVE status.

Requires permission to access the DeleteCertificate action.

\"\ },\ + \"DeleteCertificateProvider\":{\ + \"name\":\"DeleteCertificateProvider\",\ + \"http\":{\ + \"method\":\"DELETE\",\ + \"requestUri\":\"/certificate-providers/{certificateProviderName}\"\ + },\ + \"input\":{\"shape\":\"DeleteCertificateProviderRequest\"},\ + \"output\":{\"shape\":\"DeleteCertificateProviderResponse\"},\ + \"errors\":[\ + {\"shape\":\"DeleteConflictException\"},\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"UnauthorizedException\"},\ + {\"shape\":\"ServiceUnavailableException\"},\ + {\"shape\":\"InternalFailureException\"}\ + ],\ + \"documentation\":\"

Deletes a certificate provider.

Requires permission to access the DeleteCertificateProvider action.

If you delete the certificate provider resource, the behavior of CreateCertificateFromCsr will resume, and IoT will create certificates signed by IoT from a certificate signing request (CSR).

\"\ + },\ \"DeleteCustomMetric\":{\ \"name\":\"DeleteCustomMetric\",\ \"http\":{\ @@ -1618,6 +1656,24 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Gets information about the specified certificate.

Requires permission to access the DescribeCertificate action.

\"\ },\ + \"DescribeCertificateProvider\":{\ + \"name\":\"DescribeCertificateProvider\",\ + \"http\":{\ + \"method\":\"GET\",\ + \"requestUri\":\"/certificate-providers/{certificateProviderName}\"\ + },\ + \"input\":{\"shape\":\"DescribeCertificateProviderRequest\"},\ + \"output\":{\"shape\":\"DescribeCertificateProviderResponse\"},\ + \"errors\":[\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"UnauthorizedException\"},\ + {\"shape\":\"ServiceUnavailableException\"},\ + {\"shape\":\"InternalFailureException\"}\ + ],\ + \"documentation\":\"

Describes a certificate provider.

Requires permission to access the DescribeCertificateProvider action.

\"\ + },\ \"DescribeCustomMetric\":{\ \"name\":\"DescribeCustomMetric\",\ \"http\":{\ @@ -2614,6 +2670,23 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Lists the CA certificates registered for your Amazon Web Services account.

The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

Requires permission to access the ListCACertificates action.

\"\ },\ + \"ListCertificateProviders\":{\ + \"name\":\"ListCertificateProviders\",\ + \"http\":{\ + \"method\":\"GET\",\ + \"requestUri\":\"/certificate-providers/\"\ + },\ + \"input\":{\"shape\":\"ListCertificateProvidersRequest\"},\ + \"output\":{\"shape\":\"ListCertificateProvidersResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"UnauthorizedException\"},\ + {\"shape\":\"ServiceUnavailableException\"},\ + {\"shape\":\"InternalFailureException\"}\ + ],\ + \"documentation\":\"

Lists all your certificate providers in your Amazon Web Services account.

Requires permission to access the ListCertificateProviders action.

\"\ + },\ \"ListCertificates\":{\ \"name\":\"ListCertificates\",\ \"http\":{\ @@ -3957,6 +4030,24 @@ - (NSString *)definitionString { ],\ \"documentation\":\"

Updates the status of the specified certificate. This operation is idempotent.

Requires permission to access the UpdateCertificate action.

Certificates must be in the ACTIVE state to authenticate devices that use a certificate to connect to IoT.

Within a few minutes of updating a certificate from the ACTIVE state to any other state, IoT disconnects all devices that used that certificate to connect. Devices cannot use a certificate that is not in the ACTIVE state to reconnect.

\"\ },\ + \"UpdateCertificateProvider\":{\ + \"name\":\"UpdateCertificateProvider\",\ + \"http\":{\ + \"method\":\"PUT\",\ + \"requestUri\":\"/certificate-providers/{certificateProviderName}\"\ + },\ + \"input\":{\"shape\":\"UpdateCertificateProviderRequest\"},\ + \"output\":{\"shape\":\"UpdateCertificateProviderResponse\"},\ + \"errors\":[\ + {\"shape\":\"ResourceNotFoundException\"},\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"ThrottlingException\"},\ + {\"shape\":\"UnauthorizedException\"},\ + {\"shape\":\"ServiceUnavailableException\"},\ + {\"shape\":\"InternalFailureException\"}\ + ],\ + \"documentation\":\"

Updates a certificate provider.

Requires permission to access the UpdateCertificateProvider action.

\"\ + },\ \"UpdateCustomMetric\":{\ \"name\":\"UpdateCustomMetric\",\ \"http\":{\ @@ -6256,6 +6347,49 @@ - (NSString *)definitionString { \"min\":1,\ \"pattern\":\"[\\\\s\\\\S]*\"\ },\ + \"CertificateProviderAccountDefaultForOperations\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"CertificateProviderOperation\"},\ + \"max\":1,\ + \"min\":1\ + },\ + \"CertificateProviderArn\":{\ + \"type\":\"string\",\ + \"max\":2048\ + },\ + \"CertificateProviderFunctionArn\":{\ + \"type\":\"string\",\ + \"max\":2048,\ + \"pattern\":\"[\\\\s\\\\S]*\"\ + },\ + \"CertificateProviderName\":{\ + \"type\":\"string\",\ + \"max\":128,\ + \"min\":1,\ + \"pattern\":\"[\\\\w=,@-]+\"\ + },\ + \"CertificateProviderOperation\":{\ + \"type\":\"string\",\ + \"enum\":[\"CreateCertificateFromCsr\"]\ + },\ + \"CertificateProviderSummary\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"certificateProviderName\":{\ + \"shape\":\"CertificateProviderName\",\ + \"documentation\":\"

The name of the certificate provider.

\"\ + },\ + \"certificateProviderArn\":{\ + \"shape\":\"CertificateProviderArn\",\ + \"documentation\":\"

The ARN of the certificate provider.

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

The certificate provider summary.

\"\ + },\ + \"CertificateProviders\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"CertificateProviderSummary\"}\ + },\ \"CertificateSigningRequest\":{\ \"type\":\"string\",\ \"max\":4096,\ @@ -6756,6 +6890,52 @@ - (NSString *)definitionString { },\ \"documentation\":\"

The output from the CreateCertificateFromCsr operation.

\"\ },\ + \"CreateCertificateProviderRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"certificateProviderName\",\ + \"lambdaFunctionArn\",\ + \"accountDefaultForOperations\"\ + ],\ + \"members\":{\ + \"certificateProviderName\":{\ + \"shape\":\"CertificateProviderName\",\ + \"documentation\":\"

The name of the certificate provider.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"certificateProviderName\"\ + },\ + \"lambdaFunctionArn\":{\ + \"shape\":\"CertificateProviderFunctionArn\",\ + \"documentation\":\"

The ARN of the Lambda function that defines the authentication logic.

\"\ + },\ + \"accountDefaultForOperations\":{\ + \"shape\":\"CertificateProviderAccountDefaultForOperations\",\ + \"documentation\":\"

A list of the operations that the certificate provider will use to generate certificates. Valid value: CreateCertificateFromCsr.

\"\ + },\ + \"clientToken\":{\ + \"shape\":\"ClientToken\",\ + \"documentation\":\"

A string that you can optionally pass in the CreateCertificateProvider request to make sure the request is idempotent.

\",\ + \"idempotencyToken\":true\ + },\ + \"tags\":{\ + \"shape\":\"TagList\",\ + \"documentation\":\"

Metadata which can be used to manage the certificate provider.

\"\ + }\ + }\ + },\ + \"CreateCertificateProviderResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"certificateProviderName\":{\ + \"shape\":\"CertificateProviderName\",\ + \"documentation\":\"

The name of the certificate provider.

\"\ + },\ + \"certificateProviderArn\":{\ + \"shape\":\"CertificateProviderArn\",\ + \"documentation\":\"

The ARN of the certificate provider.

\"\ + }\ + }\ + },\ \"CreateCustomMetricRequest\":{\ \"type\":\"structure\",\ \"required\":[\ @@ -8238,6 +8418,23 @@ - (NSString *)definitionString { },\ \"documentation\":\"

The output for the DeleteCACertificate operation.

\"\ },\ + \"DeleteCertificateProviderRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\"certificateProviderName\"],\ + \"members\":{\ + \"certificateProviderName\":{\ + \"shape\":\"CertificateProviderName\",\ + \"documentation\":\"

The name of the certificate provider.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"certificateProviderName\"\ + }\ + }\ + },\ + \"DeleteCertificateProviderResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + }\ + },\ \"DeleteCertificateRequest\":{\ \"type\":\"structure\",\ \"required\":[\"certificateId\"],\ @@ -9109,6 +9306,47 @@ - (NSString *)definitionString { },\ \"documentation\":\"

The output from the DescribeCACertificate operation.

\"\ },\ + \"DescribeCertificateProviderRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\"certificateProviderName\"],\ + \"members\":{\ + \"certificateProviderName\":{\ + \"shape\":\"CertificateProviderName\",\ + \"documentation\":\"

The name of the certificate provider.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"certificateProviderName\"\ + }\ + }\ + },\ + \"DescribeCertificateProviderResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"certificateProviderName\":{\ + \"shape\":\"CertificateProviderName\",\ + \"documentation\":\"

The name of the certificate provider.

\"\ + },\ + \"certificateProviderArn\":{\ + \"shape\":\"CertificateProviderArn\",\ + \"documentation\":\"

The ARN of the certificate provider.

\"\ + },\ + \"lambdaFunctionArn\":{\ + \"shape\":\"CertificateProviderFunctionArn\",\ + \"documentation\":\"

The Lambda function ARN that's associated with the certificate provider.

\"\ + },\ + \"accountDefaultForOperations\":{\ + \"shape\":\"CertificateProviderAccountDefaultForOperations\",\ + \"documentation\":\"

A list of the operations that the certificate provider will use to generate certificates. Valid value: CreateCertificateFromCsr.

\"\ + },\ + \"creationDate\":{\ + \"shape\":\"DateType\",\ + \"documentation\":\"

The date-time string that indicates when the certificate provider was created.

\"\ + },\ + \"lastModifiedDate\":{\ + \"shape\":\"DateType\",\ + \"documentation\":\"

The date-time string that indicates when the certificate provider was last updated.

\"\ + }\ + }\ + },\ \"DescribeCertificateRequest\":{\ \"type\":\"structure\",\ \"required\":[\"certificateId\"],\ @@ -13125,6 +13363,36 @@ - (NSString *)definitionString { },\ \"documentation\":\"

The output from the ListCACertificates operation.

\"\ },\ + \"ListCertificateProvidersRequest\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"nextToken\":{\ + \"shape\":\"Marker\",\ + \"documentation\":\"

The token for the next set of results, or null if there are no more results.

\",\ + \"location\":\"querystring\",\ + \"locationName\":\"nextToken\"\ + },\ + \"ascendingOrder\":{\ + \"shape\":\"AscendingOrder\",\ + \"documentation\":\"

Returns the list of certificate providers in ascending alphabetical order.

\",\ + \"location\":\"querystring\",\ + \"locationName\":\"isAscendingOrder\"\ + }\ + }\ + },\ + \"ListCertificateProvidersResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"certificateProviders\":{\ + \"shape\":\"CertificateProviders\",\ + \"documentation\":\"

The list of certificate providers in your Amazon Web Services account.

\"\ + },\ + \"nextToken\":{\ + \"shape\":\"Marker\",\ + \"documentation\":\"

The token for the next set of results, or null if there are no more results.

\"\ + }\ + }\ + },\ \"ListCertificatesByCARequest\":{\ \"type\":\"structure\",\ \"required\":[\"caCertificateId\"],\ @@ -15418,7 +15686,7 @@ - (NSString *)definitionString { },\ \"exportMetric\":{\ \"shape\":\"ExportMetric\",\ - \"documentation\":\"

Value added in both Behavior and AdditionalMetricsToRetainV2 to indicate if Device Defender Detect should export the corresponding metrics.

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

The value indicates exporting metrics related to the MetricToRetain when it's true.

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

The metric you want to retain. Dimensions are optional.

\"\ @@ -19421,6 +19689,39 @@ - (NSString *)definitionString { },\ \"documentation\":\"

The input to the UpdateCACertificate operation.

\"\ },\ + \"UpdateCertificateProviderRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\"certificateProviderName\"],\ + \"members\":{\ + \"certificateProviderName\":{\ + \"shape\":\"CertificateProviderName\",\ + \"documentation\":\"

The name of the certificate provider.

\",\ + \"location\":\"uri\",\ + \"locationName\":\"certificateProviderName\"\ + },\ + \"lambdaFunctionArn\":{\ + \"shape\":\"CertificateProviderFunctionArn\",\ + \"documentation\":\"

The Lambda function ARN that's associated with the certificate provider.

\"\ + },\ + \"accountDefaultForOperations\":{\ + \"shape\":\"CertificateProviderAccountDefaultForOperations\",\ + \"documentation\":\"

A list of the operations that the certificate provider will use to generate certificates. Valid value: CreateCertificateFromCsr.

\"\ + }\ + }\ + },\ + \"UpdateCertificateProviderResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"certificateProviderName\":{\ + \"shape\":\"CertificateProviderName\",\ + \"documentation\":\"

The name of the certificate provider.

\"\ + },\ + \"certificateProviderArn\":{\ + \"shape\":\"CertificateProviderArn\",\ + \"documentation\":\"

The ARN of the certificate provider.

\"\ + }\ + }\ + },\ \"UpdateCertificateRequest\":{\ \"type\":\"structure\",\ \"required\":[\ diff --git a/AWSIoT/AWSIoTService.h b/AWSIoT/AWSIoTService.h index 9f9e5cdfed8..91cc8320593 100644 --- a/AWSIoT/AWSIoTService.h +++ b/AWSIoT/AWSIoTService.h @@ -659,6 +659,31 @@ FOUNDATION_EXPORT NSString *const AWSIoTSDKVersion; */ - (void)createCertificateFromCsr:(AWSIoTCreateCertificateFromCsrRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateCertificateFromCsrResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Creates an Amazon Web Services IoT Core certificate provider. You can use Amazon Web Services IoT Core certificate provider to customize how to sign a certificate signing request (CSR) in IoT fleet provisioning. For more information, see Customizing certificate signing using Amazon Web Services IoT Core certificate provider from Amazon Web Services IoT Core Developer Guide.

Requires permission to access the CreateCertificateProvider action.

After you create a certificate provider, the behavior of CreateCertificateFromCsr API for fleet provisioning will change and all API calls to CreateCertificateFromCsr will invoke the certificate provider to create the certificates. It can take up to a few minutes for this behavior to change after a certificate provider is created.

+ + @param request A container for the necessary parameters to execute the CreateCertificateProvider service method. + + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTCreateCertificateProviderResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTCreateCertificateProviderRequest + @see AWSIoTCreateCertificateProviderResponse + */ +- (AWSTask *)createCertificateProvider:(AWSIoTCreateCertificateProviderRequest *)request; + +/** +

Creates an Amazon Web Services IoT Core certificate provider. You can use Amazon Web Services IoT Core certificate provider to customize how to sign a certificate signing request (CSR) in IoT fleet provisioning. For more information, see Customizing certificate signing using Amazon Web Services IoT Core certificate provider from Amazon Web Services IoT Core Developer Guide.

Requires permission to access the CreateCertificateProvider action.

After you create a certificate provider, the behavior of CreateCertificateFromCsr API for fleet provisioning will change and all API calls to CreateCertificateFromCsr will invoke the certificate provider to create the certificates. It can take up to a few minutes for this behavior to change after a certificate provider is created.

+ + @param request A container for the necessary parameters to execute the CreateCertificateProvider 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 `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorLimitExceeded`, `AWSIoTErrorResourceAlreadyExists`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTCreateCertificateProviderRequest + @see AWSIoTCreateCertificateProviderResponse + */ +- (void)createCertificateProvider:(AWSIoTCreateCertificateProviderRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTCreateCertificateProviderResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Use this API to define a Custom Metric published by your devices to Device Defender.

Requires permission to access the CreateCustomMetric action.

@@ -1453,6 +1478,31 @@ FOUNDATION_EXPORT NSString *const AWSIoTSDKVersion; */ - (void)deleteCertificate:(AWSIoTDeleteCertificateRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; +/** +

Deletes a certificate provider.

Requires permission to access the DeleteCertificateProvider action.

If you delete the certificate provider resource, the behavior of CreateCertificateFromCsr will resume, and IoT will create certificates signed by IoT from a certificate signing request (CSR).

+ + @param request A container for the necessary parameters to execute the DeleteCertificateProvider service method. + + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDeleteCertificateProviderResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTDeleteCertificateProviderRequest + @see AWSIoTDeleteCertificateProviderResponse + */ +- (AWSTask *)deleteCertificateProvider:(AWSIoTDeleteCertificateProviderRequest *)request; + +/** +

Deletes a certificate provider.

Requires permission to access the DeleteCertificateProvider action.

If you delete the certificate provider resource, the behavior of CreateCertificateFromCsr will resume, and IoT will create certificates signed by IoT from a certificate signing request (CSR).

+ + @param request A container for the necessary parameters to execute the DeleteCertificateProvider 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 `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorDeleteConflict`, `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTDeleteCertificateProviderRequest + @see AWSIoTDeleteCertificateProviderResponse + */ +- (void)deleteCertificateProvider:(AWSIoTDeleteCertificateProviderRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDeleteCertificateProviderResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Deletes a Device Defender detect custom metric.

Requires permission to access the DeleteCustomMetric action.

Before you can delete a custom metric, you must first remove the custom metric from all security profiles it's a part of. The security profile associated with the custom metric can be found using the ListSecurityProfiles API with metricName set to your custom metric name.

@@ -2354,6 +2404,31 @@ FOUNDATION_EXPORT NSString *const AWSIoTSDKVersion; */ - (void)describeCertificate:(AWSIoTDescribeCertificateRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeCertificateResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Describes a certificate provider.

Requires permission to access the DescribeCertificateProvider action.

+ + @param request A container for the necessary parameters to execute the DescribeCertificateProvider service method. + + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTDescribeCertificateProviderResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTDescribeCertificateProviderRequest + @see AWSIoTDescribeCertificateProviderResponse + */ +- (AWSTask *)describeCertificateProvider:(AWSIoTDescribeCertificateProviderRequest *)request; + +/** +

Describes a certificate provider.

Requires permission to access the DescribeCertificateProvider action.

+ + @param request A container for the necessary parameters to execute the DescribeCertificateProvider 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 `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTDescribeCertificateProviderRequest + @see AWSIoTDescribeCertificateProviderResponse + */ +- (void)describeCertificateProvider:(AWSIoTDescribeCertificateProviderRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTDescribeCertificateProviderResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Gets information about a Device Defender detect custom metric.

Requires permission to access the DescribeCustomMetric action.

@@ -3817,6 +3892,31 @@ FOUNDATION_EXPORT NSString *const AWSIoTSDKVersion; */ - (void)listCACertificates:(AWSIoTListCACertificatesRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListCACertificatesResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Lists all your certificate providers in your Amazon Web Services account.

Requires permission to access the ListCertificateProviders action.

+ + @param request A container for the necessary parameters to execute the ListCertificateProviders service method. + + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTListCertificateProvidersResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTListCertificateProvidersRequest + @see AWSIoTListCertificateProvidersResponse + */ +- (AWSTask *)listCertificateProviders:(AWSIoTListCertificateProvidersRequest *)request; + +/** +

Lists all your certificate providers in your Amazon Web Services account.

Requires permission to access the ListCertificateProviders action.

+ + @param request A container for the necessary parameters to execute the ListCertificateProviders 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 `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTListCertificateProvidersRequest + @see AWSIoTListCertificateProvidersResponse + */ +- (void)listCertificateProviders:(AWSIoTListCertificateProvidersRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTListCertificateProvidersResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Lists the certificates registered in your Amazon Web Services account.

The results are paginated with a default page size of 25. You can use the returned marker to retrieve additional results.

Requires permission to access the ListCertificates action.

@@ -5793,6 +5893,31 @@ FOUNDATION_EXPORT NSString *const AWSIoTSDKVersion; */ - (void)updateCertificate:(AWSIoTUpdateCertificateRequest *)request completionHandler:(void (^ _Nullable)(NSError * _Nullable error))completionHandler; +/** +

Updates a certificate provider.

Requires permission to access the UpdateCertificateProvider action.

+ + @param request A container for the necessary parameters to execute the UpdateCertificateProvider service method. + + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSIoTUpdateCertificateProviderResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTUpdateCertificateProviderRequest + @see AWSIoTUpdateCertificateProviderResponse + */ +- (AWSTask *)updateCertificateProvider:(AWSIoTUpdateCertificateProviderRequest *)request; + +/** +

Updates a certificate provider.

Requires permission to access the UpdateCertificateProvider action.

+ + @param request A container for the necessary parameters to execute the UpdateCertificateProvider 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 `AWSIoTErrorDomain` domain and the following error code: `AWSIoTErrorResourceNotFound`, `AWSIoTErrorInvalidRequest`, `AWSIoTErrorThrottling`, `AWSIoTErrorUnauthorized`, `AWSIoTErrorServiceUnavailable`, `AWSIoTErrorInternalFailure`. + + @see AWSIoTUpdateCertificateProviderRequest + @see AWSIoTUpdateCertificateProviderResponse + */ +- (void)updateCertificateProvider:(AWSIoTUpdateCertificateProviderRequest *)request completionHandler:(void (^ _Nullable)(AWSIoTUpdateCertificateProviderResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Updates a Device Defender detect custom metric.

Requires permission to access the UpdateCustomMetric action.

diff --git a/AWSIoT/AWSIoTService.m b/AWSIoT/AWSIoTService.m index ad54b2234d1..7b571f2fa2b 100644 --- a/AWSIoT/AWSIoTService.m +++ b/AWSIoT/AWSIoTService.m @@ -763,6 +763,29 @@ - (void)createCertificateFromCsr:(AWSIoTCreateCertificateFromCsrRequest *)reques }]; } +- (AWSTask *)createCertificateProvider:(AWSIoTCreateCertificateProviderRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"/certificate-providers/{certificateProviderName}" + targetPrefix:@"" + operationName:@"CreateCertificateProvider" + outputClass:[AWSIoTCreateCertificateProviderResponse class]]; +} + +- (void)createCertificateProvider:(AWSIoTCreateCertificateProviderRequest *)request + completionHandler:(void (^)(AWSIoTCreateCertificateProviderResponse *response, NSError *error))completionHandler { + [[self createCertificateProvider:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSIoTCreateCertificateProviderResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)createCustomMetric:(AWSIoTCreateCustomMetricRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST @@ -1497,6 +1520,29 @@ - (void)deleteCertificate:(AWSIoTDeleteCertificateRequest *)request }]; } +- (AWSTask *)deleteCertificateProvider:(AWSIoTDeleteCertificateProviderRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodDELETE + URLString:@"/certificate-providers/{certificateProviderName}" + targetPrefix:@"" + operationName:@"DeleteCertificateProvider" + outputClass:[AWSIoTDeleteCertificateProviderResponse class]]; +} + +- (void)deleteCertificateProvider:(AWSIoTDeleteCertificateProviderRequest *)request + completionHandler:(void (^)(AWSIoTDeleteCertificateProviderResponse *response, NSError *error))completionHandler { + [[self deleteCertificateProvider:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSIoTDeleteCertificateProviderResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)deleteCustomMetric:(AWSIoTDeleteCustomMetricRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodDELETE @@ -2340,6 +2386,29 @@ - (void)describeCertificate:(AWSIoTDescribeCertificateRequest *)request }]; } +- (AWSTask *)describeCertificateProvider:(AWSIoTDescribeCertificateProviderRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodGET + URLString:@"/certificate-providers/{certificateProviderName}" + targetPrefix:@"" + operationName:@"DescribeCertificateProvider" + outputClass:[AWSIoTDescribeCertificateProviderResponse class]]; +} + +- (void)describeCertificateProvider:(AWSIoTDescribeCertificateProviderRequest *)request + completionHandler:(void (^)(AWSIoTDescribeCertificateProviderResponse *response, NSError *error))completionHandler { + [[self describeCertificateProvider:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSIoTDescribeCertificateProviderResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)describeCustomMetric:(AWSIoTDescribeCustomMetricRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodGET @@ -3693,6 +3762,29 @@ - (void)listCACertificates:(AWSIoTListCACertificatesRequest *)request }]; } +- (AWSTask *)listCertificateProviders:(AWSIoTListCertificateProvidersRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodGET + URLString:@"/certificate-providers/" + targetPrefix:@"" + operationName:@"ListCertificateProviders" + outputClass:[AWSIoTListCertificateProvidersResponse class]]; +} + +- (void)listCertificateProviders:(AWSIoTListCertificateProvidersRequest *)request + completionHandler:(void (^)(AWSIoTListCertificateProvidersResponse *response, NSError *error))completionHandler { + [[self listCertificateProviders:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSIoTListCertificateProvidersResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)listCertificates:(AWSIoTListCertificatesRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodGET @@ -5525,6 +5617,29 @@ - (void)updateCertificate:(AWSIoTUpdateCertificateRequest *)request }]; } +- (AWSTask *)updateCertificateProvider:(AWSIoTUpdateCertificateProviderRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPUT + URLString:@"/certificate-providers/{certificateProviderName}" + targetPrefix:@"" + operationName:@"UpdateCertificateProvider" + outputClass:[AWSIoTUpdateCertificateProviderResponse class]]; +} + +- (void)updateCertificateProvider:(AWSIoTUpdateCertificateProviderRequest *)request + completionHandler:(void (^)(AWSIoTUpdateCertificateProviderResponse *response, NSError *error))completionHandler { + [[self updateCertificateProvider:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSIoTUpdateCertificateProviderResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)updateCustomMetric:(AWSIoTUpdateCustomMetricRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPATCH diff --git a/AWSIoTUnitTests/AWSGeneralIoTTests.m b/AWSIoTUnitTests/AWSGeneralIoTTests.m index 78df4a26808..2d00616c720 100644 --- a/AWSIoTUnitTests/AWSGeneralIoTTests.m +++ b/AWSIoTUnitTests/AWSGeneralIoTTests.m @@ -1012,6 +1012,54 @@ - (void)testCreateCertificateFromCsrCompletionHandler { [AWSIoT removeIoTForKey:key]; } +- (void)testCreateCertificateProvider { + NSString *key = @"testCreateCertificateProvider"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + [[[[AWSIoT IoTForKey:key] createCertificateProvider:[AWSIoTCreateCertificateProviderRequest 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]]); + + [AWSIoT removeIoTForKey:key]; +} + +- (void)testCreateCertificateProviderCompletionHandler { + NSString *key = @"testCreateCertificateProvider"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + + dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); + + [[AWSIoT IoTForKey:key] createCertificateProvider:[AWSIoTCreateCertificateProviderRequest new] completionHandler:^(AWSIoTCreateCertificateProviderResponse* _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]]); + + [AWSIoT removeIoTForKey:key]; +} + - (void)testCreateCustomMetric { NSString *key = @"testCreateCustomMetric"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -2546,6 +2594,54 @@ - (void)testDeleteCertificateCompletionHandler { [AWSIoT removeIoTForKey:key]; } +- (void)testDeleteCertificateProvider { + NSString *key = @"testDeleteCertificateProvider"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + [[[[AWSIoT IoTForKey:key] deleteCertificateProvider:[AWSIoTDeleteCertificateProviderRequest 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]]); + + [AWSIoT removeIoTForKey:key]; +} + +- (void)testDeleteCertificateProviderCompletionHandler { + NSString *key = @"testDeleteCertificateProvider"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + + dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); + + [[AWSIoT IoTForKey:key] deleteCertificateProvider:[AWSIoTDeleteCertificateProviderRequest new] completionHandler:^(AWSIoTDeleteCertificateProviderResponse* _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]]); + + [AWSIoT removeIoTForKey:key]; +} + - (void)testDeleteCustomMetric { NSString *key = @"testDeleteCustomMetric"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -4314,6 +4410,54 @@ - (void)testDescribeCertificateCompletionHandler { [AWSIoT removeIoTForKey:key]; } +- (void)testDescribeCertificateProvider { + NSString *key = @"testDescribeCertificateProvider"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + [[[[AWSIoT IoTForKey:key] describeCertificateProvider:[AWSIoTDescribeCertificateProviderRequest 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]]); + + [AWSIoT removeIoTForKey:key]; +} + +- (void)testDescribeCertificateProviderCompletionHandler { + NSString *key = @"testDescribeCertificateProvider"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + + dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); + + [[AWSIoT IoTForKey:key] describeCertificateProvider:[AWSIoTDescribeCertificateProviderRequest new] completionHandler:^(AWSIoTDescribeCertificateProviderResponse* _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]]); + + [AWSIoT removeIoTForKey:key]; +} + - (void)testDescribeCustomMetric { NSString *key = @"testDescribeCustomMetric"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -7142,6 +7286,54 @@ - (void)testListCACertificatesCompletionHandler { [AWSIoT removeIoTForKey:key]; } +- (void)testListCertificateProviders { + NSString *key = @"testListCertificateProviders"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + [[[[AWSIoT IoTForKey:key] listCertificateProviders:[AWSIoTListCertificateProvidersRequest 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]]); + + [AWSIoT removeIoTForKey:key]; +} + +- (void)testListCertificateProvidersCompletionHandler { + NSString *key = @"testListCertificateProviders"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + + dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); + + [[AWSIoT IoTForKey:key] listCertificateProviders:[AWSIoTListCertificateProvidersRequest new] completionHandler:^(AWSIoTListCertificateProvidersResponse* _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]]); + + [AWSIoT removeIoTForKey:key]; +} + - (void)testListCertificates { NSString *key = @"testListCertificates"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; @@ -10974,6 +11166,54 @@ - (void)testUpdateCertificateCompletionHandler { [AWSIoT removeIoTForKey:key]; } +- (void)testUpdateCertificateProvider { + NSString *key = @"testUpdateCertificateProvider"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + [[[[AWSIoT IoTForKey:key] updateCertificateProvider:[AWSIoTUpdateCertificateProviderRequest 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]]); + + [AWSIoT removeIoTForKey:key]; +} + +- (void)testUpdateCertificateProviderCompletionHandler { + NSString *key = @"testUpdateCertificateProvider"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSIoT registerIoTWithConfiguration:configuration forKey:key]; + + AWSIoT *awsClient = [AWSIoT IoTForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + + dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); + + [[AWSIoT IoTForKey:key] updateCertificateProvider:[AWSIoTUpdateCertificateProviderRequest new] completionHandler:^(AWSIoTUpdateCertificateProviderResponse* _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]]); + + [AWSIoT removeIoTForKey:key]; +} + - (void)testUpdateCustomMetric { NSString *key = @"testUpdateCustomMetric"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; diff --git a/AWSIoTUnitTests/AWSIoTNSSecureCodingTests.m b/AWSIoTUnitTests/AWSIoTNSSecureCodingTests.m index a9294fe0f76..c4bd4a5e72e 100644 --- a/AWSIoTUnitTests/AWSIoTNSSecureCodingTests.m +++ b/AWSIoTUnitTests/AWSIoTNSSecureCodingTests.m @@ -86,6 +86,7 @@ - (void) test_AWSIoTCancelJobRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTCancelJobResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTCertificate API_AVAILABLE(ios(11)); - (void) test_AWSIoTCertificateDescription API_AVAILABLE(ios(11)); +- (void) test_AWSIoTCertificateProviderSummary API_AVAILABLE(ios(11)); - (void) test_AWSIoTCertificateValidity API_AVAILABLE(ios(11)); - (void) test_AWSIoTClearDefaultAuthorizerRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTClearDefaultAuthorizerResponse API_AVAILABLE(ios(11)); @@ -106,6 +107,8 @@ - (void) test_AWSIoTCreateBillingGroupRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTCreateBillingGroupResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTCreateCertificateFromCsrRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTCreateCertificateFromCsrResponse API_AVAILABLE(ios(11)); +- (void) test_AWSIoTCreateCertificateProviderRequest API_AVAILABLE(ios(11)); +- (void) test_AWSIoTCreateCertificateProviderResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTCreateCustomMetricRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTCreateCustomMetricResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTCreateDimensionRequest API_AVAILABLE(ios(11)); @@ -168,6 +171,8 @@ - (void) test_AWSIoTDeleteBillingGroupRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTDeleteBillingGroupResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTDeleteCACertificateRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTDeleteCACertificateResponse API_AVAILABLE(ios(11)); +- (void) test_AWSIoTDeleteCertificateProviderRequest API_AVAILABLE(ios(11)); +- (void) test_AWSIoTDeleteCertificateProviderResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTDeleteCertificateRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTDeleteCustomMetricRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTDeleteCustomMetricResponse API_AVAILABLE(ios(11)); @@ -234,6 +239,8 @@ - (void) test_AWSIoTDescribeBillingGroupRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTDescribeBillingGroupResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTDescribeCACertificateRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTDescribeCACertificateResponse API_AVAILABLE(ios(11)); +- (void) test_AWSIoTDescribeCertificateProviderRequest API_AVAILABLE(ios(11)); +- (void) test_AWSIoTDescribeCertificateProviderResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTDescribeCertificateRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTDescribeCertificateResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTDescribeCustomMetricRequest API_AVAILABLE(ios(11)); @@ -400,6 +407,8 @@ - (void) test_AWSIoTListBillingGroupsRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTListBillingGroupsResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTListCACertificatesRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTListCACertificatesResponse API_AVAILABLE(ios(11)); +- (void) test_AWSIoTListCertificateProvidersRequest API_AVAILABLE(ios(11)); +- (void) test_AWSIoTListCertificateProvidersResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTListCertificatesByCARequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTListCertificatesByCAResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTListCertificatesRequest API_AVAILABLE(ios(11)); @@ -648,6 +657,8 @@ - (void) test_AWSIoTUpdateBillingGroupRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTUpdateBillingGroupResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTUpdateCACertificateParams API_AVAILABLE(ios(11)); - (void) test_AWSIoTUpdateCACertificateRequest API_AVAILABLE(ios(11)); +- (void) test_AWSIoTUpdateCertificateProviderRequest API_AVAILABLE(ios(11)); +- (void) test_AWSIoTUpdateCertificateProviderResponse API_AVAILABLE(ios(11)); - (void) test_AWSIoTUpdateCertificateRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTUpdateCustomMetricRequest API_AVAILABLE(ios(11)); - (void) test_AWSIoTUpdateCustomMetricResponse API_AVAILABLE(ios(11)); @@ -974,6 +985,10 @@ - (void) test_AWSIoTCertificateDescription { [self validateSecureCodingForClass:[AWSIoTCertificateDescription class]]; } +- (void) test_AWSIoTCertificateProviderSummary { + [self validateSecureCodingForClass:[AWSIoTCertificateProviderSummary class]]; +} + - (void) test_AWSIoTCertificateValidity { [self validateSecureCodingForClass:[AWSIoTCertificateValidity class]]; } @@ -1054,6 +1069,14 @@ - (void) test_AWSIoTCreateCertificateFromCsrResponse { [self validateSecureCodingForClass:[AWSIoTCreateCertificateFromCsrResponse class]]; } +- (void) test_AWSIoTCreateCertificateProviderRequest { + [self validateSecureCodingForClass:[AWSIoTCreateCertificateProviderRequest class]]; +} + +- (void) test_AWSIoTCreateCertificateProviderResponse { + [self validateSecureCodingForClass:[AWSIoTCreateCertificateProviderResponse class]]; +} + - (void) test_AWSIoTCreateCustomMetricRequest { [self validateSecureCodingForClass:[AWSIoTCreateCustomMetricRequest class]]; } @@ -1302,6 +1325,14 @@ - (void) test_AWSIoTDeleteCACertificateResponse { [self validateSecureCodingForClass:[AWSIoTDeleteCACertificateResponse class]]; } +- (void) test_AWSIoTDeleteCertificateProviderRequest { + [self validateSecureCodingForClass:[AWSIoTDeleteCertificateProviderRequest class]]; +} + +- (void) test_AWSIoTDeleteCertificateProviderResponse { + [self validateSecureCodingForClass:[AWSIoTDeleteCertificateProviderResponse class]]; +} + - (void) test_AWSIoTDeleteCertificateRequest { [self validateSecureCodingForClass:[AWSIoTDeleteCertificateRequest class]]; } @@ -1566,6 +1597,14 @@ - (void) test_AWSIoTDescribeCACertificateResponse { [self validateSecureCodingForClass:[AWSIoTDescribeCACertificateResponse class]]; } +- (void) test_AWSIoTDescribeCertificateProviderRequest { + [self validateSecureCodingForClass:[AWSIoTDescribeCertificateProviderRequest class]]; +} + +- (void) test_AWSIoTDescribeCertificateProviderResponse { + [self validateSecureCodingForClass:[AWSIoTDescribeCertificateProviderResponse class]]; +} + - (void) test_AWSIoTDescribeCertificateRequest { [self validateSecureCodingForClass:[AWSIoTDescribeCertificateRequest class]]; } @@ -2230,6 +2269,14 @@ - (void) test_AWSIoTListCACertificatesResponse { [self validateSecureCodingForClass:[AWSIoTListCACertificatesResponse class]]; } +- (void) test_AWSIoTListCertificateProvidersRequest { + [self validateSecureCodingForClass:[AWSIoTListCertificateProvidersRequest class]]; +} + +- (void) test_AWSIoTListCertificateProvidersResponse { + [self validateSecureCodingForClass:[AWSIoTListCertificateProvidersResponse class]]; +} + - (void) test_AWSIoTListCertificatesByCARequest { [self validateSecureCodingForClass:[AWSIoTListCertificatesByCARequest class]]; } @@ -3222,6 +3269,14 @@ - (void) test_AWSIoTUpdateCACertificateRequest { [self validateSecureCodingForClass:[AWSIoTUpdateCACertificateRequest class]]; } +- (void) test_AWSIoTUpdateCertificateProviderRequest { + [self validateSecureCodingForClass:[AWSIoTUpdateCertificateProviderRequest class]]; +} + +- (void) test_AWSIoTUpdateCertificateProviderResponse { + [self validateSecureCodingForClass:[AWSIoTUpdateCertificateProviderResponse class]]; +} + - (void) test_AWSIoTUpdateCertificateRequest { [self validateSecureCodingForClass:[AWSIoTUpdateCertificateRequest class]]; } From c48991dc04ad3cf172842d659737c73c36b9a410 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 28 Dec 2023 10:08:10 -0800 Subject: [PATCH 08/13] feat(AWSComprehend): update models to latest (#5110) --- AWSComprehend/AWSComprehendModel.h | 157 +++++++++++--- AWSComprehend/AWSComprehendModel.m | 202 ++++++++++++++++++ AWSComprehend/AWSComprehendResources.m | 181 ++++++++++++---- AWSComprehend/AWSComprehendService.h | 41 +++- AWSComprehend/AWSComprehendService.m | 23 ++ .../AWSComprehendNSSecureCodingTests.m | 25 +++ .../AWSGeneralComprehendTests.m | 48 +++++ 7 files changed, 602 insertions(+), 75 deletions(-) diff --git a/AWSComprehend/AWSComprehendModel.h b/AWSComprehend/AWSComprehendModel.h index 67211e09bfe..ca7d63ac19b 100644 --- a/AWSComprehend/AWSComprehendModel.h +++ b/AWSComprehend/AWSComprehendModel.h @@ -369,6 +369,17 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { AWSComprehendTargetedSentimentEntityTypeOther, }; +typedef NS_ENUM(NSInteger, AWSComprehendToxicContentType) { + AWSComprehendToxicContentTypeUnknown, + AWSComprehendToxicContentTypeGraphic, + AWSComprehendToxicContentTypeHarassmentOrAbuse, + AWSComprehendToxicContentTypeHateSpeech, + AWSComprehendToxicContentTypeInsult, + AWSComprehendToxicContentTypeProfanity, + AWSComprehendToxicContentTypeSexual, + AWSComprehendToxicContentTypeViolenceOrThreat, +}; + @class AWSComprehendAugmentedManifestsListItem; @class AWSComprehendBatchDetectDominantLanguageItemResult; @class AWSComprehendBatchDetectDominantLanguageRequest; @@ -475,6 +486,8 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @class AWSComprehendDetectSyntaxResponse; @class AWSComprehendDetectTargetedSentimentRequest; @class AWSComprehendDetectTargetedSentimentResponse; +@class AWSComprehendDetectToxicContentRequest; +@class AWSComprehendDetectToxicContentResponse; @class AWSComprehendDocumentClass; @class AWSComprehendDocumentClassificationConfig; @class AWSComprehendDocumentClassificationJobFilter; @@ -628,8 +641,11 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @class AWSComprehendTargetedSentimentEntity; @class AWSComprehendTargetedSentimentMention; @class AWSComprehendTaskConfig; +@class AWSComprehendTextSegment; @class AWSComprehendTopicsDetectionJobFilter; @class AWSComprehendTopicsDetectionJobProperties; +@class AWSComprehendToxicContent; +@class AWSComprehendToxicLabels; @class AWSComprehendUntagResourceRequest; @class AWSComprehendUntagResourceResponse; @class AWSComprehendUpdateDataSecurityConfig; @@ -1226,7 +1242,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { /** -

Use the Bytes parameter to input a text, PDF, Word or image file. You can also use the Bytes parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument output file.

Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you.

The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.

If you use the Bytes parameter, do not use the Text parameter.

+

Use the Bytes parameter to input a text, PDF, Word or image file.

When you classify a document using a custom model, you can also use the Bytes parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument output file.

To classify a document using the prompt safety classifier, use the Text parameter for input.

Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you.

The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.

If you use the Bytes parameter, do not use the Text parameter.

*/ @property (nonatomic, strong) NSData * _Nullable bytes; @@ -1236,7 +1252,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) AWSComprehendDocumentReaderConfig * _Nullable documentReaderConfig; /** -

The Amazon Resource Number (ARN) of the endpoint. For information about endpoints, see Managing endpoints.

+

The Amazon Resource Number (ARN) of the endpoint.

For prompt safety classification, Amazon Comprehend provides the endpoint ARN. For more information about prompt safety classifiers, see Prompt safety classification in the Amazon Comprehend Developer Guide

For custom classification, you create an endpoint for your custom model. For more information, see Using Amazon Comprehend endpoints.

*/ @property (nonatomic, strong) NSString * _Nullable endpointArn; @@ -1254,7 +1270,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { /** -

The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.

+

The classes used by the document being analyzed. These are used for models trained in multi-class mode. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.

For prompt safety classification, the response includes only two classes (SAFE_PROMPT and UNSAFE_PROMPT), along with a confidence score for each class. The value range of the score is zero to one, where one is the highest confidence.

*/ @property (nonatomic, strong) NSArray * _Nullable classes; @@ -1274,7 +1290,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) NSArray * _Nullable errors; /** -

The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.

+

The labels used in the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.

*/ @property (nonatomic, strong) NSArray * _Nullable labels; @@ -1404,7 +1420,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, assign) AWSComprehendLanguageCode languageCode; /** -

Indicates the mode in which the classifier will be trained. The classifier can be trained in multi-class mode, which identifies one and only one class for each document, or multi-label mode, which identifies one or more labels for each document. In multi-label mode, multiple labels for an individual document are separated by a delimiter. The default delimiter between labels is a pipe (|).

+

Indicates the mode in which the classifier will be trained. The classifier can be trained in multi-class (single-label) mode or multi-label mode. Multi-class mode identifies a single class label for each document and multi-label mode identifies one or more class labels for each document. Multiple labels for an individual document are separated by a delimiter. The default delimiter between labels is a pipe (|).

*/ @property (nonatomic, assign) AWSComprehendDocumentClassifierMode mode; @@ -1419,7 +1435,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) NSString * _Nullable modelPolicy; /** -

Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native classifier model.

+

Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native document model.

*/ @property (nonatomic, strong) AWSComprehendDocumentClassifierOutputDataConfig * _Nullable outputDataConfig; @@ -1602,7 +1618,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { /** -

To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version.

+

To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. Do not set TaskConfig or ModelType if you specify an ActiveModelArn.

*/ @property (nonatomic, strong) NSString * _Nullable activeModelArn; @@ -1632,7 +1648,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) NSString * _Nullable flywheelName; /** -

The model type.

+

The model type. You need to set ModelType if you are creating a flywheel for a new model.

*/ @property (nonatomic, assign) AWSComprehendModelType modelType; @@ -1642,7 +1658,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) NSArray * _Nullable tags; /** -

Configuration about the custom classifier associated with the flywheel.

+

Configuration about the model associated with the flywheel. You need to set TaskConfig if you are creating a flywheel for a new model.

*/ @property (nonatomic, strong) AWSComprehendTaskConfig * _Nullable taskConfig; @@ -2730,6 +2746,37 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end +/** + + */ +@interface AWSComprehendDetectToxicContentRequest : AWSRequest + + +/** +

The language of the input text. Currently, English is the only supported language.

+ */ +@property (nonatomic, assign) AWSComprehendLanguageCode languageCode; + +/** +

A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.

+ */ +@property (nonatomic, strong) NSArray * _Nullable textSegments; + +@end + +/** + + */ +@interface AWSComprehendDetectToxicContentResponse : AWSModel + + +/** +

Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.

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

Specifies the class that categorizes the document being analyzed

*/ @@ -2754,7 +2801,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end /** -

Configuration required for a custom classification model.

+

Configuration required for a document classification model.

Required parameters: [Mode] */ @interface AWSComprehendDocumentClassificationConfig : AWSModel @@ -2872,14 +2919,14 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /** -

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.

+

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @end /** -

The location of the training documents. This parameter is required in a request to create a native classifier model.

+

The location of the training documents. This parameter is required in a request to create a semi-structured document classification model.

Required parameters: [S3Uri] */ @interface AWSComprehendDocumentClassifierDocuments : AWSModel @@ -2947,12 +2994,12 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) AWSComprehendDocumentReaderConfig * _Nullable documentReaderConfig; /** -

The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native model.

+

The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native document model.

*/ @property (nonatomic, assign) AWSComprehendDocumentClassifierDocumentTypeFormat documentType; /** -

The S3 location of the training documents. This parameter is required in a request to create a native classifier model.

+

The S3 location of the training documents. This parameter is required in a request to create a native document model.

*/ @property (nonatomic, strong) AWSComprehendDocumentClassifierDocuments * _Nullable documents; @@ -2967,14 +3014,14 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) NSString * _Nullable s3Uri; /** -

This specifies the Amazon S3 location where the test annotations for an entity recognizer are located. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.

+

This specifies the Amazon S3 location that contains the test annotations for the document classifier. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.

*/ @property (nonatomic, strong) NSString * _Nullable testS3Uri; @end /** -

Provide the location for output data from a custom classifier job. This field is mandatory if you are training a native classifier model.

+

Provide the location for output data from a custom classifier job. This field is mandatory if you are training a native document model.

*/ @interface AWSComprehendDocumentClassifierOutputDataConfig : AWSModel @@ -3093,7 +3140,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) NSString * _Nullable volumeKmsKeyId; /** -

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.

+

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.

*/ @property (nonatomic, strong) AWSComprehendVpcConfig * _Nullable vpcConfig; @@ -3191,7 +3238,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, assign) AWSComprehendDocumentReadMode documentReadMode; /** -

Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:

  • TABLES - Returns information about any tables that are detected in the input document.

  • FORMS - Returns information and the data from any forms that are detected in the input document.

+

Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:

  • TABLES - Returns additional information about any tables that are detected in the input document.

  • FORMS - Returns additional information about any forms that are detected in the input document.

*/ @property (nonatomic, strong) NSArray * _Nullable featureTypes; @@ -3979,7 +4026,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { /** -

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

Entity types must not contain the following invalid characters: \n (line break), \\n (escaped line break, \r (carriage return), \\r (escaped carriage return), \t (tab), \\t (escaped tab), space, and , (comma).

+

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

Entity types must not contain the following invalid characters: \n (line break), \\n (escaped line break, \r (carriage return), \\r (escaped carriage return), \t (tab), \\t (escaped tab), and , (comma).

*/ @property (nonatomic, strong) NSString * _Nullable types; @@ -4316,7 +4363,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, assign) AWSComprehendFlywheelStatus status; /** -

Configuration about the custom classifier associated with the flywheel.

+

Configuration about the model associated with a flywheel.

*/ @property (nonatomic, strong) AWSComprehendTaskConfig * _Nullable taskConfig; @@ -4469,13 +4516,13 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end /** -

Provides additional detail about why the request failed:

  • Document size is too large - Check the size of your file and resubmit the request.

  • Document type is not supported - Check the file type and resubmit the request.

  • Too many pages in the document - Check the number of pages in your file and resubmit the request.

  • Access denied to Amazon Textract - Verify that your account has permission to use Amazon Textract API operations and resubmit the request.

+

Provides additional detail about why the request failed.

*/ @interface AWSComprehendInvalidRequestDetail : AWSModel /** -

Reason code is INVALID_DOCUMENT.

+

Reason codes include the following values:

  • DOCUMENT_SIZE_EXCEEDED - Document size is too large. Check the size of your file and resubmit the request.

  • UNSUPPORTED_DOC_TYPE - Document type is not supported. Check the file type and resubmit the request.

  • PAGE_LIMIT_EXCEEDED - Too many pages in the document. Check the number of pages in your file and resubmit the request.

  • TEXTRACT_ACCESS_DENIED - Access denied to Amazon Textract. Verify that your account has permission to use Amazon Textract API operations and resubmit the request.

  • NOT_TEXTRACT_JSON - Document is not Amazon Textract JSON format. Verify the format and resubmit the request.

  • MISMATCHED_TOTAL_PAGE_COUNT - Check the number of pages in your file and resubmit the request.

  • INVALID_DOCUMENT - Invalid document. Check the file and resubmit the request.

*/ @property (nonatomic, assign) AWSComprehendInvalidRequestDetailReason reason; @@ -5339,7 +5386,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end /** -

Contains the sentiment and sentiment score for one mention of an entity.

For more information about targeted sentiment, see Targeted sentiment.

+

Contains the sentiment and sentiment score for one mention of an entity.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

*/ @interface AWSComprehendMentionSentiment : AWSModel @@ -5364,7 +5411,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { /** -

ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

  • KMS Key Alias: "alias/ExampleAlias"

  • ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

+

ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. Specify the Key Id of a symmetric key, because you cannot use an asymmetric key for uploading data to S3.

The KmsKeyId can be one of the following formats:

  • KMS Key ID: "1234abcd-12ab-34cd-56ef-1234567890ab"

  • Amazon Resource Name (ARN) of a KMS Key: "arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"

  • KMS Key Alias: "alias/ExampleAlias"

  • ARN of a KMS Key Alias: "arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias"

*/ @property (nonatomic, strong) NSString * _Nullable kmsKeyId; @@ -6360,7 +6407,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @property (nonatomic, strong) NSString * _Nullable clientRequestToken; /** -

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

+

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

*/ @property (nonatomic, strong) NSString * _Nullable dataAccessRoleArn; @@ -6939,7 +6986,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end /** -

Information about one of the entities found by targeted sentiment analysis.

For more information about targeted sentiment, see Targeted sentiment.

+

Information about one of the entities found by targeted sentiment analysis.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

*/ @interface AWSComprehendTargetedSentimentEntity : AWSModel @@ -6957,7 +7004,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end /** -

Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.

For more information about targeted sentiment, see Targeted sentiment.

+

Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

*/ @interface AWSComprehendTargetedSentimentMention : AWSModel @@ -7000,14 +7047,14 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end /** -

Configuration about the custom classifier associated with the flywheel.

+

Configuration about the model associated with a flywheel.

Required parameters: [LanguageCode] */ @interface AWSComprehendTaskConfig : AWSModel /** -

Configuration required for a classification model.

+

Configuration required for a document classification model.

*/ @property (nonatomic, strong) AWSComprehendDocumentClassificationConfig * _Nullable documentClassificationConfig; @@ -7023,6 +7070,20 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end +/** +

One of the of text strings. Each string has a size limit of 1KB.

+ Required parameters: [Text] + */ +@interface AWSComprehendTextSegment : AWSModel + + +/** +

The text content.

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

Provides information for filtering topic detection jobs. For more information, see .

*/ @@ -7124,6 +7185,42 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end +/** +

Toxic content analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide

+ */ +@interface AWSComprehendToxicContent : AWSModel + + +/** +

The name of the toxic content type.

+ */ +@property (nonatomic, assign) AWSComprehendToxicContentType name; + +/** +

Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.

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

Toxicity analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.

+ */ +@interface AWSComprehendToxicLabels : AWSModel + + +/** +

Array of toxic content types identified in the string.

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

Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.

+ */ +@property (nonatomic, strong) NSNumber * _Nullable toxicity; + +@end + /** */ @@ -7280,7 +7377,7 @@ typedef NS_ENUM(NSInteger, AWSComprehendTargetedSentimentEntityType) { @end /** -

The system identified one of the following warnings while processing the input document:

  • The document to classify is plain text, but the classifier is a native model.

  • The document to classify is semi-structured, but the classifier is a plain-text model.

+

The system identified one of the following warnings while processing the input document:

  • The document to classify is plain text, but the classifier is a native document model.

  • The document to classify is semi-structured, but the classifier is a plain-text model.

*/ @interface AWSComprehendWarningsListItem : AWSModel diff --git a/AWSComprehend/AWSComprehendModel.m b/AWSComprehend/AWSComprehendModel.m index cc5aed6c6d8..a5a3a749438 100644 --- a/AWSComprehend/AWSComprehendModel.m +++ b/AWSComprehend/AWSComprehendModel.m @@ -3253,6 +3253,114 @@ + (NSValueTransformer *)entitiesJSONTransformer { @end +@implementation AWSComprehendDetectToxicContentRequest + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"languageCode" : @"LanguageCode", + @"textSegments" : @"TextSegments", + }; +} + ++ (NSValueTransformer *)languageCodeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"en"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeEn); + } + if ([value caseInsensitiveCompare:@"es"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeEs); + } + if ([value caseInsensitiveCompare:@"fr"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeFr); + } + if ([value caseInsensitiveCompare:@"de"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeDe); + } + if ([value caseInsensitiveCompare:@"it"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeIt); + } + if ([value caseInsensitiveCompare:@"pt"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodePt); + } + if ([value caseInsensitiveCompare:@"ar"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeAr); + } + if ([value caseInsensitiveCompare:@"hi"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeHi); + } + if ([value caseInsensitiveCompare:@"ja"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeJa); + } + if ([value caseInsensitiveCompare:@"ko"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeKo); + } + if ([value caseInsensitiveCompare:@"zh"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeZh); + } + if ([value caseInsensitiveCompare:@"zh-TW"] == NSOrderedSame) { + return @(AWSComprehendLanguageCodeZhTW); + } + return @(AWSComprehendLanguageCodeUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSComprehendLanguageCodeEn: + return @"en"; + case AWSComprehendLanguageCodeEs: + return @"es"; + case AWSComprehendLanguageCodeFr: + return @"fr"; + case AWSComprehendLanguageCodeDe: + return @"de"; + case AWSComprehendLanguageCodeIt: + return @"it"; + case AWSComprehendLanguageCodePt: + return @"pt"; + case AWSComprehendLanguageCodeAr: + return @"ar"; + case AWSComprehendLanguageCodeHi: + return @"hi"; + case AWSComprehendLanguageCodeJa: + return @"ja"; + case AWSComprehendLanguageCodeKo: + return @"ko"; + case AWSComprehendLanguageCodeZh: + return @"zh"; + case AWSComprehendLanguageCodeZhTW: + return @"zh-TW"; + default: + return nil; + } + }]; +} + ++ (NSValueTransformer *)textSegmentsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSComprehendTextSegment class]]; +} + +@end + +@implementation AWSComprehendDetectToxicContentResponse + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"resultList" : @"ResultList", + }; +} + ++ (NSValueTransformer *)resultListJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSComprehendToxicLabels class]]; +} + +@end + @implementation AWSComprehendDocumentClass + (BOOL)supportsSecureCoding { @@ -10833,6 +10941,20 @@ + (NSValueTransformer *)languageCodeJSONTransformer { @end +@implementation AWSComprehendTextSegment + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"text" : @"Text", + }; +} + +@end + @implementation AWSComprehendTopicsDetectionJobFilter + (BOOL)supportsSecureCoding { @@ -11002,6 +11124,86 @@ + (NSValueTransformer *)vpcConfigJSONTransformer { @end +@implementation AWSComprehendToxicContent + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"name" : @"Name", + @"score" : @"Score", + }; +} + ++ (NSValueTransformer *)nameJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"GRAPHIC"] == NSOrderedSame) { + return @(AWSComprehendToxicContentTypeGraphic); + } + if ([value caseInsensitiveCompare:@"HARASSMENT_OR_ABUSE"] == NSOrderedSame) { + return @(AWSComprehendToxicContentTypeHarassmentOrAbuse); + } + if ([value caseInsensitiveCompare:@"HATE_SPEECH"] == NSOrderedSame) { + return @(AWSComprehendToxicContentTypeHateSpeech); + } + if ([value caseInsensitiveCompare:@"INSULT"] == NSOrderedSame) { + return @(AWSComprehendToxicContentTypeInsult); + } + if ([value caseInsensitiveCompare:@"PROFANITY"] == NSOrderedSame) { + return @(AWSComprehendToxicContentTypeProfanity); + } + if ([value caseInsensitiveCompare:@"SEXUAL"] == NSOrderedSame) { + return @(AWSComprehendToxicContentTypeSexual); + } + if ([value caseInsensitiveCompare:@"VIOLENCE_OR_THREAT"] == NSOrderedSame) { + return @(AWSComprehendToxicContentTypeViolenceOrThreat); + } + return @(AWSComprehendToxicContentTypeUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSComprehendToxicContentTypeGraphic: + return @"GRAPHIC"; + case AWSComprehendToxicContentTypeHarassmentOrAbuse: + return @"HARASSMENT_OR_ABUSE"; + case AWSComprehendToxicContentTypeHateSpeech: + return @"HATE_SPEECH"; + case AWSComprehendToxicContentTypeInsult: + return @"INSULT"; + case AWSComprehendToxicContentTypeProfanity: + return @"PROFANITY"; + case AWSComprehendToxicContentTypeSexual: + return @"SEXUAL"; + case AWSComprehendToxicContentTypeViolenceOrThreat: + return @"VIOLENCE_OR_THREAT"; + default: + return nil; + } + }]; +} + +@end + +@implementation AWSComprehendToxicLabels + ++ (BOOL)supportsSecureCoding { + return YES; +} + ++ (NSDictionary *)JSONKeyPathsByPropertyKey { + return @{ + @"labels" : @"Labels", + @"toxicity" : @"Toxicity", + }; +} + ++ (NSValueTransformer *)labelsJSONTransformer { + return [NSValueTransformer awsmtl_JSONArrayTransformerWithModelClass:[AWSComprehendToxicContent class]]; +} + +@end + @implementation AWSComprehendUntagResourceRequest + (BOOL)supportsSecureCoding { diff --git a/AWSComprehend/AWSComprehendResources.m b/AWSComprehend/AWSComprehendResources.m index 3ed00f3eed5..5ed7ed945ab 100644 --- a/AWSComprehend/AWSComprehendResources.m +++ b/AWSComprehend/AWSComprehendResources.m @@ -170,7 +170,7 @@ - (NSString *)definitionString { {\"shape\":\"BatchSizeLimitExceededException\"},\ {\"shape\":\"InternalServerException\"}\ ],\ - \"documentation\":\"

Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.

For more information about targeted sentiment, see Targeted sentiment.

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

Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

\"\ },\ \"ClassifyDocument\":{\ \"name\":\"ClassifyDocument\",\ @@ -186,7 +186,7 @@ - (NSString *)definitionString { {\"shape\":\"TextSizeLimitExceededException\"},\ {\"shape\":\"InternalServerException\"}\ ],\ - \"documentation\":\"

Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.

You can input plain text or you can upload a single-page input document (text, PDF, Word, or image).

If the system detects errors while processing a page in the input document, the API response includes an entry in Errors that describes the errors.

If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.

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

Creates a classification request to analyze a single document in real-time. ClassifyDocument supports the following model types:

  • Custom classifier - a custom model that you have created and trained. For input, you can provide plain text, a single-page document (PDF, Word, or image), or Amazon Textract API output. For more information, see Custom classification in the Amazon Comprehend Developer Guide.

  • Prompt safety classifier - Amazon Comprehend provides a pre-trained model for classifying input prompts for generative AI applications. For input, you provide English plain text input. For prompt safety classification, the response includes only the Classes field. For more information about prompt safety classifiers, see Prompt safety classification in the Amazon Comprehend Developer Guide.

If the system detects errors while processing a page in the input document, the API response includes an Errors field that describes the errors.

If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.

\"\ },\ \"ContainsPiiEntities\":{\ \"name\":\"ContainsPiiEntities\",\ @@ -756,7 +756,23 @@ - (NSString *)definitionString { {\"shape\":\"UnsupportedLanguageException\"},\ {\"shape\":\"InternalServerException\"}\ ],\ - \"documentation\":\"

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

For more information about targeted sentiment, see Targeted sentiment.

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

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

\"\ + },\ + \"DetectToxicContent\":{\ + \"name\":\"DetectToxicContent\",\ + \"http\":{\ + \"method\":\"POST\",\ + \"requestUri\":\"/\"\ + },\ + \"input\":{\"shape\":\"DetectToxicContentRequest\"},\ + \"output\":{\"shape\":\"DetectToxicContentResponse\"},\ + \"errors\":[\ + {\"shape\":\"InvalidRequestException\"},\ + {\"shape\":\"TextSizeLimitExceededException\"},\ + {\"shape\":\"UnsupportedLanguageException\"},\ + {\"shape\":\"InternalServerException\"}\ + ],\ + \"documentation\":\"

Performs toxicity analysis on the list of text strings that you provide as input. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.

\"\ },\ \"ImportModel\":{\ \"name\":\"ImportModel\",\ @@ -1098,7 +1114,7 @@ - (NSString *)definitionString { {\"shape\":\"ResourceInUseException\"},\ {\"shape\":\"InternalServerException\"}\ ],\ - \"documentation\":\"

Starts an asynchronous document classification job. Use the DescribeDocumentClassificationJob operation to track the progress of the job.

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

Starts an asynchronous document classification job using a custom classification model. Use the DescribeDocumentClassificationJob operation to track the progress of the job.

\"\ },\ \"StartDominantLanguageDetectionJob\":{\ \"name\":\"StartDominantLanguageDetectionJob\",\ @@ -2015,11 +2031,11 @@ - (NSString *)definitionString { },\ \"EndpointArn\":{\ \"shape\":\"DocumentClassifierEndpointArn\",\ - \"documentation\":\"

The Amazon Resource Number (ARN) of the endpoint. For information about endpoints, see Managing endpoints.

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

The Amazon Resource Number (ARN) of the endpoint.

For prompt safety classification, Amazon Comprehend provides the endpoint ARN. For more information about prompt safety classifiers, see Prompt safety classification in the Amazon Comprehend Developer Guide

For custom classification, you create an endpoint for your custom model. For more information, see Using Amazon Comprehend endpoints.

\"\ },\ \"Bytes\":{\ \"shape\":\"SemiStructuredDocumentBlob\",\ - \"documentation\":\"

Use the Bytes parameter to input a text, PDF, Word or image file. You can also use the Bytes parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument output file.

Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you.

The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.

If you use the Bytes parameter, do not use the Text parameter.

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

Use the Bytes parameter to input a text, PDF, Word or image file.

When you classify a document using a custom model, you can also use the Bytes parameter to input an Amazon Textract DetectDocumentText or AnalyzeDocument output file.

To classify a document using the prompt safety classifier, use the Text parameter for input.

Provide the input document as a sequence of base64-encoded bytes. If your code uses an Amazon Web Services SDK to classify documents, the SDK may encode the document file bytes for you.

The maximum length of this field depends on the input document type. For details, see Inputs for real-time custom analysis in the Comprehend Developer Guide.

If you use the Bytes parameter, do not use the Text parameter.

\"\ },\ \"DocumentReaderConfig\":{\ \"shape\":\"DocumentReaderConfig\",\ @@ -2032,11 +2048,11 @@ - (NSString *)definitionString { \"members\":{\ \"Classes\":{\ \"shape\":\"ListOfClasses\",\ - \"documentation\":\"

The classes used by the document being analyzed. These are used for multi-class trained models. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.

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

The classes used by the document being analyzed. These are used for models trained in multi-class mode. Individual classes are mutually exclusive and each document is expected to have only a single class assigned to it. For example, an animal can be a dog or a cat, but not both at the same time.

For prompt safety classification, the response includes only two classes (SAFE_PROMPT and UNSAFE_PROMPT), along with a confidence score for each class. The value range of the score is zero to one, where one is the highest confidence.

\"\ },\ \"Labels\":{\ \"shape\":\"ListOfLabels\",\ - \"documentation\":\"

The labels used the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.

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

The labels used in the document being analyzed. These are used for multi-label trained models. Individual labels represent different categories that are related in some manner and are not mutually exclusive. For example, a movie can be just an action movie, or it can be an action movie, a science fiction movie, and a comedy, all at the same time.

\"\ },\ \"DocumentMetadata\":{\ \"shape\":\"DocumentMetadata\",\ @@ -2211,7 +2227,7 @@ - (NSString *)definitionString { },\ \"OutputDataConfig\":{\ \"shape\":\"DocumentClassifierOutputDataConfig\",\ - \"documentation\":\"

Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native classifier model.

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

Specifies the location for the output files from a custom classifier job. This parameter is required for a request that creates a native document model.

\"\ },\ \"ClientRequestToken\":{\ \"shape\":\"ClientRequestTokenString\",\ @@ -2232,7 +2248,7 @@ - (NSString *)definitionString { },\ \"Mode\":{\ \"shape\":\"DocumentClassifierMode\",\ - \"documentation\":\"

Indicates the mode in which the classifier will be trained. The classifier can be trained in multi-class mode, which identifies one and only one class for each document, or multi-label mode, which identifies one or more labels for each document. In multi-label mode, multiple labels for an individual document are separated by a delimiter. The default delimiter between labels is a pipe (|).

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

Indicates the mode in which the classifier will be trained. The classifier can be trained in multi-class (single-label) mode or multi-label mode. Multi-class mode identifies a single class label for each document and multi-label mode identifies one or more class labels for each document. Multiple labels for an individual document are separated by a delimiter. The default delimiter between labels is a pipe (|).

\"\ },\ \"ModelKmsKeyId\":{\ \"shape\":\"KmsKeyId\",\ @@ -2383,7 +2399,7 @@ - (NSString *)definitionString { },\ \"ActiveModelArn\":{\ \"shape\":\"ComprehendModelArn\",\ - \"documentation\":\"

To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version.

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

To associate an existing model with the flywheel, specify the Amazon Resource Number (ARN) of the model version. Do not set TaskConfig or ModelType if you specify an ActiveModelArn.

\"\ },\ \"DataAccessRoleArn\":{\ \"shape\":\"IamRoleArn\",\ @@ -2391,11 +2407,11 @@ - (NSString *)definitionString { },\ \"TaskConfig\":{\ \"shape\":\"TaskConfig\",\ - \"documentation\":\"

Configuration about the custom classifier associated with the flywheel.

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

Configuration about the model associated with the flywheel. You need to set TaskConfig if you are creating a flywheel for a new model.

\"\ },\ \"ModelType\":{\ \"shape\":\"ModelType\",\ - \"documentation\":\"

The model type.

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

The model type. You need to set ModelType if you are creating a flywheel for a new model.

\"\ },\ \"DataLakeS3Uri\":{\ \"shape\":\"FlywheelS3Uri\",\ @@ -3293,6 +3309,32 @@ - (NSString *)definitionString { },\ \"sensitive\":true\ },\ + \"DetectToxicContentRequest\":{\ + \"type\":\"structure\",\ + \"required\":[\ + \"TextSegments\",\ + \"LanguageCode\"\ + ],\ + \"members\":{\ + \"TextSegments\":{\ + \"shape\":\"ListOfTextSegments\",\ + \"documentation\":\"

A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.

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

The language of the input text. Currently, English is the only supported language.

\"\ + }\ + }\ + },\ + \"DetectToxicContentResponse\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"ResultList\":{\ + \"shape\":\"ListOfToxicLabels\",\ + \"documentation\":\"

Results of the content moderation analysis. Each entry in the results list contains a list of toxic content types identified in the text, along with a confidence score for each content type. The results list also includes a toxicity score for each entry in the results list.

\"\ + }\ + }\ + },\ \"DocumentClass\":{\ \"type\":\"structure\",\ \"members\":{\ @@ -3324,7 +3366,7 @@ - (NSString *)definitionString { \"documentation\":\"

One or more labels to associate with the custom classifier.

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

Configuration required for a custom classification model.

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

Configuration required for a document classification model.

\"\ },\ \"DocumentClassificationJobFilter\":{\ \"type\":\"structure\",\ @@ -3401,7 +3443,7 @@ - (NSString *)definitionString { },\ \"VpcConfig\":{\ \"shape\":\"VpcConfig\",\ - \"documentation\":\"

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.

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

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your document classification job. For more information, see Amazon VPC.

\"\ },\ \"FlywheelArn\":{\ \"shape\":\"ComprehendFlywheelArn\",\ @@ -3450,12 +3492,12 @@ - (NSString *)definitionString { \"documentation\":\"

The S3 URI location of the test documents included in the TestS3Uri CSV file. This field is not required if you do not specify a test CSV file.

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

The location of the training documents. This parameter is required in a request to create a native classifier model.

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

The location of the training documents. This parameter is required in a request to create a semi-structured document classification model.

\"\ },\ \"DocumentClassifierEndpointArn\":{\ \"type\":\"string\",\ \"max\":256,\ - \"pattern\":\"arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:document-classifier-endpoint/[a-zA-Z0-9](-*[a-zA-Z0-9])*\"\ + \"pattern\":\"arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:([0-9]{12}|aws):document-classifier-endpoint/[a-zA-Z0-9](-*[a-zA-Z0-9])*\"\ },\ \"DocumentClassifierFilter\":{\ \"type\":\"structure\",\ @@ -3492,7 +3534,7 @@ - (NSString *)definitionString { },\ \"TestS3Uri\":{\ \"shape\":\"S3Uri\",\ - \"documentation\":\"

This specifies the Amazon S3 location where the test annotations for an entity recognizer are located. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.

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

This specifies the Amazon S3 location that contains the test annotations for the document classifier. The URI must be in the same Amazon Web Services Region as the API endpoint that you are calling.

\"\ },\ \"LabelDelimiter\":{\ \"shape\":\"LabelDelimiter\",\ @@ -3504,11 +3546,11 @@ - (NSString *)definitionString { },\ \"DocumentType\":{\ \"shape\":\"DocumentClassifierDocumentTypeFormat\",\ - \"documentation\":\"

The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native model.

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

The type of input documents for training the model. Provide plain-text documents to create a plain-text model, and provide semi-structured documents to create a native document model.

\"\ },\ \"Documents\":{\ \"shape\":\"DocumentClassifierDocuments\",\ - \"documentation\":\"

The S3 location of the training documents. This parameter is required in a request to create a native classifier model.

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

The S3 location of the training documents. This parameter is required in a request to create a native document model.

\"\ },\ \"DocumentReaderConfig\":{\"shape\":\"DocumentReaderConfig\"}\ },\ @@ -3537,7 +3579,7 @@ - (NSString *)definitionString { \"documentation\":\"

The Amazon S3 prefix for the data lake location of the flywheel statistics.

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

Provide the location for output data from a custom classifier job. This field is mandatory if you are training a native classifier model.

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

Provide the location for output data from a custom classifier job. This field is mandatory if you are training a native document model.

\"\ },\ \"DocumentClassifierProperties\":{\ \"type\":\"structure\",\ @@ -3596,7 +3638,7 @@ - (NSString *)definitionString { },\ \"VpcConfig\":{\ \"shape\":\"VpcConfig\",\ - \"documentation\":\"

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.

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

Configuration parameters for a private Virtual Private Cloud (VPC) containing the resources you are using for your custom classifier. For more information, see Amazon VPC.

\"\ },\ \"Mode\":{\ \"shape\":\"DocumentClassifierMode\",\ @@ -3696,7 +3738,7 @@ - (NSString *)definitionString { },\ \"DocumentReadFeatureTypes\":{\ \"type\":\"string\",\ - \"documentation\":\"

Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:

  • TABLES - Returns additional information about any tables that are detected in the input document.

  • FORMS - Returns additional information about any forms that are detected in the input document.

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

TABLES or FORMS

\",\ \"enum\":[\ \"TABLES\",\ \"FORMS\"\ @@ -3723,7 +3765,7 @@ - (NSString *)definitionString { },\ \"FeatureTypes\":{\ \"shape\":\"ListOfDocumentReadFeatureTypes\",\ - \"documentation\":\"

Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:

  • TABLES - Returns information about any tables that are detected in the input document.

  • FORMS - Returns information and the data from any forms that are detected in the input document.

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

Specifies the type of Amazon Textract features to apply. If you chose TEXTRACT_ANALYZE_DOCUMENT as the read action, you must specify one or both of the following values:

  • TABLES - Returns additional information about any tables that are detected in the input document.

  • FORMS - Returns additional information about any forms that are detected in the input document.

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

Provides configuration parameters to override the default actions for extracting text from PDF documents and image files.

By default, Amazon Comprehend performs the following actions to extract text from files, based on the input file type:

  • Word files - Amazon Comprehend parser extracts the text.

  • Digital PDF files - Amazon Comprehend parser extracts the text.

  • Image files and scanned PDF files - Amazon Comprehend uses the Amazon Textract DetectDocumentText API to extract the text.

DocumentReaderConfig does not apply to plain text files or Word files.

For image files and PDF documents, you can override these default actions using the fields listed below. For more information, see Setting text extraction options in the Comprehend Developer Guide.

\"\ @@ -4437,7 +4479,7 @@ - (NSString *)definitionString { \"members\":{\ \"Type\":{\ \"shape\":\"EntityTypeName\",\ - \"documentation\":\"

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

Entity types must not contain the following invalid characters: \\\\n (line break), \\\\\\\\n (escaped line break, \\\\r (carriage return), \\\\\\\\r (escaped carriage return), \\\\t (tab), \\\\\\\\t (escaped tab), space, and , (comma).

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

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

Entity types must not contain the following invalid characters: \\\\n (line break), \\\\\\\\n (escaped line break, \\\\r (carriage return), \\\\\\\\r (escaped carriage return), \\\\t (tab), \\\\\\\\t (escaped tab), and , (comma).

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

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

\"\ @@ -4699,7 +4741,7 @@ - (NSString *)definitionString { },\ \"TaskConfig\":{\ \"shape\":\"TaskConfig\",\ - \"documentation\":\"

Configuration about the custom classifier associated with the flywheel.

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

Configuration about the model associated with a flywheel.

\"\ },\ \"DataLakeS3Uri\":{\ \"shape\":\"S3Uri\",\ @@ -4909,10 +4951,10 @@ - (NSString *)definitionString { \"members\":{\ \"Reason\":{\ \"shape\":\"InvalidRequestDetailReason\",\ - \"documentation\":\"

Reason code is INVALID_DOCUMENT.

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

Reason codes include the following values:

  • DOCUMENT_SIZE_EXCEEDED - Document size is too large. Check the size of your file and resubmit the request.

  • UNSUPPORTED_DOC_TYPE - Document type is not supported. Check the file type and resubmit the request.

  • PAGE_LIMIT_EXCEEDED - Too many pages in the document. Check the number of pages in your file and resubmit the request.

  • TEXTRACT_ACCESS_DENIED - Access denied to Amazon Textract. Verify that your account has permission to use Amazon Textract API operations and resubmit the request.

  • NOT_TEXTRACT_JSON - Document is not Amazon Textract JSON format. Verify the format and resubmit the request.

  • MISMATCHED_TOTAL_PAGE_COUNT - Check the number of pages in your file and resubmit the request.

  • INVALID_DOCUMENT - Invalid document. Check the file and resubmit the request.

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

Provides additional detail about why the request failed:

  • Document size is too large - Check the size of your file and resubmit the request.

  • Document type is not supported - Check the file type and resubmit the request.

  • Too many pages in the document - Check the number of pages in your file and resubmit the request.

  • Access denied to Amazon Textract - Verify that your account has permission to use Amazon Textract API operations and resubmit the request.

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

Provides additional detail about why the request failed.

\"\ },\ \"InvalidRequestDetailReason\":{\ \"type\":\"string\",\ @@ -5617,6 +5659,20 @@ - (NSString *)definitionString { \"type\":\"list\",\ \"member\":{\"shape\":\"TargetedSentimentEntity\"}\ },\ + \"ListOfTextSegments\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"TextSegment\"},\ + \"min\":1,\ + \"sensitive\":true\ + },\ + \"ListOfToxicContent\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"ToxicContent\"}\ + },\ + \"ListOfToxicLabels\":{\ + \"type\":\"list\",\ + \"member\":{\"shape\":\"ToxicLabels\"}\ + },\ \"ListOfWarnings\":{\ \"type\":\"list\",\ \"member\":{\"shape\":\"WarningsListItem\"}\ @@ -5784,7 +5840,7 @@ - (NSString *)definitionString { },\ \"SentimentScore\":{\"shape\":\"SentimentScore\"}\ },\ - \"documentation\":\"

Contains the sentiment and sentiment score for one mention of an entity.

For more information about targeted sentiment, see Targeted sentiment.

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

Contains the sentiment and sentiment score for one mention of an entity.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

\"\ },\ \"ModelStatus\":{\ \"type\":\"string\",\ @@ -5822,7 +5878,7 @@ - (NSString *)definitionString { },\ \"KmsKeyId\":{\ \"shape\":\"KmsKeyId\",\ - \"documentation\":\"

ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. The KmsKeyId can be one of the following formats:

  • KMS Key ID: \\\"1234abcd-12ab-34cd-56ef-1234567890ab\\\"

  • Amazon Resource Name (ARN) of a KMS Key: \\\"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\\\"

  • KMS Key Alias: \\\"alias/ExampleAlias\\\"

  • ARN of a KMS Key Alias: \\\"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias\\\"

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

ID for the Amazon Web Services Key Management Service (KMS) key that Amazon Comprehend uses to encrypt the output results from an analysis job. Specify the Key Id of a symmetric key, because you cannot use an asymmetric key for uploading data to S3.

The KmsKeyId can be one of the following formats:

  • KMS Key ID: \\\"1234abcd-12ab-34cd-56ef-1234567890ab\\\"

  • Amazon Resource Name (ARN) of a KMS Key: \\\"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab\\\"

  • KMS Key Alias: \\\"alias/ExampleAlias\\\"

  • ARN of a KMS Key Alias: \\\"arn:aws:kms:us-west-2:111122223333:alias/ExampleAlias\\\"

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

Provides configuration parameters for the output of inference jobs.

\"\ @@ -6838,7 +6894,7 @@ - (NSString *)definitionString { },\ \"DataAccessRoleArn\":{\ \"shape\":\"IamRoleArn\",\ - \"documentation\":\"

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

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

The Amazon Resource Name (ARN) of the IAM role that grants Amazon Comprehend read access to your input data. For more information, see Role-based permissions.

\"\ },\ \"JobName\":{\ \"shape\":\"JobName\",\ @@ -7340,7 +7396,7 @@ - (NSString *)definitionString { \"documentation\":\"

An array of mentions of the entity in the document. The array represents a co-reference group. See Co-reference group for an example.

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

Information about one of the entities found by targeted sentiment analysis.

For more information about targeted sentiment, see Targeted sentiment.

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

Information about one of the entities found by targeted sentiment analysis.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

\"\ },\ \"TargetedSentimentEntityType\":{\ \"type\":\"string\",\ @@ -7396,7 +7452,7 @@ - (NSString *)definitionString { \"documentation\":\"

The offset into the document text where the mention ends.

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

Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.

For more information about targeted sentiment, see Targeted sentiment.

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

Information about one mention of an entity. The mention information includes the location of the mention in the text and the sentiment of the mention.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

\"\ },\ \"TaskConfig\":{\ \"type\":\"structure\",\ @@ -7408,14 +7464,25 @@ - (NSString *)definitionString { },\ \"DocumentClassificationConfig\":{\ \"shape\":\"DocumentClassificationConfig\",\ - \"documentation\":\"

Configuration required for a classification model.

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

Configuration required for a document classification model.

\"\ },\ \"EntityRecognitionConfig\":{\ \"shape\":\"EntityRecognitionConfig\",\ \"documentation\":\"

Configuration required for an entity recognition model.

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

Configuration about the custom classifier associated with the flywheel.

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

Configuration about the model associated with a flywheel.

\"\ + },\ + \"TextSegment\":{\ + \"type\":\"structure\",\ + \"required\":[\"Text\"],\ + \"members\":{\ + \"Text\":{\ + \"shape\":\"CustomerInputString\",\ + \"documentation\":\"

The text content.

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

One of the of text strings. Each string has a size limit of 1KB.

\"\ },\ \"TextSizeLimitExceededException\":{\ \"type\":\"structure\",\ @@ -7534,12 +7601,52 @@ - (NSString *)definitionString { \"type\":\"list\",\ \"member\":{\"shape\":\"TopicsDetectionJobProperties\"}\ },\ + \"ToxicContent\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Name\":{\ + \"shape\":\"ToxicContentType\",\ + \"documentation\":\"

The name of the toxic content type.

\"\ + },\ + \"Score\":{\ + \"shape\":\"Float\",\ + \"documentation\":\"

Model confidence in the detected content type. Value range is zero to one, where one is highest confidence.

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

Toxic content analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide

\"\ + },\ + \"ToxicContentType\":{\ + \"type\":\"string\",\ + \"enum\":[\ + \"GRAPHIC\",\ + \"HARASSMENT_OR_ABUSE\",\ + \"HATE_SPEECH\",\ + \"INSULT\",\ + \"PROFANITY\",\ + \"SEXUAL\",\ + \"VIOLENCE_OR_THREAT\"\ + ]\ + },\ + \"ToxicLabels\":{\ + \"type\":\"structure\",\ + \"members\":{\ + \"Labels\":{\ + \"shape\":\"ListOfToxicContent\",\ + \"documentation\":\"

Array of toxic content types identified in the string.

\"\ + },\ + \"Toxicity\":{\ + \"shape\":\"Float\",\ + \"documentation\":\"

Overall toxicity score for the string. Value range is zero to one, where one is the highest confidence.

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

Toxicity analysis result for one string. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.

\"\ + },\ \"UnsupportedLanguageException\":{\ \"type\":\"structure\",\ \"members\":{\ \"Message\":{\"shape\":\"String\"}\ },\ - \"documentation\":\"

Amazon Comprehend can't process the language of the input text. For custom entity recognition APIs, only English, Spanish, French, Italian, German, or Portuguese are accepted. For a list of supported languages, Supported languages in the Comprehend Developer Guide.

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

Amazon Comprehend can't process the language of the input text. For a list of supported languages, Supported languages in the Comprehend Developer Guide.

\",\ \"exception\":true\ },\ \"UntagResourceRequest\":{\ @@ -7684,7 +7791,7 @@ - (NSString *)definitionString { \"documentation\":\"

Text message associated with the warning.

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

The system identified one of the following warnings while processing the input document:

  • The document to classify is plain text, but the classifier is a native model.

  • The document to classify is semi-structured, but the classifier is a plain-text model.

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

The system identified one of the following warnings while processing the input document:

  • The document to classify is plain text, but the classifier is a native document model.

  • The document to classify is semi-structured, but the classifier is a plain-text model.

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

Amazon Comprehend is an Amazon Web Services service for gaining insight into the content of documents. Use these actions to determine the topics contained in your documents, the topics they discuss, the predominant sentiment expressed in them, the predominant language used, and more.

\"\ diff --git a/AWSComprehend/AWSComprehendService.h b/AWSComprehend/AWSComprehendService.h index 146217f7da7..09283d5ce84 100644 --- a/AWSComprehend/AWSComprehendService.h +++ b/AWSComprehend/AWSComprehendService.h @@ -300,7 +300,7 @@ FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; - (void)batchDetectSyntax:(AWSComprehendBatchDetectSyntaxRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendBatchDetectSyntaxResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.

For more information about targeted sentiment, see Targeted sentiment.

+

Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the BatchDetectTargetedSentiment service method. @@ -312,7 +312,7 @@ FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; - (AWSTask *)batchDetectTargetedSentiment:(AWSComprehendBatchDetectTargetedSentimentRequest *)request; /** -

Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.

For more information about targeted sentiment, see Targeted sentiment.

+

Inspects a batch of documents and returns a sentiment analysis for each entity identified in the documents.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the BatchDetectTargetedSentiment service method. @param completionHandler The completion handler to call when the load request is complete. @@ -325,7 +325,7 @@ FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; - (void)batchDetectTargetedSentiment:(AWSComprehendBatchDetectTargetedSentimentRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendBatchDetectTargetedSentimentResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.

You can input plain text or you can upload a single-page input document (text, PDF, Word, or image).

If the system detects errors while processing a page in the input document, the API response includes an entry in Errors that describes the errors.

If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.

+

Creates a classification request to analyze a single document in real-time. ClassifyDocument supports the following model types:

  • Custom classifier - a custom model that you have created and trained. For input, you can provide plain text, a single-page document (PDF, Word, or image), or Amazon Textract API output. For more information, see Custom classification in the Amazon Comprehend Developer Guide.

  • Prompt safety classifier - Amazon Comprehend provides a pre-trained model for classifying input prompts for generative AI applications. For input, you provide English plain text input. For prompt safety classification, the response includes only the Classes field. For more information about prompt safety classifiers, see Prompt safety classification in the Amazon Comprehend Developer Guide.

If the system detects errors while processing a page in the input document, the API response includes an Errors field that describes the errors.

If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the ClassifyDocument service method. @@ -337,7 +337,7 @@ FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; - (AWSTask *)classifyDocument:(AWSComprehendClassifyDocumentRequest *)request; /** -

Creates a new document classification request to analyze a single document in real-time, using a previously created and trained custom model and an endpoint.

You can input plain text or you can upload a single-page input document (text, PDF, Word, or image).

If the system detects errors while processing a page in the input document, the API response includes an entry in Errors that describes the errors.

If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.

+

Creates a classification request to analyze a single document in real-time. ClassifyDocument supports the following model types:

  • Custom classifier - a custom model that you have created and trained. For input, you can provide plain text, a single-page document (PDF, Word, or image), or Amazon Textract API output. For more information, see Custom classification in the Amazon Comprehend Developer Guide.

  • Prompt safety classifier - Amazon Comprehend provides a pre-trained model for classifying input prompts for generative AI applications. For input, you provide English plain text input. For prompt safety classification, the response includes only the Classes field. For more information about prompt safety classifiers, see Prompt safety classification in the Amazon Comprehend Developer Guide.

If the system detects errors while processing a page in the input document, the API response includes an Errors field that describes the errors.

If the system detects a document-level error in your input document, the API returns an InvalidRequestException error response. For details about this exception, see Errors in semi-structured documents in the Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the ClassifyDocument service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1175,7 +1175,7 @@ FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; - (void)detectSyntax:(AWSComprehendDetectSyntaxRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectSyntaxResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

For more information about targeted sentiment, see Targeted sentiment.

+

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DetectTargetedSentiment service method. @@ -1187,7 +1187,7 @@ FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; - (AWSTask *)detectTargetedSentiment:(AWSComprehendDetectTargetedSentimentRequest *)request; /** -

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

For more information about targeted sentiment, see Targeted sentiment.

+

Inspects the input text and returns a sentiment analysis for each entity identified in the text.

For more information about targeted sentiment, see Targeted sentiment in the Amazon Comprehend Developer Guide.

@param request A container for the necessary parameters to execute the DetectTargetedSentiment service method. @param completionHandler The completion handler to call when the load request is complete. @@ -1199,6 +1199,31 @@ FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; */ - (void)detectTargetedSentiment:(AWSComprehendDetectTargetedSentimentRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectTargetedSentimentResponse * _Nullable response, NSError * _Nullable error))completionHandler; +/** +

Performs toxicity analysis on the list of text strings that you provide as input. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.

+ + @param request A container for the necessary parameters to execute the DetectToxicContent service method. + + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSComprehendDetectToxicContentResponse`. On failed execution, `task.error` may contain an `NSError` with `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. + + @see AWSComprehendDetectToxicContentRequest + @see AWSComprehendDetectToxicContentResponse + */ +- (AWSTask *)detectToxicContent:(AWSComprehendDetectToxicContentRequest *)request; + +/** +

Performs toxicity analysis on the list of text strings that you provide as input. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.

+ + @param request A container for the necessary parameters to execute the DetectToxicContent 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 `AWSComprehendErrorDomain` domain and the following error code: `AWSComprehendErrorInvalidRequest`, `AWSComprehendErrorTextSizeLimitExceeded`, `AWSComprehendErrorUnsupportedLanguage`, `AWSComprehendErrorInternalServer`. + + @see AWSComprehendDetectToxicContentRequest + @see AWSComprehendDetectToxicContentResponse + */ +- (void)detectToxicContent:(AWSComprehendDetectToxicContentRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendDetectToxicContentResponse * _Nullable response, NSError * _Nullable error))completionHandler; + /**

Creates a new custom model that replicates a source custom model that you import. The source model can be in your Amazon Web Services account or another one.

If the source model is in another Amazon Web Services account, then it must have a resource-based policy that authorizes you to import it.

The source model must be in the same Amazon Web Services Region that you're using when you import. You can't import a model that's in a different Region.

@@ -1700,7 +1725,7 @@ FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; - (void)putResourcePolicy:(AWSComprehendPutResourcePolicyRequest *)request completionHandler:(void (^ _Nullable)(AWSComprehendPutResourcePolicyResponse * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Starts an asynchronous document classification job. Use the DescribeDocumentClassificationJob operation to track the progress of the job.

+

Starts an asynchronous document classification job using a custom classification model. Use the DescribeDocumentClassificationJob operation to track the progress of the job.

@param request A container for the necessary parameters to execute the StartDocumentClassificationJob service method. @@ -1712,7 +1737,7 @@ FOUNDATION_EXPORT NSString *const AWSComprehendSDKVersion; - (AWSTask *)startDocumentClassificationJob:(AWSComprehendStartDocumentClassificationJobRequest *)request; /** -

Starts an asynchronous document classification job. Use the DescribeDocumentClassificationJob operation to track the progress of the job.

+

Starts an asynchronous document classification job using a custom classification model. Use the DescribeDocumentClassificationJob operation to track the progress of the job.

@param request A container for the necessary parameters to execute the StartDocumentClassificationJob service method. @param completionHandler The completion handler to call when the load request is complete. diff --git a/AWSComprehend/AWSComprehendService.m b/AWSComprehend/AWSComprehendService.m index df5c0aa6973..a03a28a0ade 100644 --- a/AWSComprehend/AWSComprehendService.m +++ b/AWSComprehend/AWSComprehendService.m @@ -1232,6 +1232,29 @@ - (void)detectTargetedSentiment:(AWSComprehendDetectTargetedSentimentRequest *)r }]; } +- (AWSTask *)detectToxicContent:(AWSComprehendDetectToxicContentRequest *)request { + return [self invokeRequest:request + HTTPMethod:AWSHTTPMethodPOST + URLString:@"" + targetPrefix:@"Comprehend_20171127" + operationName:@"DetectToxicContent" + outputClass:[AWSComprehendDetectToxicContentResponse class]]; +} + +- (void)detectToxicContent:(AWSComprehendDetectToxicContentRequest *)request + completionHandler:(void (^)(AWSComprehendDetectToxicContentResponse *response, NSError *error))completionHandler { + [[self detectToxicContent:request] continueWithBlock:^id _Nullable(AWSTask * _Nonnull task) { + AWSComprehendDetectToxicContentResponse *result = task.result; + NSError *error = task.error; + + if (completionHandler) { + completionHandler(result, error); + } + + return nil; + }]; +} + - (AWSTask *)importModel:(AWSComprehendImportModelRequest *)request { return [self invokeRequest:request HTTPMethod:AWSHTTPMethodPOST diff --git a/AWSComprehendUnitTests/AWSComprehendNSSecureCodingTests.m b/AWSComprehendUnitTests/AWSComprehendNSSecureCodingTests.m index 5257da79b6c..0773866eb51 100644 --- a/AWSComprehendUnitTests/AWSComprehendNSSecureCodingTests.m +++ b/AWSComprehendUnitTests/AWSComprehendNSSecureCodingTests.m @@ -125,6 +125,8 @@ - (void) test_AWSComprehendDetectSyntaxRequest API_AVAILABLE(ios(11)); - (void) test_AWSComprehendDetectSyntaxResponse API_AVAILABLE(ios(11)); - (void) test_AWSComprehendDetectTargetedSentimentRequest API_AVAILABLE(ios(11)); - (void) test_AWSComprehendDetectTargetedSentimentResponse API_AVAILABLE(ios(11)); +- (void) test_AWSComprehendDetectToxicContentRequest API_AVAILABLE(ios(11)); +- (void) test_AWSComprehendDetectToxicContentResponse API_AVAILABLE(ios(11)); - (void) test_AWSComprehendDocumentClass API_AVAILABLE(ios(11)); - (void) test_AWSComprehendDocumentClassificationConfig API_AVAILABLE(ios(11)); - (void) test_AWSComprehendDocumentClassificationJobFilter API_AVAILABLE(ios(11)); @@ -278,8 +280,11 @@ - (void) test_AWSComprehendTargetedSentimentDetectionJobProperties API_AVAILABLE - (void) test_AWSComprehendTargetedSentimentEntity API_AVAILABLE(ios(11)); - (void) test_AWSComprehendTargetedSentimentMention API_AVAILABLE(ios(11)); - (void) test_AWSComprehendTaskConfig API_AVAILABLE(ios(11)); +- (void) test_AWSComprehendTextSegment API_AVAILABLE(ios(11)); - (void) test_AWSComprehendTopicsDetectionJobFilter API_AVAILABLE(ios(11)); - (void) test_AWSComprehendTopicsDetectionJobProperties API_AVAILABLE(ios(11)); +- (void) test_AWSComprehendToxicContent API_AVAILABLE(ios(11)); +- (void) test_AWSComprehendToxicLabels API_AVAILABLE(ios(11)); - (void) test_AWSComprehendUntagResourceRequest API_AVAILABLE(ios(11)); - (void) test_AWSComprehendUntagResourceResponse API_AVAILABLE(ios(11)); - (void) test_AWSComprehendUpdateDataSecurityConfig API_AVAILABLE(ios(11)); @@ -718,6 +723,14 @@ - (void) test_AWSComprehendDetectTargetedSentimentResponse { [self validateSecureCodingForClass:[AWSComprehendDetectTargetedSentimentResponse class]]; } +- (void) test_AWSComprehendDetectToxicContentRequest { + [self validateSecureCodingForClass:[AWSComprehendDetectToxicContentRequest class]]; +} + +- (void) test_AWSComprehendDetectToxicContentResponse { + [self validateSecureCodingForClass:[AWSComprehendDetectToxicContentResponse class]]; +} + - (void) test_AWSComprehendDocumentClass { [self validateSecureCodingForClass:[AWSComprehendDocumentClass class]]; } @@ -1330,6 +1343,10 @@ - (void) test_AWSComprehendTaskConfig { [self validateSecureCodingForClass:[AWSComprehendTaskConfig class]]; } +- (void) test_AWSComprehendTextSegment { + [self validateSecureCodingForClass:[AWSComprehendTextSegment class]]; +} + - (void) test_AWSComprehendTopicsDetectionJobFilter { [self validateSecureCodingForClass:[AWSComprehendTopicsDetectionJobFilter class]]; } @@ -1338,6 +1355,14 @@ - (void) test_AWSComprehendTopicsDetectionJobProperties { [self validateSecureCodingForClass:[AWSComprehendTopicsDetectionJobProperties class]]; } +- (void) test_AWSComprehendToxicContent { + [self validateSecureCodingForClass:[AWSComprehendToxicContent class]]; +} + +- (void) test_AWSComprehendToxicLabels { + [self validateSecureCodingForClass:[AWSComprehendToxicLabels class]]; +} + - (void) test_AWSComprehendUntagResourceRequest { [self validateSecureCodingForClass:[AWSComprehendUntagResourceRequest class]]; } diff --git a/AWSComprehendUnitTests/AWSGeneralComprehendTests.m b/AWSComprehendUnitTests/AWSGeneralComprehendTests.m index 9fdc962966b..fe1dfa9a69c 100644 --- a/AWSComprehendUnitTests/AWSGeneralComprehendTests.m +++ b/AWSComprehendUnitTests/AWSGeneralComprehendTests.m @@ -2025,6 +2025,54 @@ - (void)testDetectTargetedSentimentCompletionHandler { [AWSComprehend removeComprehendForKey:key]; } +- (void)testDetectToxicContent { + NSString *key = @"testDetectToxicContent"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSComprehend registerComprehendWithConfiguration:configuration forKey:key]; + + AWSComprehend *awsClient = [AWSComprehend ComprehendForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + [[[[AWSComprehend ComprehendForKey:key] detectToxicContent:[AWSComprehendDetectToxicContentRequest 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]]); + + [AWSComprehend removeComprehendForKey:key]; +} + +- (void)testDetectToxicContentCompletionHandler { + NSString *key = @"testDetectToxicContent"; + AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; + [AWSComprehend registerComprehendWithConfiguration:configuration forKey:key]; + + AWSComprehend *awsClient = [AWSComprehend ComprehendForKey:key]; + XCTAssertNotNil(awsClient); + XCTAssertNotNil(mockNetworking); + [awsClient setValue:mockNetworking forKey:@"networking"]; + + dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); + + [[AWSComprehend ComprehendForKey:key] detectToxicContent:[AWSComprehendDetectToxicContentRequest new] completionHandler:^(AWSComprehendDetectToxicContentResponse* _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]]); + + [AWSComprehend removeComprehendForKey:key]; +} + - (void)testImportModel { NSString *key = @"testImportModel"; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:nil]; From dcaf1b727cc3efccf5e9174c6776196864751f36 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Thu, 28 Dec 2023 11:06:35 -0800 Subject: [PATCH 09/13] feat(AWSLocation): update models to latest (#5116) --- AWSLocation/AWSLocationModel.h | 25 +++++++++++++++++++++-- AWSLocation/AWSLocationModel.m | 32 ++++++++++++++++++++++++++++++ AWSLocation/AWSLocationResources.m | 23 +++++++++++++++++++-- 3 files changed, 76 insertions(+), 4 deletions(-) diff --git a/AWSLocation/AWSLocationModel.h b/AWSLocation/AWSLocationModel.h index 4754788bcd2..4c5029fff52 100644 --- a/AWSLocation/AWSLocationModel.h +++ b/AWSLocation/AWSLocationModel.h @@ -60,6 +60,12 @@ typedef NS_ENUM(NSInteger, AWSLocationIntendedUse) { AWSLocationIntendedUseStorage, }; +typedef NS_ENUM(NSInteger, AWSLocationOptimizationMode) { + AWSLocationOptimizationModeUnknown, + AWSLocationOptimizationModeFastestRoute, + AWSLocationOptimizationModeShortestRoute, +}; + typedef NS_ENUM(NSInteger, AWSLocationPositionFiltering) { AWSLocationPositionFilteringUnknown, AWSLocationPositionFilteringTimeBased, @@ -869,6 +875,11 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) { @interface AWSLocationCalculateRouteRequest : AWSRequest +/** +

Specifies the desired time of arrival. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.

ArrivalTime is not supported Esri.

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

The name of the route calculator resource that you want to use to calculate the route.

*/ @@ -890,7 +901,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) { @property (nonatomic, strong) NSArray * _Nullable departurePosition; /** -

Specifies the desired time of departure. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.

Setting a departure time in the past returns a 400 ValidationException error.

  • In ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. For example, 2020–07-2T12:15:20.000Z+01:00

+

Specifies the desired time of departure. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.

  • In ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. For example, 2020–07-2T12:15:20.000Z+01:00

*/ @property (nonatomic, strong) NSDate * _Nullable departureTime; @@ -914,6 +925,11 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) { */ @property (nonatomic, strong) NSString * _Nullable key; +/** +

Specifies the distance to optimize for when calculating a route.

+ */ +@property (nonatomic, assign) AWSLocationOptimizationMode optimizeFor; + /**

Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. You can choose Car, Truck, Walking, Bicycle or Motorcycle as options for the TravelMode.

Bicycle and Motorcycle are only valid when using Grab as a data provider, and only within Southeast Asia.

Truck is not available for Grab.

For more details on the using Grab for routing, including areas of coverage, see GrabMaps in the Amazon Location Service Developer Guide.

The TravelMode you specify also determines how you specify route preferences:

  • If traveling by Car use the CarModeOptions parameter.

  • If traveling by Truck use the TruckModeOptions parameter.

Default Value: Car

*/ @@ -2536,7 +2552,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) { /** -

The geomerty used to filter device positions.

+

The geometry used to filter device positions.

*/ @property (nonatomic, strong) AWSLocationTrackingFilterGeometry * _Nullable filterGeometry; @@ -3305,6 +3321,11 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) { */ @property (nonatomic, strong) NSString * _Nullable street; +/** +

An area that's part of a larger municipality. For example, Blissville is a submunicipality in the Queen County in New York.

This property supported by Esri and OpenData. The Esri property is district, and the OpenData property is borough.

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

A county, or an area that's part of a larger region. For example, Metro Vancouver.

*/ diff --git a/AWSLocation/AWSLocationModel.m b/AWSLocation/AWSLocationModel.m index 9fcaef13b58..1bf7cfe59d0 100644 --- a/AWSLocation/AWSLocationModel.m +++ b/AWSLocation/AWSLocationModel.m @@ -730,6 +730,7 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ + @"arrivalTime" : @"ArrivalTime", @"calculatorName" : @"CalculatorName", @"carModeOptions" : @"CarModeOptions", @"departNow" : @"DepartNow", @@ -739,12 +740,21 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"distanceUnit" : @"DistanceUnit", @"includeLegGeometry" : @"IncludeLegGeometry", @"key" : @"Key", + @"optimizeFor" : @"OptimizeFor", @"travelMode" : @"TravelMode", @"truckModeOptions" : @"TruckModeOptions", @"waypointPositions" : @"WaypointPositions", }; } ++ (NSValueTransformer *)arrivalTimeJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^id(NSNumber *number) { + return [NSDate dateWithTimeIntervalSince1970:[number doubleValue]]; + } reverseBlock:^id(NSDate *date) { + return [NSString stringWithFormat:@"%f", [date timeIntervalSince1970]]; + }]; +} + + (NSValueTransformer *)carModeOptionsJSONTransformer { return [NSValueTransformer awsmtl_JSONDictionaryTransformerWithModelClass:[AWSLocationCalculateRouteCarModeOptions class]]; } @@ -778,6 +788,27 @@ + (NSValueTransformer *)distanceUnitJSONTransformer { }]; } ++ (NSValueTransformer *)optimizeForJSONTransformer { + return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { + if ([value caseInsensitiveCompare:@"FastestRoute"] == NSOrderedSame) { + return @(AWSLocationOptimizationModeFastestRoute); + } + if ([value caseInsensitiveCompare:@"ShortestRoute"] == NSOrderedSame) { + return @(AWSLocationOptimizationModeShortestRoute); + } + return @(AWSLocationOptimizationModeUnknown); + } reverseBlock:^NSString *(NSNumber *value) { + switch ([value integerValue]) { + case AWSLocationOptimizationModeFastestRoute: + return @"FastestRoute"; + case AWSLocationOptimizationModeShortestRoute: + return @"ShortestRoute"; + default: + return nil; + } + }]; +} + + (NSValueTransformer *)travelModeJSONTransformer { return [AWSMTLValueTransformer reversibleTransformerWithForwardBlock:^NSNumber *(NSString *value) { if ([value caseInsensitiveCompare:@"Car"] == NSOrderedSame) { @@ -3307,6 +3338,7 @@ + (NSDictionary *)JSONKeyPathsByPropertyKey { @"postalCode" : @"PostalCode", @"region" : @"Region", @"street" : @"Street", + @"subMunicipality" : @"SubMunicipality", @"subRegion" : @"SubRegion", @"supplementalCategories" : @"SupplementalCategories", @"timeZone" : @"TimeZone", diff --git a/AWSLocation/AWSLocationResources.m b/AWSLocation/AWSLocationResources.m index 4db1d51e6c1..da2b0145e13 100644 --- a/AWSLocation/AWSLocationResources.m +++ b/AWSLocation/AWSLocationResources.m @@ -1927,6 +1927,10 @@ - (NSString *)definitionString { \"DestinationPosition\"\ ],\ \"members\":{\ + \"ArrivalTime\":{\ + \"shape\":\"Timestamp\",\ + \"documentation\":\"

Specifies the desired time of arrival. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.

ArrivalTime is not supported Esri.

\"\ + },\ \"CalculatorName\":{\ \"shape\":\"ResourceName\",\ \"documentation\":\"

The name of the route calculator resource that you want to use to calculate the route.

\",\ @@ -1947,7 +1951,7 @@ - (NSString *)definitionString { },\ \"DepartureTime\":{\ \"shape\":\"Timestamp\",\ - \"documentation\":\"

Specifies the desired time of departure. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.

Setting a departure time in the past returns a 400 ValidationException error.

  • In ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. For example, 2020–07-2T12:15:20.000Z+01:00

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

Specifies the desired time of departure. Uses the given time to calculate the route. Otherwise, the best time of day to travel with the best traffic conditions is used to calculate the route.

  • In ISO 8601 format: YYYY-MM-DDThh:mm:ss.sssZ. For example, 2020–07-2T12:15:20.000Z+01:00

\"\ },\ \"DestinationPosition\":{\ \"shape\":\"Position\",\ @@ -1967,6 +1971,10 @@ - (NSString *)definitionString { \"location\":\"querystring\",\ \"locationName\":\"key\"\ },\ + \"OptimizeFor\":{\ + \"shape\":\"OptimizationMode\",\ + \"documentation\":\"

Specifies the distance to optimize for when calculating a route.

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

Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. You can choose Car, Truck, Walking, Bicycle or Motorcycle as options for the TravelMode.

Bicycle and Motorcycle are only valid when using Grab as a data provider, and only within Southeast Asia.

Truck is not available for Grab.

For more details on the using Grab for routing, including areas of coverage, see GrabMaps in the Amazon Location Service Developer Guide.

The TravelMode you specify also determines how you specify route preferences:

  • If traveling by Car use the CarModeOptions parameter.

  • If traveling by Truck use the TruckModeOptions parameter.

Default Value: Car

\"\ @@ -3685,7 +3693,7 @@ - (NSString *)definitionString { \"members\":{\ \"FilterGeometry\":{\ \"shape\":\"TrackingFilterGeometry\",\ - \"documentation\":\"

The geomerty used to filter device positions.

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

The geometry used to filter device positions.

\"\ },\ \"MaxResults\":{\ \"shape\":\"ListDevicePositionsRequestMaxResultsInteger\",\ @@ -4388,6 +4396,13 @@ - (NSString *)definitionString { \"min\":1,\ \"pattern\":\"^[-._\\\\w]+$\"\ },\ + \"OptimizationMode\":{\ + \"type\":\"string\",\ + \"enum\":[\ + \"FastestRoute\",\ + \"ShortestRoute\"\ + ]\ + },\ \"Place\":{\ \"type\":\"structure\",\ \"required\":[\"Geometry\"],\ @@ -4433,6 +4448,10 @@ - (NSString *)definitionString { \"shape\":\"String\",\ \"documentation\":\"

The name for a street or a road to identify a location. For example, Main Street.

\"\ },\ + \"SubMunicipality\":{\ + \"shape\":\"String\",\ + \"documentation\":\"

An area that's part of a larger municipality. For example, Blissville is a submunicipality in the Queen County in New York.

This property supported by Esri and OpenData. The Esri property is district, and the OpenData property is borough.

\"\ + },\ \"SubRegion\":{\ \"shape\":\"String\",\ \"documentation\":\"

A county, or an area that's part of a larger region. For example, Metro Vancouver.

\"\ From 3cdf6eb7210824e8c65d3a05fc3198b42a524898 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Wed, 3 Jan 2024 10:57:05 -0800 Subject: [PATCH 10/13] feat(AWSKinesisVideoArchivedMedia): update models to latest (#5147) --- .../AWSKinesisVideoArchivedMediaModel.h | 4 ++-- .../AWSKinesisVideoArchivedMediaResources.m | 11 ++++++----- .../AWSKinesisVideoArchivedMediaService.h | 8 ++++---- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaModel.h b/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaModel.h index c2e68cd2258..7a46c09ce0e 100644 --- a/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaModel.h +++ b/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaModel.h @@ -485,7 +485,7 @@ typedef NS_ENUM(NSInteger, AWSKinesisVideoArchivedMediaImageSelectorType) { @property (nonatomic, strong) NSString * _Nullable nextToken; /** -

The time interval in milliseconds (ms) at which the images need to be generated from the stream, with a default of 3000 ms. The minimum value that can be provided is 200 ms. If the timestamp range is less than the sampling interval, the Image from the startTimestamp will be returned if available.

The minimum value of 200 ms is a hard limit.

+

The time interval in milliseconds (ms) at which the images need to be generated from the stream. The minimum value that can be provided is 200 ms (5 images per second). If the timestamp range is less than the sampling interval, the image from the startTimestamp will be returned if available.

*/ @property (nonatomic, strong) NSNumber * _Nullable samplingInterval; @@ -636,7 +636,7 @@ typedef NS_ENUM(NSInteger, AWSKinesisVideoArchivedMediaImageSelectorType) { /** -

Describes the timestamp range and timestamp origin for the range of fragments to return.

+

Describes the timestamp range and timestamp origin for the range of fragments to return.

This is only required when the NextToken isn't passed in the API.

*/ @property (nonatomic, strong) AWSKinesisVideoArchivedMediaFragmentSelector * _Nullable fragmentSelector; diff --git a/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaResources.m b/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaResources.m index 3b1d3ffca89..1feedad5523 100644 --- a/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaResources.m +++ b/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaResources.m @@ -142,9 +142,10 @@ - (NSString *)definitionString { {\"shape\":\"ResourceNotFoundException\"},\ {\"shape\":\"InvalidArgumentException\"},\ {\"shape\":\"ClientLimitExceededException\"},\ - {\"shape\":\"NotAuthorizedException\"}\ + {\"shape\":\"NotAuthorizedException\"},\ + {\"shape\":\"NoDataRetentionException\"}\ ],\ - \"documentation\":\"

Retrieves a list of Images corresponding to each timestamp for a given time range, sampling interval, and image format configuration.

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

Retrieves a list of images corresponding to each timestamp for a given time range, sampling interval, and image format configuration.

\"\ },\ \"GetMediaForFragmentList\":{\ \"name\":\"GetMediaForFragmentList\",\ @@ -566,7 +567,7 @@ - (NSString *)definitionString { },\ \"SamplingInterval\":{\ \"shape\":\"SamplingInterval\",\ - \"documentation\":\"

The time interval in milliseconds (ms) at which the images need to be generated from the stream, with a default of 3000 ms. The minimum value that can be provided is 200 ms. If the timestamp range is less than the sampling interval, the Image from the startTimestamp will be returned if available.

The minimum value of 200 ms is a hard limit.

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

The time interval in milliseconds (ms) at which the images need to be generated from the stream. The minimum value that can be provided is 200 ms (5 images per second). If the timestamp range is less than the sampling interval, the image from the startTimestamp will be returned if available.

\"\ },\ \"Format\":{\ \"shape\":\"Format\",\ @@ -804,7 +805,7 @@ - (NSString *)definitionString { },\ \"FragmentSelector\":{\ \"shape\":\"FragmentSelector\",\ - \"documentation\":\"

Describes the timestamp range and timestamp origin for the range of fragments to return.

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

Describes the timestamp range and timestamp origin for the range of fragments to return.

This is only required when the NextToken isn't passed in the API.

\"\ }\ }\ },\ @@ -847,7 +848,7 @@ - (NSString *)definitionString { \"members\":{\ \"Message\":{\"shape\":\"ErrorMessage\"}\ },\ - \"documentation\":\"

A streaming session was requested for a stream that does not retain data (that is, has a DataRetentionInHours of 0).

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

GetImages was requested for a stream that does not retain data (that is, has a DataRetentionInHours of 0).

\",\ \"error\":{\"httpStatusCode\":400},\ \"exception\":true\ },\ diff --git a/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaService.h b/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaService.h index 10f96b7911d..1fc6dd3c426 100644 --- a/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaService.h +++ b/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaService.h @@ -250,11 +250,11 @@ FOUNDATION_EXPORT NSString *const AWSKinesisVideoArchivedMediaSDKVersion; - (void)getHLSStreamingSessionURL:(AWSKinesisVideoArchivedMediaGetHLSStreamingSessionURLInput *)request completionHandler:(void (^ _Nullable)(AWSKinesisVideoArchivedMediaGetHLSStreamingSessionURLOutput * _Nullable response, NSError * _Nullable error))completionHandler; /** -

Retrieves a list of Images corresponding to each timestamp for a given time range, sampling interval, and image format configuration.

+

Retrieves a list of images corresponding to each timestamp for a given time range, sampling interval, and image format configuration.

@param request A container for the necessary parameters to execute the GetImages service method. - @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSKinesisVideoArchivedMediaGetImagesOutput`. On failed execution, `task.error` may contain an `NSError` with `AWSKinesisVideoArchivedMediaErrorDomain` domain and the following error code: `AWSKinesisVideoArchivedMediaErrorResourceNotFound`, `AWSKinesisVideoArchivedMediaErrorInvalidArgument`, `AWSKinesisVideoArchivedMediaErrorClientLimitExceeded`, `AWSKinesisVideoArchivedMediaErrorNotAuthorized`. + @return An instance of `AWSTask`. On successful execution, `task.result` will contain an instance of `AWSKinesisVideoArchivedMediaGetImagesOutput`. On failed execution, `task.error` may contain an `NSError` with `AWSKinesisVideoArchivedMediaErrorDomain` domain and the following error code: `AWSKinesisVideoArchivedMediaErrorResourceNotFound`, `AWSKinesisVideoArchivedMediaErrorInvalidArgument`, `AWSKinesisVideoArchivedMediaErrorClientLimitExceeded`, `AWSKinesisVideoArchivedMediaErrorNotAuthorized`, `AWSKinesisVideoArchivedMediaErrorNoDataRetention`. @see AWSKinesisVideoArchivedMediaGetImagesInput @see AWSKinesisVideoArchivedMediaGetImagesOutput @@ -262,12 +262,12 @@ FOUNDATION_EXPORT NSString *const AWSKinesisVideoArchivedMediaSDKVersion; - (AWSTask *)getImages:(AWSKinesisVideoArchivedMediaGetImagesInput *)request; /** -

Retrieves a list of Images corresponding to each timestamp for a given time range, sampling interval, and image format configuration.

+

Retrieves a list of images corresponding to each timestamp for a given time range, sampling interval, and image format configuration.

@param request A container for the necessary parameters to execute the GetImages 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 `AWSKinesisVideoArchivedMediaErrorDomain` domain and the following error code: `AWSKinesisVideoArchivedMediaErrorResourceNotFound`, `AWSKinesisVideoArchivedMediaErrorInvalidArgument`, `AWSKinesisVideoArchivedMediaErrorClientLimitExceeded`, `AWSKinesisVideoArchivedMediaErrorNotAuthorized`. + `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 `AWSKinesisVideoArchivedMediaErrorDomain` domain and the following error code: `AWSKinesisVideoArchivedMediaErrorResourceNotFound`, `AWSKinesisVideoArchivedMediaErrorInvalidArgument`, `AWSKinesisVideoArchivedMediaErrorClientLimitExceeded`, `AWSKinesisVideoArchivedMediaErrorNotAuthorized`, `AWSKinesisVideoArchivedMediaErrorNoDataRetention`. @see AWSKinesisVideoArchivedMediaGetImagesInput @see AWSKinesisVideoArchivedMediaGetImagesOutput From 8069eda76b96c23a79c4ce78a4d651b84f64df11 Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:05:51 -0800 Subject: [PATCH 11/13] feat(AWSLocation): update models to latest (#5149) --- AWSLocation/AWSLocationModel.h | 7 ++++++- AWSLocation/AWSLocationModel.m | 1 + AWSLocation/AWSLocationResources.m | 8 +++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/AWSLocation/AWSLocationModel.h b/AWSLocation/AWSLocationModel.h index 4c5029fff52..2ed4fbf71fb 100644 --- a/AWSLocation/AWSLocationModel.h +++ b/AWSLocation/AWSLocationModel.h @@ -317,7 +317,7 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) { @property (nonatomic, strong) NSArray * _Nullable allowReferers; /** -

A list of allowed resource ARNs that a API key bearer can perform actions on.

  • The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type.

  • The resources must be in the same partition, region, and account-id as the key that is being created.

  • Other than wildcards, you must include the full ARN, including the arn, partition, service, region, account-id and resource-id, delimited by colons (:).

  • No spaces allowed, even with wildcards. For example, arn:aws:geo:region:account-id:map/ExampleMap*.

For more information about ARN format, see Amazon Resource Names (ARNs).

+

A list of allowed resource ARNs that a API key bearer can perform actions on.

  • The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type.

  • The resources must be in the same partition, region, and account-id as the key that is being created.

  • Other than wildcards, you must include the full ARN, including the arn, partition, service, region, account-id and resource-id delimited by colons (:).

  • No spaces allowed, even with wildcards. For example, arn:aws:geo:region:account-id:map/ExampleMap*.

For more information about ARN format, see Amazon Resource Names (ARNs).

*/ @property (nonatomic, strong) NSArray * _Nullable allowResources; @@ -1463,6 +1463,11 @@ typedef NS_ENUM(NSInteger, AWSLocationVehicleWeightUnit) { @interface AWSLocationDeleteKeyRequest : AWSRequest +/** +

ForceDelete bypasses an API key's expiry conditions and deletes the key. Set the parameter true to delete the key or to false to not preemptively delete the API key.

Valid values: true, or false.

Required: No

This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.

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

The name of the API key to delete.

*/ diff --git a/AWSLocation/AWSLocationModel.m b/AWSLocation/AWSLocationModel.m index 1bf7cfe59d0..0fe4eaa29b1 100644 --- a/AWSLocation/AWSLocationModel.m +++ b/AWSLocation/AWSLocationModel.m @@ -1454,6 +1454,7 @@ + (BOOL)supportsSecureCoding { + (NSDictionary *)JSONKeyPathsByPropertyKey { return @{ + @"forceDelete" : @"ForceDelete", @"keyName" : @"KeyName", }; } diff --git a/AWSLocation/AWSLocationResources.m b/AWSLocation/AWSLocationResources.m index da2b0145e13..16765c2958b 100644 --- a/AWSLocation/AWSLocationResources.m +++ b/AWSLocation/AWSLocationResources.m @@ -1250,7 +1250,7 @@ - (NSString *)definitionString { },\ \"AllowResources\":{\ \"shape\":\"ApiKeyRestrictionsAllowResourcesList\",\ - \"documentation\":\"

A list of allowed resource ARNs that a API key bearer can perform actions on.

  • The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type.

  • The resources must be in the same partition, region, and account-id as the key that is being created.

  • Other than wildcards, you must include the full ARN, including the arn, partition, service, region, account-id and resource-id, delimited by colons (:).

  • No spaces allowed, even with wildcards. For example, arn:aws:geo:region:account-id:map/ExampleMap*.

For more information about ARN format, see Amazon Resource Names (ARNs).

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

A list of allowed resource ARNs that a API key bearer can perform actions on.

  • The ARN must be the correct ARN for a map, place, or route ARN. You may include wildcards in the resource-id to match multiple resources of the same type.

  • The resources must be in the same partition, region, and account-id as the key that is being created.

  • Other than wildcards, you must include the full ARN, including the arn, partition, service, region, account-id and resource-id delimited by colons (:).

  • No spaces allowed, even with wildcards. For example, arn:aws:geo:region:account-id:map/ExampleMap*.

For more information about ARN format, see Amazon Resource Names (ARNs).

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

API Restrictions on the allowed actions, resources, and referers for an API key resource.

\"\ @@ -2513,6 +2513,12 @@ - (NSString *)definitionString { \"type\":\"structure\",\ \"required\":[\"KeyName\"],\ \"members\":{\ + \"ForceDelete\":{\ + \"shape\":\"Boolean\",\ + \"documentation\":\"

ForceDelete bypasses an API key's expiry conditions and deletes the key. Set the parameter true to delete the key or to false to not preemptively delete the API key.

Valid values: true, or false.

Required: No

This action is irreversible. Only use ForceDelete if you are certain the key is no longer in use.

\",\ + \"location\":\"querystring\",\ + \"locationName\":\"forceDelete\"\ + },\ \"KeyName\":{\ \"shape\":\"ResourceName\",\ \"documentation\":\"

The name of the API key to delete.

\",\ From bd8d205c664a9fae31d05317497a554cce40bf9c Mon Sep 17 00:00:00 2001 From: AWS Mobile SDK Bot <46607340+awsmobilesdk@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:13:05 -0800 Subject: [PATCH 12/13] chore(changelog): Update models to latest [ci-skip] Co-authored-by: Michael Law <1365977+lawmicha@users.noreply.github.com> Co-authored-by: Sebastian Villena <97059974+ruisebas@users.noreply.github.com> --- CHANGELOG.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4be6cde51b..8ee01219094 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,20 @@ ---- - # AWS Mobile SDK for iOS CHANGELOG ## Unreleased --Features for next release +### Misc. Updates + +- Model updates for the following services + - AWSKinesisVideoArchivedMedia + - AWSLocation + - AWSComprehend + - AWSIoT + - AWSKMS + - AWSPinpoint + - AWSFirehose + - AWSCognitoIdentityProvider + - AWSEC2 + - AWSConnect ## 2.33.7 From 59f05fe286adcd8bf9f91e78221134ea5f601bf6 Mon Sep 17 00:00:00 2001 From: aws-amplify-ops Date: Wed, 3 Jan 2024 19:23:35 +0000 Subject: [PATCH 13/13] [bump version 2.33.8] --- AWSAPIGateway.podspec | 4 +- AWSAPIGateway/AWSAPIGatewayClient.m | 2 +- AWSAPIGateway/Info.plist | 2 +- AWSAppleSignIn.podspec | 6 +- AWSAuth.podspec | 12 ++-- AWSAuthCore.podspec | 4 +- AWSAuthSDK/Sources/AWSAppleSignIn/Info.plist | 2 +- AWSAuthSDK/Sources/AWSAuthCore/Info.plist | 2 +- AWSAuthSDK/Sources/AWSAuthUI/Info.plist | 2 +- .../Sources/AWSFacebookSignIn/Info.plist | 2 +- AWSAuthSDK/Sources/AWSGoogleSignIn/Info.plist | 2 +- AWSAuthSDK/Sources/AWSMobileClient/Info.plist | 2 +- .../Sources/AWSMobileClientXCF/Info.plist | 2 +- .../Sources/AWSUserPoolsSignIn/Info.plist | 2 +- AWSAuthUI.podspec | 6 +- AWSAutoScaling.podspec | 4 +- AWSAutoScaling/AWSAutoScalingService.m | 2 +- AWSAutoScaling/Info.plist | 2 +- AWSChimeSDKIdentity.podspec | 4 +- .../AWSChimeSDKIdentityService.m | 2 +- AWSChimeSDKIdentity/Info.plist | 2 +- AWSChimeSDKMessaging.podspec | 4 +- .../AWSChimeSDKMessagingService.m | 2 +- AWSChimeSDKMessaging/Info.plist | 2 +- AWSCloudWatch.podspec | 4 +- AWSCloudWatch/AWSCloudWatchService.m | 2 +- AWSCloudWatch/Info.plist | 2 +- AWSCognitoAuth.podspec | 6 +- AWSCognitoAuth/AWSCognitoAuth.m | 2 +- AWSCognitoAuth/Info.plist | 2 +- AWSCognitoIdentityProvider.podspec | 6 +- .../AWSCognitoIdentityProviderService.m | 2 +- AWSCognitoIdentityProvider/Info.plist | 2 +- AWSCognitoIdentityProviderASF.podspec | 4 +- AWSCognitoIdentityProviderASF/Info.plist | 2 +- AWSComprehend.podspec | 4 +- AWSComprehend/AWSComprehendService.m | 2 +- AWSComprehend/Info.plist | 2 +- AWSConnect.podspec | 4 +- AWSConnect/AWSConnectService.m | 2 +- AWSConnect/Info.plist | 2 +- AWSConnectParticipant.podspec | 4 +- .../AWSConnectParticipantService.m | 2 +- AWSConnectParticipant/Info.plist | 2 +- AWSCore.podspec | 2 +- AWSCore/Info.plist | 2 +- AWSCore/Service/AWSService.m | 2 +- AWSDynamoDB.podspec | 4 +- AWSDynamoDB/AWSDynamoDBService.m | 2 +- AWSDynamoDB/Info.plist | 2 +- AWSEC2.podspec | 4 +- AWSEC2/AWSEC2Service.m | 2 +- AWSEC2/Info.plist | 2 +- AWSElasticLoadBalancing.podspec | 4 +- .../AWSElasticLoadBalancingService.m | 2 +- AWSElasticLoadBalancing/Info.plist | 2 +- AWSFacebookSignIn.podspec | 6 +- AWSGoogleSignIn.podspec | 6 +- AWSIoT.podspec | 4 +- AWSIoT/AWSIoTDataService.m | 2 +- AWSIoT/AWSIoTService.m | 2 +- AWSIoT/Info.plist | 2 +- AWSKMS.podspec | 4 +- AWSKMS/AWSKMSService.m | 2 +- AWSKMS/Info.plist | 2 +- AWSKinesis.podspec | 4 +- AWSKinesis/AWSFirehoseService.m | 2 +- AWSKinesis/AWSKinesisService.m | 2 +- AWSKinesis/Info.plist | 2 +- AWSKinesisVideo.podspec | 4 +- AWSKinesisVideo/AWSKinesisVideoService.m | 2 +- AWSKinesisVideo/Info.plist | 2 +- AWSKinesisVideoArchivedMedia.podspec | 4 +- .../AWSKinesisVideoArchivedMediaService.m | 2 +- AWSKinesisVideoArchivedMedia/Info.plist | 2 +- AWSKinesisVideoSignaling.podspec | 4 +- .../AWSKinesisVideoSignalingService.m | 2 +- AWSKinesisVideoSignaling/Info.plist | 2 +- AWSKinesisVideoWebRTCStorage.podspec | 4 +- .../AWSKinesisVideoWebRTCStorageService.m | 2 +- AWSKinesisVideoWebRTCStorage/Info.plist | 2 +- AWSLambda.podspec | 4 +- AWSLambda/AWSLambdaService.m | 2 +- AWSLambda/Info.plist | 2 +- AWSLex.podspec | 4 +- AWSLex/AWSLexInteractionKit.m | 2 +- AWSLex/AWSLexService.m | 2 +- AWSLex/Info.plist | 2 +- AWSLocation.podspec | 4 +- AWSLocation/AWSLocationService.m | 2 +- AWSLocation/Info.plist | 2 +- AWSLocationXCF/Info.plist | 2 +- AWSLogs.podspec | 4 +- AWSLogs/AWSLogsService.m | 2 +- AWSLogs/Info.plist | 2 +- AWSMachineLearning.podspec | 4 +- .../AWSMachineLearningService.m | 2 +- AWSMachineLearning/Info.plist | 2 +- AWSMobileClient.podspec | 10 +-- AWSPinpoint.podspec | 4 +- .../AWSPinpointTargetingService.m | 2 +- AWSPinpoint/Info.plist | 2 +- AWSPolly.podspec | 4 +- AWSPolly/AWSPollyService.m | 2 +- AWSPolly/AWSPollySynthesizeSpeechURLBuilder.m | 2 +- AWSPolly/Info.plist | 2 +- AWSRekognition.podspec | 4 +- AWSRekognition/AWSRekognitionService.m | 2 +- AWSRekognition/Info.plist | 2 +- AWSS3.podspec | 4 +- AWSS3/AWSS3PreSignedURL.m | 2 +- AWSS3/AWSS3Service.m | 2 +- AWSS3/Info.plist | 2 +- AWSSES.podspec | 4 +- AWSSES/AWSSESService.m | 2 +- AWSSES/Info.plist | 2 +- AWSSNS.podspec | 4 +- AWSSNS/AWSSNSService.m | 2 +- AWSSNS/Info.plist | 2 +- AWSSQS.podspec | 4 +- AWSSQS/AWSSQSService.m | 2 +- AWSSQS/Info.plist | 2 +- AWSSageMakerRuntime.podspec | 4 +- .../AWSSageMakerRuntimeService.m | 2 +- AWSSageMakerRuntime/Info.plist | 2 +- AWSSimpleDB.podspec | 4 +- AWSSimpleDB/AWSSimpleDBService.m | 2 +- AWSSimpleDB/Info.plist | 2 +- AWSTextract.podspec | 4 +- AWSTextract/AWSTextractService.m | 2 +- AWSTextract/Info.plist | 2 +- AWSTranscribe.podspec | 4 +- AWSTranscribe/AWSTranscribeService.m | 2 +- AWSTranscribe/Info.plist | 2 +- AWSTranscribeStreaming.podspec | 4 +- .../AWSTranscribeStreamingService.m | 2 +- AWSTranscribeStreaming/Info.plist | 2 +- AWSTranslate.podspec | 4 +- AWSTranslate/AWSTranslateService.m | 2 +- AWSTranslate/Info.plist | 2 +- AWSUserPoolsSignIn.podspec | 8 +-- AWSiOSSDKv2.podspec | 64 +++++++++---------- CHANGELOG.md | 4 ++ CircleciScripts/generate_documentation.sh | 2 +- 144 files changed, 240 insertions(+), 236 deletions(-) diff --git a/AWSAPIGateway.podspec b/AWSAPIGateway.podspec index a8c3a95cafd..3d70f78434b 100644 --- a/AWSAPIGateway.podspec +++ b/AWSAPIGateway.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'AWSAPIGateway' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -13,7 +13,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSAPIGateway/*.{h,m}' end diff --git a/AWSAPIGateway/AWSAPIGatewayClient.m b/AWSAPIGateway/AWSAPIGatewayClient.m index d67a0b6da2e..a505163d480 100644 --- a/AWSAPIGateway/AWSAPIGatewayClient.m +++ b/AWSAPIGateway/AWSAPIGatewayClient.m @@ -23,7 +23,7 @@ static NSString *const AWSAPIGatewayAPIKeyHeader = @"x-api-key"; -NSString *const AWSAPIGatewaySDKVersion = @"2.33.7"; +NSString *const AWSAPIGatewaySDKVersion = @"2.33.8"; static int defaultChunkSize = 1024; diff --git a/AWSAPIGateway/Info.plist b/AWSAPIGateway/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSAPIGateway/Info.plist +++ b/AWSAPIGateway/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSAppleSignIn.podspec b/AWSAppleSignIn.podspec index 48a936dc02b..c6aaa3389f9 100644 --- a/AWSAppleSignIn.podspec +++ b/AWSAppleSignIn.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSAppleSignIn' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,8 +12,8 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' - s.dependency 'AWSAuthCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' + s.dependency 'AWSAuthCore', '2.33.8' s.source_files = 'AWSAuthSDK/Sources/AWSAppleSignIn/*.{h,m}' s.public_header_files = 'AWSAuthSDK/Sources/AWSAppleSignIn/*.h' end diff --git a/AWSAuth.podspec b/AWSAuth.podspec index 8518cf72e5d..d1721b76c6e 100644 --- a/AWSAuth.podspec +++ b/AWSAuth.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSAuth' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -14,23 +14,23 @@ Pod::Spec.new do |s| s.requires_arc = true s.subspec 'Core' do |authcore| - authcore.dependency 'AWSAuthCore', '2.33.7' + authcore.dependency 'AWSAuthCore', '2.33.8' end s.subspec 'FacebookSignIn' do |facebook| - facebook.dependency 'AWSFacebookSignIn', '2.33.7' + facebook.dependency 'AWSFacebookSignIn', '2.33.8' end s.subspec 'GoogleSignIn' do |google| - google.dependency 'AWSGoogleSignIn', '2.33.7' + google.dependency 'AWSGoogleSignIn', '2.33.8' end s.subspec 'UserPoolsSignIn' do |up| - up.dependency 'AWSUserPoolsSignIn', '2.33.7' + up.dependency 'AWSUserPoolsSignIn', '2.33.8' end s.subspec 'UI' do |ui| - ui.dependency 'AWSAuthUI', '2.33.7' + ui.dependency 'AWSAuthUI', '2.33.8' end end diff --git a/AWSAuthCore.podspec b/AWSAuthCore.podspec index 90803e03b0c..1324a6e622a 100644 --- a/AWSAuthCore.podspec +++ b/AWSAuthCore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSAuthCore' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSAuthSDK/Sources/AWSAuthCore/*.{h,m}' s.public_header_files = 'AWSAuthSDK/Sources/AWSAuthCore/*.h' end diff --git a/AWSAuthSDK/Sources/AWSAppleSignIn/Info.plist b/AWSAuthSDK/Sources/AWSAppleSignIn/Info.plist index 180785ea561..8447a38d781 100644 --- a/AWSAuthSDK/Sources/AWSAppleSignIn/Info.plist +++ b/AWSAuthSDK/Sources/AWSAppleSignIn/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/AWSAuthSDK/Sources/AWSAuthCore/Info.plist b/AWSAuthSDK/Sources/AWSAuthCore/Info.plist index 180785ea561..8447a38d781 100644 --- a/AWSAuthSDK/Sources/AWSAuthCore/Info.plist +++ b/AWSAuthSDK/Sources/AWSAuthCore/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/AWSAuthSDK/Sources/AWSAuthUI/Info.plist b/AWSAuthSDK/Sources/AWSAuthUI/Info.plist index 180785ea561..8447a38d781 100644 --- a/AWSAuthSDK/Sources/AWSAuthUI/Info.plist +++ b/AWSAuthSDK/Sources/AWSAuthUI/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/AWSAuthSDK/Sources/AWSFacebookSignIn/Info.plist b/AWSAuthSDK/Sources/AWSFacebookSignIn/Info.plist index 180785ea561..8447a38d781 100644 --- a/AWSAuthSDK/Sources/AWSFacebookSignIn/Info.plist +++ b/AWSAuthSDK/Sources/AWSFacebookSignIn/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/AWSAuthSDK/Sources/AWSGoogleSignIn/Info.plist b/AWSAuthSDK/Sources/AWSGoogleSignIn/Info.plist index 180785ea561..8447a38d781 100644 --- a/AWSAuthSDK/Sources/AWSGoogleSignIn/Info.plist +++ b/AWSAuthSDK/Sources/AWSGoogleSignIn/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/AWSAuthSDK/Sources/AWSMobileClient/Info.plist b/AWSAuthSDK/Sources/AWSMobileClient/Info.plist index 6119aa1c01e..797d3871b38 100644 --- a/AWSAuthSDK/Sources/AWSMobileClient/Info.plist +++ b/AWSAuthSDK/Sources/AWSMobileClient/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/AWSAuthSDK/Sources/AWSMobileClientXCF/Info.plist b/AWSAuthSDK/Sources/AWSMobileClientXCF/Info.plist index 6119aa1c01e..797d3871b38 100644 --- a/AWSAuthSDK/Sources/AWSMobileClientXCF/Info.plist +++ b/AWSAuthSDK/Sources/AWSMobileClientXCF/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/AWSAuthSDK/Sources/AWSUserPoolsSignIn/Info.plist b/AWSAuthSDK/Sources/AWSUserPoolsSignIn/Info.plist index 180785ea561..8447a38d781 100644 --- a/AWSAuthSDK/Sources/AWSUserPoolsSignIn/Info.plist +++ b/AWSAuthSDK/Sources/AWSUserPoolsSignIn/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleVersion $(CURRENT_PROJECT_VERSION) NSPrincipalClass diff --git a/AWSAuthUI.podspec b/AWSAuthUI.podspec index b50de9d426b..5d2d5726c4c 100644 --- a/AWSAuthUI.podspec +++ b/AWSAuthUI.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSAuthUI' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,8 +12,8 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' - s.dependency 'AWSAuthCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' + s.dependency 'AWSAuthCore', '2.33.8' s.source_files = 'AWSAuthSDK/Sources/AWSAuthUI/*.{h,m}', 'AWSAuthSDK/Sources/AWSAuthUI/**/*.{h,m}', 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/UserPoolsUI/AWSFormTableCell.h', 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/UserPoolsUI/AWSTableInputCell.h', 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/UserPoolsUI/AWSFormTableDelegate.h', 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/UserPoolsUI/AWSUserPoolsUIHelper.h' s.public_header_files = 'AWSAuthSDK/Sources/AWSAuthUI/AWSAuthUI.h', 'AWSAuthSDK/Sources/AWSAuthUI/AWSAuthUIViewController.h', 'AWSAuthSDK/Sources/AWSAuthUI/AWSAuthUIConfiguration.h' s.private_header_files = 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/UserPoolsUI/AWSFormTableCell.h', 'AWSAuthSDK/Sources/AWSAuthUI/AWSSignInViewController.h', 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/UserPoolsUI/AWSTableInputCell.h', 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/UserPoolsUI/AWSFormTableDelegate.h' diff --git a/AWSAutoScaling.podspec b/AWSAutoScaling.podspec index be73ca5c3c4..088e7098879 100644 --- a/AWSAutoScaling.podspec +++ b/AWSAutoScaling.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSAutoScaling' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSAutoScaling/*.{h,m}' end diff --git a/AWSAutoScaling/AWSAutoScalingService.m b/AWSAutoScaling/AWSAutoScalingService.m index c685dc5a687..2768d226b56 100644 --- a/AWSAutoScaling/AWSAutoScalingService.m +++ b/AWSAutoScaling/AWSAutoScalingService.m @@ -25,7 +25,7 @@ #import "AWSAutoScalingResources.h" static NSString *const AWSInfoAutoScaling = @"AutoScaling"; -NSString *const AWSAutoScalingSDKVersion = @"2.33.7"; +NSString *const AWSAutoScalingSDKVersion = @"2.33.8"; @interface AWSAutoScalingResponseSerializer : AWSXMLResponseSerializer diff --git a/AWSAutoScaling/Info.plist b/AWSAutoScaling/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSAutoScaling/Info.plist +++ b/AWSAutoScaling/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSChimeSDKIdentity.podspec b/AWSChimeSDKIdentity.podspec index 0f72d3e91bb..ef319cdc42f 100644 --- a/AWSChimeSDKIdentity.podspec +++ b/AWSChimeSDKIdentity.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSChimeSDKIdentity' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSChimeSDKIdentity/*.{h,m}' end diff --git a/AWSChimeSDKIdentity/AWSChimeSDKIdentityService.m b/AWSChimeSDKIdentity/AWSChimeSDKIdentityService.m index ff53f7d34e6..6cb10d755ad 100644 --- a/AWSChimeSDKIdentity/AWSChimeSDKIdentityService.m +++ b/AWSChimeSDKIdentity/AWSChimeSDKIdentityService.m @@ -25,7 +25,7 @@ #import "AWSChimeSDKIdentityResources.h" static NSString *const AWSInfoChimeSDKIdentity = @"ChimeSDKIdentity"; -NSString *const AWSChimeSDKIdentitySDKVersion = @"2.33.7"; +NSString *const AWSChimeSDKIdentitySDKVersion = @"2.33.8"; @interface AWSChimeSDKIdentityResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSChimeSDKIdentity/Info.plist b/AWSChimeSDKIdentity/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSChimeSDKIdentity/Info.plist +++ b/AWSChimeSDKIdentity/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSChimeSDKMessaging.podspec b/AWSChimeSDKMessaging.podspec index 5a118664081..a1c4647950a 100644 --- a/AWSChimeSDKMessaging.podspec +++ b/AWSChimeSDKMessaging.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSChimeSDKMessaging' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSChimeSDKMessaging/*.{h,m}' end diff --git a/AWSChimeSDKMessaging/AWSChimeSDKMessagingService.m b/AWSChimeSDKMessaging/AWSChimeSDKMessagingService.m index c5543e11c40..6d661311cfd 100644 --- a/AWSChimeSDKMessaging/AWSChimeSDKMessagingService.m +++ b/AWSChimeSDKMessaging/AWSChimeSDKMessagingService.m @@ -25,7 +25,7 @@ #import "AWSChimeSDKMessagingResources.h" static NSString *const AWSInfoChimeSDKMessaging = @"ChimeSDKMessaging"; -NSString *const AWSChimeSDKMessagingSDKVersion = @"2.33.7"; +NSString *const AWSChimeSDKMessagingSDKVersion = @"2.33.8"; @interface AWSChimeSDKMessagingResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSChimeSDKMessaging/Info.plist b/AWSChimeSDKMessaging/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSChimeSDKMessaging/Info.plist +++ b/AWSChimeSDKMessaging/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSCloudWatch.podspec b/AWSCloudWatch.podspec index bbd308c5990..7d43c1d46be 100644 --- a/AWSCloudWatch.podspec +++ b/AWSCloudWatch.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSCloudWatch' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSCloudWatch/*.{h,m}' end diff --git a/AWSCloudWatch/AWSCloudWatchService.m b/AWSCloudWatch/AWSCloudWatchService.m index b61f281c443..0537c346afb 100644 --- a/AWSCloudWatch/AWSCloudWatchService.m +++ b/AWSCloudWatch/AWSCloudWatchService.m @@ -26,7 +26,7 @@ #import "AWSCloudWatchResources.h" static NSString *const AWSInfoCloudWatch = @"CloudWatch"; -NSString *const AWSCloudWatchSDKVersion = @"2.33.7"; +NSString *const AWSCloudWatchSDKVersion = @"2.33.8"; @interface AWSCloudWatchResponseSerializer : AWSXMLResponseSerializer diff --git a/AWSCloudWatch/Info.plist b/AWSCloudWatch/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSCloudWatch/Info.plist +++ b/AWSCloudWatch/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSCognitoAuth.podspec b/AWSCognitoAuth.podspec index 14b65f67a81..d45b39bb94d 100644 --- a/AWSCognitoAuth.podspec +++ b/AWSCognitoAuth.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSCognitoAuth' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Cognito Auth SDK for iOS' s.description = 'Amazon Cognito Auth enables sign up and authentication of your end users via a hosted UI' @@ -13,8 +13,8 @@ Pod::Spec.new do |s| :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' - s.dependency 'AWSCognitoIdentityProviderASF', '2.33.7' + s.dependency 'AWSCore', '2.33.8' + s.dependency 'AWSCognitoIdentityProviderASF', '2.33.8' s.source_files = 'AWSCognitoAuth/**/*.{h,m,c}' s.public_header_files = 'AWSCognitoAuth/*.h' diff --git a/AWSCognitoAuth/AWSCognitoAuth.m b/AWSCognitoAuth/AWSCognitoAuth.m index ef86d8a89e4..15f4e0a4679 100644 --- a/AWSCognitoAuth/AWSCognitoAuth.m +++ b/AWSCognitoAuth/AWSCognitoAuth.m @@ -80,7 +80,7 @@ @interface AWSCognitoAuthConfiguration() @implementation AWSCognitoAuth -NSString *const AWSCognitoAuthSDKVersion = @"2.33.7"; +NSString *const AWSCognitoAuthSDKVersion = @"2.33.8"; static NSMutableDictionary *_instanceDictionary = nil; diff --git a/AWSCognitoAuth/Info.plist b/AWSCognitoAuth/Info.plist index 1b9f5172198..17b0b53e882 100644 --- a/AWSCognitoAuth/Info.plist +++ b/AWSCognitoAuth/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSCognitoIdentityProvider.podspec b/AWSCognitoIdentityProvider.podspec index b66627fe08f..dbea7e20448 100644 --- a/AWSCognitoIdentityProvider.podspec +++ b/AWSCognitoIdentityProvider.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSCognitoIdentityProvider' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Cognito Identity Provider SDK for iOS (Beta)' s.description = 'Amazon Cognito Identity Provider enables sign up and authentication of your end users' @@ -13,8 +13,8 @@ Pod::Spec.new do |s| :tag => s.version} s.requires_arc = true s.frameworks = 'Security', 'UIKit' - s.dependency 'AWSCore', '2.33.7' - s.dependency 'AWSCognitoIdentityProviderASF', '2.33.7' + s.dependency 'AWSCore', '2.33.8' + s.dependency 'AWSCognitoIdentityProviderASF', '2.33.8' s.source_files = 'AWSCognitoIdentityProvider/**/*.{h,m,c}' s.public_header_files = 'AWSCognitoIdentityProvider/*.h' diff --git a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderService.m b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderService.m index 2555b6048fb..9d8045ae17b 100644 --- a/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderService.m +++ b/AWSCognitoIdentityProvider/AWSCognitoIdentityProviderService.m @@ -25,7 +25,7 @@ #import "AWSCognitoIdentityProviderResources.h" static NSString *const AWSInfoCognitoIdentityProvider = @"CognitoIdentityProvider"; -NSString *const AWSCognitoIdentityProviderSDKVersion = @"2.33.7"; +NSString *const AWSCognitoIdentityProviderSDKVersion = @"2.33.8"; @interface AWSCognitoIdentityProviderResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSCognitoIdentityProvider/Info.plist b/AWSCognitoIdentityProvider/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSCognitoIdentityProvider/Info.plist +++ b/AWSCognitoIdentityProvider/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSCognitoIdentityProviderASF.podspec b/AWSCognitoIdentityProviderASF.podspec index 88987dbd09e..3ece8d421f7 100644 --- a/AWSCognitoIdentityProviderASF.podspec +++ b/AWSCognitoIdentityProviderASF.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSCognitoIdentityProviderASF' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Cognito Identity Provider Advanced Security Features library (Beta)' s.description = 'Amazon Cognito Identity Provider ASF provides the information necessary to support adaptive authentication' @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.public_header_files = 'AWSCognitoIdentityProviderASF/*.h' s.source_files = 'AWSCognitoIdentityProviderASF/**/*.{h,m,c}' s.private_header_files = 'AWSCognitoIdentityProviderASF/Internal/*.h' diff --git a/AWSCognitoIdentityProviderASF/Info.plist b/AWSCognitoIdentityProviderASF/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSCognitoIdentityProviderASF/Info.plist +++ b/AWSCognitoIdentityProviderASF/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSComprehend.podspec b/AWSComprehend.podspec index 3bbe56e8cc1..896c44615d8 100644 --- a/AWSComprehend.podspec +++ b/AWSComprehend.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSComprehend' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSComprehend/*.{h,m}' end diff --git a/AWSComprehend/AWSComprehendService.m b/AWSComprehend/AWSComprehendService.m index a03a28a0ade..d1cf0b730ce 100644 --- a/AWSComprehend/AWSComprehendService.m +++ b/AWSComprehend/AWSComprehendService.m @@ -25,7 +25,7 @@ #import "AWSComprehendResources.h" static NSString *const AWSInfoComprehend = @"Comprehend"; -NSString *const AWSComprehendSDKVersion = @"2.33.7"; +NSString *const AWSComprehendSDKVersion = @"2.33.8"; @interface AWSComprehendResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSComprehend/Info.plist b/AWSComprehend/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSComprehend/Info.plist +++ b/AWSComprehend/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSConnect.podspec b/AWSConnect.podspec index c363ce8d1b0..3d2b9c170e2 100644 --- a/AWSConnect.podspec +++ b/AWSConnect.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSConnect' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSConnect/*.{h,m}' end diff --git a/AWSConnect/AWSConnectService.m b/AWSConnect/AWSConnectService.m index 625426a3147..d5e3701cb7d 100644 --- a/AWSConnect/AWSConnectService.m +++ b/AWSConnect/AWSConnectService.m @@ -25,7 +25,7 @@ #import "AWSConnectResources.h" static NSString *const AWSInfoConnect = @"Connect"; -NSString *const AWSConnectSDKVersion = @"2.33.7"; +NSString *const AWSConnectSDKVersion = @"2.33.8"; @interface AWSConnectResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSConnect/Info.plist b/AWSConnect/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSConnect/Info.plist +++ b/AWSConnect/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSConnectParticipant.podspec b/AWSConnectParticipant.podspec index e88a6de64d3..0942228c9d8 100644 --- a/AWSConnectParticipant.podspec +++ b/AWSConnectParticipant.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSConnectParticipant' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSConnectParticipant/*.{h,m}' end diff --git a/AWSConnectParticipant/AWSConnectParticipantService.m b/AWSConnectParticipant/AWSConnectParticipantService.m index c7fb0893a8c..f58e74e8350 100644 --- a/AWSConnectParticipant/AWSConnectParticipantService.m +++ b/AWSConnectParticipant/AWSConnectParticipantService.m @@ -25,7 +25,7 @@ #import "AWSConnectParticipantResources.h" static NSString *const AWSInfoConnectParticipant = @"ConnectParticipant"; -NSString *const AWSConnectParticipantSDKVersion = @"2.33.7"; +NSString *const AWSConnectParticipantSDKVersion = @"2.33.8"; @interface AWSConnectParticipantResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSConnectParticipant/Info.plist b/AWSConnectParticipant/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSConnectParticipant/Info.plist +++ b/AWSConnectParticipant/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSCore.podspec b/AWSCore.podspec index 68d5109946d..91043f0aad6 100644 --- a/AWSCore.podspec +++ b/AWSCore.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'AWSCore' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' diff --git a/AWSCore/Info.plist b/AWSCore/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSCore/Info.plist +++ b/AWSCore/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSCore/Service/AWSService.m b/AWSCore/Service/AWSService.m index 365591553e5..8d2f4d6ef9e 100644 --- a/AWSCore/Service/AWSService.m +++ b/AWSCore/Service/AWSService.m @@ -21,7 +21,7 @@ #import "AWSCocoaLumberjack.h" #import "AWSCategory.h" -NSString *const AWSiOSSDKVersion = @"2.33.7"; +NSString *const AWSiOSSDKVersion = @"2.33.8"; NSString *const AWSServiceErrorDomain = @"com.amazonaws.AWSServiceErrorDomain"; static NSString *const AWSServiceConfigurationUnknown = @"Unknown"; diff --git a/AWSDynamoDB.podspec b/AWSDynamoDB.podspec index 54d5dfe6af4..20eea63a31d 100644 --- a/AWSDynamoDB.podspec +++ b/AWSDynamoDB.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSDynamoDB' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSDynamoDB/*.{h,m}' end diff --git a/AWSDynamoDB/AWSDynamoDBService.m b/AWSDynamoDB/AWSDynamoDBService.m index 23e24d7df55..5d0577aeb89 100644 --- a/AWSDynamoDB/AWSDynamoDBService.m +++ b/AWSDynamoDB/AWSDynamoDBService.m @@ -26,7 +26,7 @@ #import "AWSDynamoDBRequestRetryHandler.h" static NSString *const AWSInfoDynamoDB = @"DynamoDB"; -NSString *const AWSDynamoDBSDKVersion = @"2.33.7"; +NSString *const AWSDynamoDBSDKVersion = @"2.33.8"; @interface AWSDynamoDBResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSDynamoDB/Info.plist b/AWSDynamoDB/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSDynamoDB/Info.plist +++ b/AWSDynamoDB/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSEC2.podspec b/AWSEC2.podspec index 96b93f81a18..016d2d41d88 100644 --- a/AWSEC2.podspec +++ b/AWSEC2.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSEC2' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSEC2/*.{h,m}' end diff --git a/AWSEC2/AWSEC2Service.m b/AWSEC2/AWSEC2Service.m index cbde8308ff4..09c996b3349 100644 --- a/AWSEC2/AWSEC2Service.m +++ b/AWSEC2/AWSEC2Service.m @@ -26,7 +26,7 @@ #import "AWSEC2Serializer.h" static NSString *const AWSInfoEC2 = @"EC2"; -NSString *const AWSEC2SDKVersion = @"2.33.7"; +NSString *const AWSEC2SDKVersion = @"2.33.8"; @interface AWSEC2ResponseSerializer : AWSXMLResponseSerializer diff --git a/AWSEC2/Info.plist b/AWSEC2/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSEC2/Info.plist +++ b/AWSEC2/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSElasticLoadBalancing.podspec b/AWSElasticLoadBalancing.podspec index 0280b75fd6a..088715136cb 100644 --- a/AWSElasticLoadBalancing.podspec +++ b/AWSElasticLoadBalancing.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSElasticLoadBalancing' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSElasticLoadBalancing/*.{h,m}' end diff --git a/AWSElasticLoadBalancing/AWSElasticLoadBalancingService.m b/AWSElasticLoadBalancing/AWSElasticLoadBalancingService.m index c7c1e061bec..f26247bc2df 100644 --- a/AWSElasticLoadBalancing/AWSElasticLoadBalancingService.m +++ b/AWSElasticLoadBalancing/AWSElasticLoadBalancingService.m @@ -25,7 +25,7 @@ #import "AWSElasticLoadBalancingResources.h" static NSString *const AWSInfoElasticLoadBalancing = @"ElasticLoadBalancing"; -NSString *const AWSElasticLoadBalancingSDKVersion = @"2.33.7"; +NSString *const AWSElasticLoadBalancingSDKVersion = @"2.33.8"; @interface AWSElasticLoadBalancingResponseSerializer : AWSXMLResponseSerializer diff --git a/AWSElasticLoadBalancing/Info.plist b/AWSElasticLoadBalancing/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSElasticLoadBalancing/Info.plist +++ b/AWSElasticLoadBalancing/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSFacebookSignIn.podspec b/AWSFacebookSignIn.podspec index 1f902cc0bbb..6916e976b7c 100644 --- a/AWSFacebookSignIn.podspec +++ b/AWSFacebookSignIn.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSFacebookSignIn' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,8 +12,8 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSAuthCore', '2.33.7' - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSAuthCore', '2.33.8' + s.dependency 'AWSCore', '2.33.8' s.dependency 'FBSDKLoginKit', '9.0' s.dependency 'FBSDKCoreKit', '9.0' diff --git a/AWSGoogleSignIn.podspec b/AWSGoogleSignIn.podspec index cc20634245e..13caf4ef5a4 100644 --- a/AWSGoogleSignIn.podspec +++ b/AWSGoogleSignIn.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSGoogleSignIn' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,8 +12,8 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSAuthCore', '2.33.7' - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSAuthCore', '2.33.8' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSAuthSDK/Sources/AWSGoogleSignIn/*.{h,m}', 'AWSAuthSDK/Dependencies/GoogleHeaders/*.h' s.public_header_files = 'AWSAuthSDK/Sources/AWSGoogleSignIn/*.h' s.private_header_files = 'AWSAuthSDK/Dependencies/GoogleHeaders/*.h' diff --git a/AWSIoT.podspec b/AWSIoT.podspec index 76897048694..a938d011e7a 100644 --- a/AWSIoT.podspec +++ b/AWSIoT.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSIoT' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSIoT/*.{h,m}', 'AWSIoT/**/*.{h,m}' s.private_header_files = 'AWSIoT/Internal/*.h' end diff --git a/AWSIoT/AWSIoTDataService.m b/AWSIoT/AWSIoTDataService.m index d4c8ccf2acb..ae55b2f2dae 100644 --- a/AWSIoT/AWSIoTDataService.m +++ b/AWSIoT/AWSIoTDataService.m @@ -25,7 +25,7 @@ #import "AWSIoTDataResources.h" static NSString *const AWSInfoIoTData = @"IoTData"; -NSString *const AWSIoTDataSDKVersion = @"2.33.7"; +NSString *const AWSIoTDataSDKVersion = @"2.33.8"; @interface AWSIoTDataResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSIoT/AWSIoTService.m b/AWSIoT/AWSIoTService.m index 7b571f2fa2b..ade7545a370 100644 --- a/AWSIoT/AWSIoTService.m +++ b/AWSIoT/AWSIoTService.m @@ -25,7 +25,7 @@ #import "AWSIoTResources.h" static NSString *const AWSInfoIoT = @"IoT"; -NSString *const AWSIoTSDKVersion = @"2.33.7"; +NSString *const AWSIoTSDKVersion = @"2.33.8"; @interface AWSIoTResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSIoT/Info.plist b/AWSIoT/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSIoT/Info.plist +++ b/AWSIoT/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSKMS.podspec b/AWSKMS.podspec index 4c83c9cac94..93bbcf8bef9 100644 --- a/AWSKMS.podspec +++ b/AWSKMS.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSKMS' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSKMS/*.{h,m}' end diff --git a/AWSKMS/AWSKMSService.m b/AWSKMS/AWSKMSService.m index 69a548981da..39e6333fae2 100644 --- a/AWSKMS/AWSKMSService.m +++ b/AWSKMS/AWSKMSService.m @@ -25,7 +25,7 @@ #import "AWSKMSResources.h" static NSString *const AWSInfoKMS = @"KMS"; -NSString *const AWSKMSSDKVersion = @"2.33.7"; +NSString *const AWSKMSSDKVersion = @"2.33.8"; @interface AWSKMSResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSKMS/Info.plist b/AWSKMS/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSKMS/Info.plist +++ b/AWSKMS/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSKinesis.podspec b/AWSKinesis.podspec index 501f733c5da..fa901bba9e9 100644 --- a/AWSKinesis.podspec +++ b/AWSKinesis.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSKinesis' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSKinesis/*.{h,m}', 'AWSKinesis/**/*.{h,m}' s.private_header_files = 'AWSKinesis/Internal/*.h' end diff --git a/AWSKinesis/AWSFirehoseService.m b/AWSKinesis/AWSFirehoseService.m index ff420e7dba8..81e237263e2 100644 --- a/AWSKinesis/AWSFirehoseService.m +++ b/AWSKinesis/AWSFirehoseService.m @@ -26,7 +26,7 @@ #import "AWSFirehoseSerializer.h" static NSString *const AWSInfoFirehose = @"Firehose"; -NSString *const AWSFirehoseSDKVersion = @"2.33.7"; +NSString *const AWSFirehoseSDKVersion = @"2.33.8"; @interface AWSFirehoseResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSKinesis/AWSKinesisService.m b/AWSKinesis/AWSKinesisService.m index 86256d03df0..f365c57762a 100644 --- a/AWSKinesis/AWSKinesisService.m +++ b/AWSKinesis/AWSKinesisService.m @@ -28,7 +28,7 @@ #import "AWSKinesisSerializer.h" static NSString *const AWSInfoKinesis = @"Kinesis"; -NSString *const AWSKinesisSDKVersion = @"2.33.7"; +NSString *const AWSKinesisSDKVersion = @"2.33.8"; @interface AWSKinesisResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSKinesis/Info.plist b/AWSKinesis/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSKinesis/Info.plist +++ b/AWSKinesis/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSKinesisVideo.podspec b/AWSKinesisVideo.podspec index e0183479edb..c68966ec1f5 100644 --- a/AWSKinesisVideo.podspec +++ b/AWSKinesisVideo.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSKinesisVideo' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSKinesisVideo/*.{h,m}' end diff --git a/AWSKinesisVideo/AWSKinesisVideoService.m b/AWSKinesisVideo/AWSKinesisVideoService.m index 81075a35602..51882bf9df1 100644 --- a/AWSKinesisVideo/AWSKinesisVideoService.m +++ b/AWSKinesisVideo/AWSKinesisVideoService.m @@ -25,7 +25,7 @@ #import "AWSKinesisVideoResources.h" static NSString *const AWSInfoKinesisVideo = @"KinesisVideo"; -NSString *const AWSKinesisVideoSDKVersion = @"2.33.7"; +NSString *const AWSKinesisVideoSDKVersion = @"2.33.8"; @interface AWSKinesisVideoResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSKinesisVideo/Info.plist b/AWSKinesisVideo/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSKinesisVideo/Info.plist +++ b/AWSKinesisVideo/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSKinesisVideoArchivedMedia.podspec b/AWSKinesisVideoArchivedMedia.podspec index dd64f1dca54..631a8403a84 100644 --- a/AWSKinesisVideoArchivedMedia.podspec +++ b/AWSKinesisVideoArchivedMedia.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSKinesisVideoArchivedMedia' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSKinesisVideoArchivedMedia/*.{h,m}' end diff --git a/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaService.m b/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaService.m index 9fedad5ef66..3baa3483c75 100644 --- a/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaService.m +++ b/AWSKinesisVideoArchivedMedia/AWSKinesisVideoArchivedMediaService.m @@ -25,7 +25,7 @@ #import "AWSKinesisVideoArchivedMediaResources.h" static NSString *const AWSInfoKinesisVideoArchivedMedia = @"KinesisVideoArchivedMedia"; -NSString *const AWSKinesisVideoArchivedMediaSDKVersion = @"2.33.7"; +NSString *const AWSKinesisVideoArchivedMediaSDKVersion = @"2.33.8"; @interface AWSKinesisVideoArchivedMediaResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSKinesisVideoArchivedMedia/Info.plist b/AWSKinesisVideoArchivedMedia/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSKinesisVideoArchivedMedia/Info.plist +++ b/AWSKinesisVideoArchivedMedia/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSKinesisVideoSignaling.podspec b/AWSKinesisVideoSignaling.podspec index af0b5ab3b81..259bede8e22 100644 --- a/AWSKinesisVideoSignaling.podspec +++ b/AWSKinesisVideoSignaling.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSKinesisVideoSignaling' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSKinesisVideoSignaling/*.{h,m}' end diff --git a/AWSKinesisVideoSignaling/AWSKinesisVideoSignalingService.m b/AWSKinesisVideoSignaling/AWSKinesisVideoSignalingService.m index e314a034e39..40f76ab9075 100644 --- a/AWSKinesisVideoSignaling/AWSKinesisVideoSignalingService.m +++ b/AWSKinesisVideoSignaling/AWSKinesisVideoSignalingService.m @@ -25,7 +25,7 @@ #import "AWSKinesisVideoSignalingResources.h" static NSString *const AWSInfoKinesisVideoSignaling = @"KinesisVideoSignaling"; -NSString *const AWSKinesisVideoSignalingSDKVersion = @"2.33.7"; +NSString *const AWSKinesisVideoSignalingSDKVersion = @"2.33.8"; @interface AWSKinesisVideoSignalingResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSKinesisVideoSignaling/Info.plist b/AWSKinesisVideoSignaling/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSKinesisVideoSignaling/Info.plist +++ b/AWSKinesisVideoSignaling/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSKinesisVideoWebRTCStorage.podspec b/AWSKinesisVideoWebRTCStorage.podspec index 29914d107b8..4a624b0e8e6 100644 --- a/AWSKinesisVideoWebRTCStorage.podspec +++ b/AWSKinesisVideoWebRTCStorage.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSKinesisVideoWebRTCStorage' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSKinesisVideoWebRTCStorage/*.{h,m}' end diff --git a/AWSKinesisVideoWebRTCStorage/AWSKinesisVideoWebRTCStorageService.m b/AWSKinesisVideoWebRTCStorage/AWSKinesisVideoWebRTCStorageService.m index 7fec34614a0..9b61a4fb7f6 100644 --- a/AWSKinesisVideoWebRTCStorage/AWSKinesisVideoWebRTCStorageService.m +++ b/AWSKinesisVideoWebRTCStorage/AWSKinesisVideoWebRTCStorageService.m @@ -25,7 +25,7 @@ #import "AWSKinesisVideoWebRTCStorageResources.h" static NSString *const AWSInfoKinesisVideoWebRTCStorage = @"KinesisVideoWebRTCStorage"; -NSString *const AWSKinesisVideoWebRTCStorageSDKVersion = @"2.33.7"; +NSString *const AWSKinesisVideoWebRTCStorageSDKVersion = @"2.33.8"; @interface AWSKinesisVideoWebRTCStorageResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSKinesisVideoWebRTCStorage/Info.plist b/AWSKinesisVideoWebRTCStorage/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSKinesisVideoWebRTCStorage/Info.plist +++ b/AWSKinesisVideoWebRTCStorage/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSLambda.podspec b/AWSLambda.podspec index cc5089e176c..ce318747791 100644 --- a/AWSLambda.podspec +++ b/AWSLambda.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSLambda' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSLambda/*.{h,m}' end diff --git a/AWSLambda/AWSLambdaService.m b/AWSLambda/AWSLambdaService.m index 5ed95827327..6b07eab08ac 100644 --- a/AWSLambda/AWSLambdaService.m +++ b/AWSLambda/AWSLambdaService.m @@ -26,7 +26,7 @@ #import "AWSLambdaRequestRetryHandler.h" static NSString *const AWSInfoLambda = @"Lambda"; -NSString *const AWSLambdaSDKVersion = @"2.33.7"; +NSString *const AWSLambdaSDKVersion = @"2.33.8"; @interface AWSLambdaResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSLambda/Info.plist b/AWSLambda/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSLambda/Info.plist +++ b/AWSLambda/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSLex.podspec b/AWSLex.podspec index ade862ef774..9f82ac73432 100644 --- a/AWSLex.podspec +++ b/AWSLex.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSLex' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSLex/*.{h,m}', 'AWSLex/Bluefront/include/*.h' s.public_header_files = 'AWSLex/*.h' s.private_header_files = 'AWSLex/Bluefront/include/*.h' diff --git a/AWSLex/AWSLexInteractionKit.m b/AWSLex/AWSLexInteractionKit.m index 071c1058c6f..d098ecda6d7 100644 --- a/AWSLex/AWSLexInteractionKit.m +++ b/AWSLex/AWSLexInteractionKit.m @@ -22,7 +22,7 @@ #import NSString *const AWSInfoInteractionKit = @"LexInteractionKit"; -NSString *const AWSInteractionKitSDKVersion = @"2.33.7"; +NSString *const AWSInteractionKitSDKVersion = @"2.33.8"; NSString *const AWSInternalLexInteractionKit = @"LexInteractionKitClient"; NSString *const AWSLexInteractionKitUserAgent = @"interactionkit"; NSString *const AWSLexInteractionKitErrorDomain = @"com.amazonaws.AWSLexInteractionKitErrorDomain"; diff --git a/AWSLex/AWSLexService.m b/AWSLex/AWSLexService.m index 0ab3e7d77f6..6deeb404730 100644 --- a/AWSLex/AWSLexService.m +++ b/AWSLex/AWSLexService.m @@ -27,7 +27,7 @@ #import "AWSLexSignature.h" static NSString *const AWSInfoLex = @"Lex"; -NSString *const AWSLexSDKVersion = @"2.33.7"; +NSString *const AWSLexSDKVersion = @"2.33.8"; @interface AWSLexResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSLex/Info.plist b/AWSLex/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSLex/Info.plist +++ b/AWSLex/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSLocation.podspec b/AWSLocation.podspec index f892b305927..38a1404eb6a 100644 --- a/AWSLocation.podspec +++ b/AWSLocation.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSLocation' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSLocation/*.{h,m}', 'AWSLocation/AWSLocationTracker/**/*.swift' end diff --git a/AWSLocation/AWSLocationService.m b/AWSLocation/AWSLocationService.m index 0b5bb071391..4c455b7140b 100644 --- a/AWSLocation/AWSLocationService.m +++ b/AWSLocation/AWSLocationService.m @@ -25,7 +25,7 @@ #import "AWSLocationResources.h" static NSString *const AWSInfoLocation = @"Location"; -NSString *const AWSLocationSDKVersion = @"2.33.7"; +NSString *const AWSLocationSDKVersion = @"2.33.8"; @interface AWSLocationResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSLocation/Info.plist b/AWSLocation/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSLocation/Info.plist +++ b/AWSLocation/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSLocationXCF/Info.plist b/AWSLocationXCF/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSLocationXCF/Info.plist +++ b/AWSLocationXCF/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSLogs.podspec b/AWSLogs.podspec index 918be2e1bf4..ae11fc73e76 100644 --- a/AWSLogs.podspec +++ b/AWSLogs.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSLogs' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSLogs/*.{h,m}' end diff --git a/AWSLogs/AWSLogsService.m b/AWSLogs/AWSLogsService.m index f725bbd22df..88b297df1d3 100644 --- a/AWSLogs/AWSLogsService.m +++ b/AWSLogs/AWSLogsService.m @@ -25,7 +25,7 @@ #import "AWSLogsResources.h" static NSString *const AWSInfoLogs = @"Logs"; -NSString *const AWSLogsSDKVersion = @"2.33.7"; +NSString *const AWSLogsSDKVersion = @"2.33.8"; @interface AWSLogsResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSLogs/Info.plist b/AWSLogs/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSLogs/Info.plist +++ b/AWSLogs/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSMachineLearning.podspec b/AWSMachineLearning.podspec index 1aca719f228..c51d69c5a0b 100644 --- a/AWSMachineLearning.podspec +++ b/AWSMachineLearning.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSMachineLearning' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSMachineLearning/*.{h,m}' end diff --git a/AWSMachineLearning/AWSMachineLearningService.m b/AWSMachineLearning/AWSMachineLearningService.m index 2b297f53ca3..6d405cef296 100644 --- a/AWSMachineLearning/AWSMachineLearningService.m +++ b/AWSMachineLearning/AWSMachineLearningService.m @@ -26,7 +26,7 @@ #import "AWSMachineLearningResources.h" static NSString *const AWSInfoMachineLearning = @"MachineLearning"; -NSString *const AWSMachineLearningSDKVersion = @"2.33.7"; +NSString *const AWSMachineLearningSDKVersion = @"2.33.8"; @interface AWSMachineLearningResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSMachineLearning/Info.plist b/AWSMachineLearning/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSMachineLearning/Info.plist +++ b/AWSMachineLearning/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSMobileClient.podspec b/AWSMobileClient.podspec index 0639f5bae3a..9c1ebd53896 100644 --- a/AWSMobileClient.podspec +++ b/AWSMobileClient.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSMobileClient' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -13,14 +13,14 @@ Pod::Spec.new do |s| :tag => s.version} s.requires_arc = true - s.dependency 'AWSAuthCore', '2.33.7' - s.dependency 'AWSCognitoIdentityProvider', '2.33.7' + s.dependency 'AWSAuthCore', '2.33.8' + s.dependency 'AWSCognitoIdentityProvider', '2.33.8' # Include transitive dependencies to help CocoaPods resolve deeply nested # dependency graphs; without this we get sporadic failures compiling when a # project relies on AWSMobileClient - s.dependency 'AWSCore', '2.33.7' - s.dependency 'AWSCognitoIdentityProviderASF', '2.33.7' + s.dependency 'AWSCore', '2.33.8' + s.dependency 'AWSCognitoIdentityProviderASF', '2.33.8' s.source_files = 'AWSAuthSDK/Sources/AWSMobileClient/*.{h,m}', 'AWSAuthSDK/Sources/AWSMobileClient/Internal/*.{h,m}', 'AWSAuthSDK/Sources/AWSMobileClient/**/*.swift', 'AWSCognitoAuth/**/*.{h,m,c}' s.public_header_files = 'AWSAuthSDK/Sources/AWSMobileClient/AWSMobileClient.h', 'AWSAuthSDK/Sources/AWSMobileClient/Internal/_AWSMobileClient.h', 'AWSCognitoAuth/*.h', 'AWSAuthSDK/Sources/AWSMobileClient/Internal/AWSCognitoAuth+Extensions.h', 'AWSAuthSDK/Sources/AWSMobileClient/Internal/AWSCognitoCredentialsProvider+Extension.h', 'AWSAuthSDK/Sources/AWSMobileClient/Internal/AWSCognitoIdentityUserPool+Extension.h' diff --git a/AWSPinpoint.podspec b/AWSPinpoint.podspec index de2815a1ad6..bef93aed0fb 100644 --- a/AWSPinpoint.podspec +++ b/AWSPinpoint.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSPinpoint' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSPinpoint/*.{h,m}', 'AWSPinpoint/**/*.{h,m}' s.private_header_files = 'AWSPinpoint/Internal/*.h' end diff --git a/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingService.m b/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingService.m index 6fba98e6d49..12f5468fd45 100644 --- a/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingService.m +++ b/AWSPinpoint/AWSPinpointTargeting/AWSPinpointTargetingService.m @@ -25,7 +25,7 @@ #import "AWSPinpointTargetingResources.h" static NSString *const AWSInfoPinpointTargeting = @"PinpointTargeting"; -NSString *const AWSPinpointTargetingSDKVersion = @"2.33.7"; +NSString *const AWSPinpointTargetingSDKVersion = @"2.33.8"; @interface AWSPinpointTargetingResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSPinpoint/Info.plist b/AWSPinpoint/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSPinpoint/Info.plist +++ b/AWSPinpoint/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSPolly.podspec b/AWSPolly.podspec index 9df7dc8666b..d9226a5c2ff 100644 --- a/AWSPolly.podspec +++ b/AWSPolly.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSPolly' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSPolly/*.{h,m}' end diff --git a/AWSPolly/AWSPollyService.m b/AWSPolly/AWSPollyService.m index e9f57be03da..5759c86798c 100644 --- a/AWSPolly/AWSPollyService.m +++ b/AWSPolly/AWSPollyService.m @@ -25,7 +25,7 @@ #import "AWSPollyResources.h" static NSString *const AWSInfoPolly = @"Polly"; -NSString *const AWSPollySDKVersion = @"2.33.7"; +NSString *const AWSPollySDKVersion = @"2.33.8"; @interface AWSPollyResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSPolly/AWSPollySynthesizeSpeechURLBuilder.m b/AWSPolly/AWSPollySynthesizeSpeechURLBuilder.m index 6ee55e231bf..a382f4405fd 100644 --- a/AWSPolly/AWSPollySynthesizeSpeechURLBuilder.m +++ b/AWSPolly/AWSPollySynthesizeSpeechURLBuilder.m @@ -16,7 +16,7 @@ #import "AWSPollySynthesizeSpeechURLBuilder.h" static NSString *const AWSInfoPollySynthesizeSpeechURLBuilder = @"PollySynthesizeSpeechUrlBuilder"; -static NSString *const AWSPollySDKVersion = @"2.33.7"; +static NSString *const AWSPollySDKVersion = @"2.33.8"; NSString *const AWSPollySynthesizeSpeechURLBuilderErrorDomain = @"com.amazonaws.AWSPollySynthesizeSpeechURLBuilderErrorDomain"; NSString *const AWSPollyPresignedUrlPath = @"v1/speech"; diff --git a/AWSPolly/Info.plist b/AWSPolly/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSPolly/Info.plist +++ b/AWSPolly/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSRekognition.podspec b/AWSRekognition.podspec index af96dfce955..4fdcfc2b0f0 100644 --- a/AWSRekognition.podspec +++ b/AWSRekognition.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSRekognition' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSRekognition/*.{h,m}' end diff --git a/AWSRekognition/AWSRekognitionService.m b/AWSRekognition/AWSRekognitionService.m index a355a528283..a75c999cd77 100644 --- a/AWSRekognition/AWSRekognitionService.m +++ b/AWSRekognition/AWSRekognitionService.m @@ -25,7 +25,7 @@ #import "AWSRekognitionResources.h" static NSString *const AWSInfoRekognition = @"Rekognition"; -NSString *const AWSRekognitionSDKVersion = @"2.33.7"; +NSString *const AWSRekognitionSDKVersion = @"2.33.8"; @interface AWSRekognitionResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSRekognition/Info.plist b/AWSRekognition/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSRekognition/Info.plist +++ b/AWSRekognition/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSS3.podspec b/AWSS3.podspec index 4c03ecda00f..fd9ffefbcf1 100644 --- a/AWSS3.podspec +++ b/AWSS3.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSS3' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSS3/*.{h,m}' end diff --git a/AWSS3/AWSS3PreSignedURL.m b/AWSS3/AWSS3PreSignedURL.m index 08bfaeab7bb..0d64eba8686 100644 --- a/AWSS3/AWSS3PreSignedURL.m +++ b/AWSS3/AWSS3PreSignedURL.m @@ -26,7 +26,7 @@ static NSString *const AWSS3PreSignedURLBuilderAcceleratedEndpoint = @"s3-accelerate.amazonaws.com"; static NSString *const AWSInfoS3PreSignedURLBuilder = @"S3PreSignedURLBuilder"; -static NSString *const AWSS3PreSignedURLBuilderSDKVersion = @"2.33.7"; +static NSString *const AWSS3PreSignedURLBuilderSDKVersion = @"2.33.8"; @interface AWSS3PreSignedURLBuilder() diff --git a/AWSS3/AWSS3Service.m b/AWSS3/AWSS3Service.m index 472c700a764..36e7022d723 100644 --- a/AWSS3/AWSS3Service.m +++ b/AWSS3/AWSS3Service.m @@ -27,7 +27,7 @@ #import "AWSS3Serializer.h" static NSString *const AWSInfoS3 = @"S3"; -NSString *const AWSS3SDKVersion = @"2.33.7"; +NSString *const AWSS3SDKVersion = @"2.33.8"; diff --git a/AWSS3/Info.plist b/AWSS3/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSS3/Info.plist +++ b/AWSS3/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSSES.podspec b/AWSSES.podspec index d9ff8b357cb..deb1a86c06a 100644 --- a/AWSSES.podspec +++ b/AWSSES.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSSES' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSSES/*.{h,m}' end diff --git a/AWSSES/AWSSESService.m b/AWSSES/AWSSESService.m index 3ad86cf09ab..70c696e236c 100644 --- a/AWSSES/AWSSESService.m +++ b/AWSSES/AWSSESService.m @@ -25,7 +25,7 @@ #import "AWSSESResources.h" static NSString *const AWSInfoSES = @"SES"; -NSString *const AWSSESSDKVersion = @"2.33.7"; +NSString *const AWSSESSDKVersion = @"2.33.8"; @interface AWSSESResponseSerializer : AWSXMLResponseSerializer diff --git a/AWSSES/Info.plist b/AWSSES/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSSES/Info.plist +++ b/AWSSES/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSSNS.podspec b/AWSSNS.podspec index 36804e48bd1..8cc09d39517 100644 --- a/AWSSNS.podspec +++ b/AWSSNS.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSSNS' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSSNS/*.{h,m}' end diff --git a/AWSSNS/AWSSNSService.m b/AWSSNS/AWSSNSService.m index ec54891c8c2..23209a25bad 100644 --- a/AWSSNS/AWSSNSService.m +++ b/AWSSNS/AWSSNSService.m @@ -25,7 +25,7 @@ #import "AWSSNSResources.h" static NSString *const AWSInfoSNS = @"SNS"; -NSString *const AWSSNSSDKVersion = @"2.33.7"; +NSString *const AWSSNSSDKVersion = @"2.33.8"; @interface AWSSNSResponseSerializer : AWSXMLResponseSerializer diff --git a/AWSSNS/Info.plist b/AWSSNS/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSSNS/Info.plist +++ b/AWSSNS/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSSQS.podspec b/AWSSQS.podspec index b57b1bdbfda..fb4ec204f55 100644 --- a/AWSSQS.podspec +++ b/AWSSQS.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSSQS' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSSQS/*.{h,m}' end diff --git a/AWSSQS/AWSSQSService.m b/AWSSQS/AWSSQSService.m index d681b014ea5..1d9ae5ea783 100644 --- a/AWSSQS/AWSSQSService.m +++ b/AWSSQS/AWSSQSService.m @@ -25,7 +25,7 @@ #import "AWSSQSResources.h" static NSString *const AWSInfoSQS = @"SQS"; -NSString *const AWSSQSSDKVersion = @"2.33.7"; +NSString *const AWSSQSSDKVersion = @"2.33.8"; @interface AWSSQSResponseSerializer : AWSXMLResponseSerializer diff --git a/AWSSQS/Info.plist b/AWSSQS/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSSQS/Info.plist +++ b/AWSSQS/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSSageMakerRuntime.podspec b/AWSSageMakerRuntime.podspec index db3f85dc4ec..2137cf7595f 100644 --- a/AWSSageMakerRuntime.podspec +++ b/AWSSageMakerRuntime.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSSageMakerRuntime' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSSageMakerRuntime/*.{h,m}' end diff --git a/AWSSageMakerRuntime/AWSSageMakerRuntimeService.m b/AWSSageMakerRuntime/AWSSageMakerRuntimeService.m index eb899f4b9d7..a30a4f2ac27 100644 --- a/AWSSageMakerRuntime/AWSSageMakerRuntimeService.m +++ b/AWSSageMakerRuntime/AWSSageMakerRuntimeService.m @@ -25,7 +25,7 @@ #import "AWSSageMakerRuntimeResources.h" static NSString *const AWSInfoSageMakerRuntime = @"SageMakerRuntime"; -NSString *const AWSSageMakerRuntimeSDKVersion = @"2.33.7"; +NSString *const AWSSageMakerRuntimeSDKVersion = @"2.33.8"; @interface AWSSageMakerRuntimeResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSSageMakerRuntime/Info.plist b/AWSSageMakerRuntime/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSSageMakerRuntime/Info.plist +++ b/AWSSageMakerRuntime/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSSimpleDB.podspec b/AWSSimpleDB.podspec index ad0e449d2be..c89a716b025 100644 --- a/AWSSimpleDB.podspec +++ b/AWSSimpleDB.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSSimpleDB' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSSimpleDB/*.{h,m}' end diff --git a/AWSSimpleDB/AWSSimpleDBService.m b/AWSSimpleDB/AWSSimpleDBService.m index 88445496b8a..bc6387a29fa 100644 --- a/AWSSimpleDB/AWSSimpleDBService.m +++ b/AWSSimpleDB/AWSSimpleDBService.m @@ -25,7 +25,7 @@ #import "AWSSimpleDBResources.h" static NSString *const AWSInfoSimpleDB = @"SimpleDB"; -NSString *const AWSSimpleDBSDKVersion = @"2.33.7"; +NSString *const AWSSimpleDBSDKVersion = @"2.33.8"; @interface AWSSimpleDBResponseSerializer : AWSXMLResponseSerializer diff --git a/AWSSimpleDB/Info.plist b/AWSSimpleDB/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSSimpleDB/Info.plist +++ b/AWSSimpleDB/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSTextract.podspec b/AWSTextract.podspec index 13fea4e4cb7..a0ec4e7024f 100644 --- a/AWSTextract.podspec +++ b/AWSTextract.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSTextract' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSTextract/*.{h,m}' end diff --git a/AWSTextract/AWSTextractService.m b/AWSTextract/AWSTextractService.m index b787b00012f..8229dee55a2 100644 --- a/AWSTextract/AWSTextractService.m +++ b/AWSTextract/AWSTextractService.m @@ -25,7 +25,7 @@ #import "AWSTextractResources.h" static NSString *const AWSInfoTextract = @"Textract"; -NSString *const AWSTextractSDKVersion = @"2.33.7"; +NSString *const AWSTextractSDKVersion = @"2.33.8"; @interface AWSTextractResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSTextract/Info.plist b/AWSTextract/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSTextract/Info.plist +++ b/AWSTextract/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSTranscribe.podspec b/AWSTranscribe.podspec index 53512254677..7eced1bec06 100644 --- a/AWSTranscribe.podspec +++ b/AWSTranscribe.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSTranscribe' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSTranscribe/*.{h,m}' end diff --git a/AWSTranscribe/AWSTranscribeService.m b/AWSTranscribe/AWSTranscribeService.m index 368fa108b00..8fe0c17f606 100644 --- a/AWSTranscribe/AWSTranscribeService.m +++ b/AWSTranscribe/AWSTranscribeService.m @@ -25,7 +25,7 @@ #import "AWSTranscribeResources.h" static NSString *const AWSInfoTranscribe = @"Transcribe"; -NSString *const AWSTranscribeSDKVersion = @"2.33.7"; +NSString *const AWSTranscribeSDKVersion = @"2.33.8"; @interface AWSTranscribeResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSTranscribe/Info.plist b/AWSTranscribe/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSTranscribe/Info.plist +++ b/AWSTranscribe/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSTranscribeStreaming.podspec b/AWSTranscribeStreaming.podspec index 44b51d1bb0f..e327cb1d54d 100644 --- a/AWSTranscribeStreaming.podspec +++ b/AWSTranscribeStreaming.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSTranscribeStreaming' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,7 +12,7 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSTranscribeStreaming/*.{h,m}', 'AWSTranscribeStreaming/**/*.{h,m}', 'AWSIoT/Internal/SocketRocket/*.{h,m}' s.private_header_files = 'AWSTranscribeStreaming/Internal/*.h', 'AWSIoT/Internal/SocketRocket/*.h' end diff --git a/AWSTranscribeStreaming/AWSTranscribeStreamingService.m b/AWSTranscribeStreaming/AWSTranscribeStreamingService.m index 3c09ad008df..ed7588c50c1 100644 --- a/AWSTranscribeStreaming/AWSTranscribeStreamingService.m +++ b/AWSTranscribeStreaming/AWSTranscribeStreamingService.m @@ -33,7 +33,7 @@ NSString *const AWSTranscribeStreamingClientErrorDomain = @"com.amazonaws.AWSTranscribeStreamingClientErrorDomain"; static NSString *const AWSInfoTranscribeStreaming = @"TranscribeStreaming"; -NSString *const AWSTranscribeStreamingSDKVersion = @"2.33.7"; +NSString *const AWSTranscribeStreamingSDKVersion = @"2.33.8"; @interface AWSTranscribeStreamingResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSTranscribeStreaming/Info.plist b/AWSTranscribeStreaming/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSTranscribeStreaming/Info.plist +++ b/AWSTranscribeStreaming/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSTranslate.podspec b/AWSTranslate.podspec index 120eca24a76..597d14d56ad 100644 --- a/AWSTranslate.podspec +++ b/AWSTranslate.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSTranslate' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,6 +12,6 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSTranslate/*.{h,m}' end diff --git a/AWSTranslate/AWSTranslateService.m b/AWSTranslate/AWSTranslateService.m index db7c0040c8b..07f546491a0 100644 --- a/AWSTranslate/AWSTranslateService.m +++ b/AWSTranslate/AWSTranslateService.m @@ -25,7 +25,7 @@ #import "AWSTranslateResources.h" static NSString *const AWSInfoTranslate = @"Translate"; -NSString *const AWSTranslateSDKVersion = @"2.33.7"; +NSString *const AWSTranslateSDKVersion = @"2.33.8"; @interface AWSTranslateResponseSerializer : AWSJSONResponseSerializer diff --git a/AWSTranslate/Info.plist b/AWSTranslate/Info.plist index fe0cdeeca63..79de448a06d 100644 --- a/AWSTranslate/Info.plist +++ b/AWSTranslate/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 2.33.7 + 2.33.8 CFBundleSignature ???? CFBundleVersion diff --git a/AWSUserPoolsSignIn.podspec b/AWSUserPoolsSignIn.podspec index d025f44feef..e7bfb426f4e 100644 --- a/AWSUserPoolsSignIn.podspec +++ b/AWSUserPoolsSignIn.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'AWSUserPoolsSignIn' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.description = 'The AWS SDK for iOS provides a library, code samples, and documentation for developers to build connected mobile applications using AWS.' @@ -12,9 +12,9 @@ Pod::Spec.new do |s| s.source = { :git => 'https://github.com/aws-amplify/aws-sdk-ios.git', :tag => s.version} s.requires_arc = true - s.dependency 'AWSCognitoIdentityProvider', '2.33.7' - s.dependency 'AWSAuthCore', '2.33.7' - s.dependency 'AWSCore', '2.33.7' + s.dependency 'AWSCognitoIdentityProvider', '2.33.8' + s.dependency 'AWSAuthCore', '2.33.8' + s.dependency 'AWSCore', '2.33.8' s.source_files = 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/**/*.{h,m}' s.public_header_files = 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/*.{h}' s.private_header_files = 'AWSAuthSDK/Sources/AWSUserPoolsSignIn/UserPoolsUI/*.{h}' diff --git a/AWSiOSSDKv2.podspec b/AWSiOSSDKv2.podspec index 160753ffefd..23d0d004dd3 100644 --- a/AWSiOSSDKv2.podspec +++ b/AWSiOSSDKv2.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'AWSiOSSDKv2' - s.version = '2.33.7' + s.version = '2.33.8' s.summary = 'Amazon Web Services SDK for iOS.' s.deprecated = true @@ -18,135 +18,135 @@ Pod::Spec.new do |s| # Used by many of the service-api subspecs s.subspec 'AWSCognitoIdentityProvider' do |sub| - sub.dependency 'AWSCognitoIdentityProvider', '2.33.7' + sub.dependency 'AWSCognitoIdentityProvider', '2.33.8' end # Used by all service-api subspecs s.subspec 'AWSCore' do |sub| - sub.dependency 'AWSCore', '2.33.7' + sub.dependency 'AWSCore', '2.33.8' end # Service-api subspecs s.subspec 'AWSAPIGateway' do |sub| - sub.dependency 'AWSAPIGateway', '2.33.7' + sub.dependency 'AWSAPIGateway', '2.33.8' end s.subspec 'AutoScaling' do |sub| - sub.dependency 'AWSAutoScaling', '2.33.7' + sub.dependency 'AWSAutoScaling', '2.33.8' end s.subspec 'CloudWatch' do |sub| - sub.dependency 'AWSCloudWatch', '2.33.7' + sub.dependency 'AWSCloudWatch', '2.33.8' end s.subspec 'AWSComprehend' do |sub| - sub.dependency 'AWSComprehend', '2.33.7' + sub.dependency 'AWSComprehend', '2.33.8' end s.subspec 'AWSConnect' do |sub| - sub.dependency 'AWSConnect', '2.33.7' + sub.dependency 'AWSConnect', '2.33.8' end s.subspec 'AWSConnectParticipant' do |sub| - sub.dependency 'AWSConnectParticipant', '2.33.7' + sub.dependency 'AWSConnectParticipant', '2.33.8' end s.subspec 'DynamoDB' do |sub| - sub.dependency 'AWSDynamoDB', '2.33.7' + sub.dependency 'AWSDynamoDB', '2.33.8' end s.subspec 'EC2' do |sub| - sub.dependency 'AWSEC2', '2.33.7' + sub.dependency 'AWSEC2', '2.33.8' end s.subspec 'ElasticLoadBalancing' do |sub| - sub.dependency 'AWSElasticLoadBalancing', '2.33.7' + sub.dependency 'AWSElasticLoadBalancing', '2.33.8' end s.subspec 'AWSIoT' do |sub| - sub.dependency 'AWSIoT', '2.33.7' + sub.dependency 'AWSIoT', '2.33.8' end s.subspec 'AWSKMS' do |sub| - sub.dependency 'AWSKMS', '2.33.7' + sub.dependency 'AWSKMS', '2.33.8' end s.subspec 'Kinesis' do |sub| - sub.dependency 'AWSKinesis', '2.33.7' + sub.dependency 'AWSKinesis', '2.33.8' end # KinesisVideo not released as part of AWSiOSSDKv2 # KinesisVideoArchivedMedia not released as part of AWSiOSSDKv2 s.subspec 'KinesisVideoSignaling' do |sub| - sub.dependency 'AWSKinesisVideoSignaling', '2.33.7' + sub.dependency 'AWSKinesisVideoSignaling', '2.33.8' end s.subspec 'AWSLambda' do |sub| - sub.dependency 'AWSLambda', '2.33.7' + sub.dependency 'AWSLambda', '2.33.8' end s.subspec 'AWSLex' do |sub| - sub.dependency 'AWSLex', '2.33.7' + sub.dependency 'AWSLex', '2.33.8' end s.subspec 'AWSLogs' do |sub| - sub.dependency 'AWSLogs', '2.33.7' + sub.dependency 'AWSLogs', '2.33.8' end s.subspec 'AWSMachineLearning' do |sub| - sub.dependency 'AWSMachineLearning', '2.33.7' + sub.dependency 'AWSMachineLearning', '2.33.8' end s.subspec 'Pinpoint' do |sub| - sub.dependency 'AWSPinpoint', '2.33.7' + sub.dependency 'AWSPinpoint', '2.33.8' end s.subspec 'AWSPolly' do |sub| - sub.dependency 'AWSPolly', '2.33.7' + sub.dependency 'AWSPolly', '2.33.8' end s.subspec 'AWSRekognition' do |sub| - sub.dependency 'AWSRekognition', '2.33.7' + sub.dependency 'AWSRekognition', '2.33.8' end s.subspec 'AWSS3' do |sub| - sub.dependency 'AWSS3', '2.33.7' + sub.dependency 'AWSS3', '2.33.8' end s.subspec 'AWSSES' do |sub| - sub.dependency 'AWSSES', '2.33.7' + sub.dependency 'AWSSES', '2.33.8' end s.subspec 'AWSSNS' do |sub| - sub.dependency 'AWSSNS', '2.33.7' + sub.dependency 'AWSSNS', '2.33.8' end s.subspec 'AWSSQS' do |sub| - sub.dependency 'AWSSQS', '2.33.7' + sub.dependency 'AWSSQS', '2.33.8' end s.subspec 'AWSSageMakerRuntime' do |sub| - sub.dependency 'AWSSageMakerRuntime', '2.33.7' + sub.dependency 'AWSSageMakerRuntime', '2.33.8' end s.subspec 'AWSSimpleDB' do |sub| - sub.dependency 'AWSSimpleDB', '2.33.7' + sub.dependency 'AWSSimpleDB', '2.33.8' end s.subspec 'AWSTextract' do |sub| - sub.dependency 'AWSTextract', '2.33.7' + sub.dependency 'AWSTextract', '2.33.8' end s.subspec 'AWSTranscribe' do |sub| - sub.dependency 'AWSTranscribe', '2.33.7' + sub.dependency 'AWSTranscribe', '2.33.8' end # note that AWSTranscribeStreaming requires iOS 9.0 or higher, and is # therefore not included as a subspec s.subspec 'AWSTranslate' do |sub| - sub.dependency 'AWSTranslate', '2.33.7' + sub.dependency 'AWSTranslate', '2.33.8' end end diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ee01219094..0899907ba05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +-Features for next release + +## 2.33.8 + ### Misc. Updates - Model updates for the following services diff --git a/CircleciScripts/generate_documentation.sh b/CircleciScripts/generate_documentation.sh index 3933465b1cb..082acc23dbb 100644 --- a/CircleciScripts/generate_documentation.sh +++ b/CircleciScripts/generate_documentation.sh @@ -6,7 +6,7 @@ set -x -SDK_VERSION="2.33.7" +SDK_VERSION="2.33.8" GITHUB_DOC_ROOT=https://aws-amplify.github.io GITHUB_SOURCE_ROOT=https://github.com/aws-amplify/aws-sdk-ios