aws-sdk-connect 1.262.0 → 1.263.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 72e9571637c2a02269bebb7c9b825f20b4bedb2e073d173423ed7f3e24587066
4
- data.tar.gz: 291ec48c56aa24f1bb3346c86a27f350c8895f729fe298f38b7e576f13545c8b
3
+ metadata.gz: 98973c8953106c3db7c134e85d803967b69f5c51c69cbf0537205d9fdcc9ec39
4
+ data.tar.gz: 8167576d46102beacfb8aea71a8f483b102a0ca0d10e542d22ce7449d33a1802
5
5
  SHA512:
6
- metadata.gz: ca7fb4ed8c3da2a157fe1f3928b68aaf5795fecf5b17c54bf3eef6befe337cc8248101da44c74b18a4b6792ac6dbd186c25328307a6558f953455e9dc2723758
7
- data.tar.gz: 2e6ca17c37b8196f1030b89631cbd2cfeeb59229fcb231b4c6a366a1f8074c15a16bf9c0ec9d55ec6e61f1d36d5abe8d3f44f9de29c24535cbaedb21e7a1eede
6
+ metadata.gz: 11fc0e27fca5e3c5c617ce2c7017c77393e6f7254e249983dab70eea078cbddaaecde37a716a9c6ee880013fcdb1fa0c188678c523d6e4136f2517ae6e603849
7
+ data.tar.gz: 71c92ae22a5ded7fdee9b8878f7c56702643f59af02dd9ad3c1c63b51a444956dbb5fa43a155951937d89555f23530da1bb4a41a2ad6d9587426866a59f6e572
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.263.0 (2026-07-07)
5
+ ------------------
6
+
7
+ * Feature - Adds support for CreateAuthCode and DeleteSession APIs.
8
+
4
9
  1.262.0 (2026-07-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.262.0
1
+ 1.263.0
@@ -2605,6 +2605,69 @@ module Aws::Connect
2605
2605
  req.send_request(options)
2606
2606
  end
2607
2607
 
2608
+ # Creates an authorization code for the specified Connect Customer
2609
+ # instance. The authorization code can be used to establish a session
2610
+ # with scoped permissions defined by the specified scope parameters.
2611
+ #
2612
+ # @option params [required, String] :instance_id
2613
+ # The identifier of the Connect Customer instance. You can [find the
2614
+ # instance ID][1] in the Amazon Resource Name (ARN) of the instance.
2615
+ #
2616
+ #
2617
+ #
2618
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html
2619
+ #
2620
+ # @option params [required, Types::AuthScope] :scope
2621
+ # The scope for the authorization code. Defines the permissions and
2622
+ # access boundaries for the session.
2623
+ #
2624
+ # @option params [Integer] :max_session_duration_minutes
2625
+ # The maximum duration of the session, in minutes. Minimum value of 1440
2626
+ # (24 hours). Maximum value of 43200 (30 days). If no value is provided,
2627
+ # the session will expire after 400 days.
2628
+ #
2629
+ # @option params [required, Integer] :session_inactivity_duration_minutes
2630
+ # The duration of inactivity, in minutes, after which the session
2631
+ # expires. Minimum value of 1440 (24 hours). Maximum value of 20160 (14
2632
+ # days).
2633
+ #
2634
+ # @return [Types::CreateAuthCodeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2635
+ #
2636
+ # * {Types::CreateAuthCodeResponse#auth_code #auth_code} => String
2637
+ # * {Types::CreateAuthCodeResponse#session_id #session_id} => String
2638
+ # * {Types::CreateAuthCodeResponse#entity_type #entity_type} => String
2639
+ # * {Types::CreateAuthCodeResponse#entity_id #entity_id} => String
2640
+ #
2641
+ # @example Request syntax with placeholder values
2642
+ #
2643
+ # resp = client.create_auth_code({
2644
+ # instance_id: "InstanceId", # required
2645
+ # scope: { # required
2646
+ # security_profile_ids: ["SecurityProfileId"],
2647
+ # entity_type: "CUSTOMER_PROFILE", # required, accepts CUSTOMER_PROFILE
2648
+ # entity_id: "EntityId",
2649
+ # domain_name: "CustomerProfilesDomainName",
2650
+ # },
2651
+ # max_session_duration_minutes: 1,
2652
+ # session_inactivity_duration_minutes: 1, # required
2653
+ # })
2654
+ #
2655
+ # @example Response structure
2656
+ #
2657
+ # resp.auth_code #=> String
2658
+ # resp.session_id #=> String
2659
+ # resp.entity_type #=> String, one of "CUSTOMER_PROFILE"
2660
+ # resp.entity_id #=> String
2661
+ #
2662
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateAuthCode AWS API Documentation
2663
+ #
2664
+ # @overload create_auth_code(params = {})
2665
+ # @param [Hash] params ({})
2666
+ def create_auth_code(params = {}, options = {})
2667
+ req = build_request(:create_auth_code, params)
2668
+ req.send_request(options)
2669
+ end
2670
+
2608
2671
  # Only the VOICE, EMAIL, and TASK channels are supported.
2609
2672
  #
2610
2673
  # * For VOICE: The supported initiation method is `TRANSFER`. The
@@ -7051,6 +7114,37 @@ module Aws::Connect
7051
7114
  req.send_request(options)
7052
7115
  end
7053
7116
 
7117
+ # Deletes a session for the specified Connect Customer instance.
7118
+ #
7119
+ # @option params [required, String] :instance_id
7120
+ # The identifier of the Connect Customer instance. You can [find the
7121
+ # instance ID][1] in the Amazon Resource Name (ARN) of the instance.
7122
+ #
7123
+ #
7124
+ #
7125
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html
7126
+ #
7127
+ # @option params [required, String] :session_id
7128
+ # The identifier of the session to delete.
7129
+ #
7130
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
7131
+ #
7132
+ # @example Request syntax with placeholder values
7133
+ #
7134
+ # resp = client.delete_session({
7135
+ # instance_id: "InstanceId", # required
7136
+ # session_id: "SessionId", # required
7137
+ # })
7138
+ #
7139
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteSession AWS API Documentation
7140
+ #
7141
+ # @overload delete_session(params = {})
7142
+ # @param [Hash] params ({})
7143
+ def delete_session(params = {}, options = {})
7144
+ req = build_request(:delete_session, params)
7145
+ req.send_request(options)
7146
+ end
7147
+
7054
7148
  # Deletes the task template.
7055
7149
  #
7056
7150
  # @option params [required, String] :instance_id
@@ -11766,10 +11860,10 @@ module Aws::Connect
11766
11860
  #
11767
11861
  # @return [Types::GetFederationTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
11768
11862
  #
11863
+ # * {Types::GetFederationTokenResponse#user_id #user_id} => String
11864
+ # * {Types::GetFederationTokenResponse#user_arn #user_arn} => String
11769
11865
  # * {Types::GetFederationTokenResponse#credentials #credentials} => Types::Credentials
11770
11866
  # * {Types::GetFederationTokenResponse#sign_in_url #sign_in_url} => String
11771
- # * {Types::GetFederationTokenResponse#user_arn #user_arn} => String
11772
- # * {Types::GetFederationTokenResponse#user_id #user_id} => String
11773
11867
  #
11774
11868
  # @example Request syntax with placeholder values
11775
11869
  #
@@ -11779,13 +11873,13 @@ module Aws::Connect
11779
11873
  #
11780
11874
  # @example Response structure
11781
11875
  #
11876
+ # resp.user_id #=> String
11877
+ # resp.user_arn #=> String
11782
11878
  # resp.credentials.access_token #=> String
11783
11879
  # resp.credentials.access_token_expiration #=> Time
11784
11880
  # resp.credentials.refresh_token #=> String
11785
11881
  # resp.credentials.refresh_token_expiration #=> Time
11786
11882
  # resp.sign_in_url #=> String
11787
- # resp.user_arn #=> String
11788
- # resp.user_id #=> String
11789
11883
  #
11790
11884
  # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetFederationToken AWS API Documentation
11791
11885
  #
@@ -29846,7 +29940,7 @@ module Aws::Connect
29846
29940
  tracer: tracer
29847
29941
  )
29848
29942
  context[:gem_name] = 'aws-sdk-connect'
29849
- context[:gem_version] = '1.262.0'
29943
+ context[:gem_version] = '1.263.0'
29850
29944
  Seahorse::Client::Request.new(handlers, context)
29851
29945
  end
29852
29946
 
@@ -167,6 +167,9 @@ module Aws::Connect
167
167
  AudioFeatures = Shapes::StructureShape.new(name: 'AudioFeatures')
168
168
  AudioQualityMetricsInfo = Shapes::StructureShape.new(name: 'AudioQualityMetricsInfo')
169
169
  AudioQualityScore = Shapes::FloatShape.new(name: 'AudioQualityScore')
170
+ AuthCode = Shapes::StringShape.new(name: 'AuthCode')
171
+ AuthCodeEntityType = Shapes::StringShape.new(name: 'AuthCodeEntityType')
172
+ AuthScope = Shapes::StructureShape.new(name: 'AuthScope')
170
173
  AuthenticationError = Shapes::StringShape.new(name: 'AuthenticationError')
171
174
  AuthenticationErrorDescription = Shapes::StringShape.new(name: 'AuthenticationErrorDescription')
172
175
  AuthenticationProfile = Shapes::StructureShape.new(name: 'AuthenticationProfile')
@@ -368,6 +371,8 @@ module Aws::Connect
368
371
  CreateAgentStatusResponse = Shapes::StructureShape.new(name: 'CreateAgentStatusResponse')
369
372
  CreateAttachedFileRequest = Shapes::StructureShape.new(name: 'CreateAttachedFileRequest')
370
373
  CreateAttachedFileResponse = Shapes::StructureShape.new(name: 'CreateAttachedFileResponse')
374
+ CreateAuthCodeRequest = Shapes::StructureShape.new(name: 'CreateAuthCodeRequest')
375
+ CreateAuthCodeResponse = Shapes::StructureShape.new(name: 'CreateAuthCodeResponse')
371
376
  CreateCaseActionDefinition = Shapes::StructureShape.new(name: 'CreateCaseActionDefinition')
372
377
  CreateContactFlowModuleAliasRequest = Shapes::StructureShape.new(name: 'CreateContactFlowModuleAliasRequest')
373
378
  CreateContactFlowModuleAliasResponse = Shapes::StructureShape.new(name: 'CreateContactFlowModuleAliasResponse')
@@ -459,6 +464,7 @@ module Aws::Connect
459
464
  CustomerIdNonEmpty = Shapes::StringShape.new(name: 'CustomerIdNonEmpty')
460
465
  CustomerProfileAttributesSerialized = Shapes::StringShape.new(name: 'CustomerProfileAttributesSerialized')
461
466
  CustomerProfileId = Shapes::StringShape.new(name: 'CustomerProfileId')
467
+ CustomerProfilesDomainName = Shapes::StringShape.new(name: 'CustomerProfilesDomainName')
462
468
  CustomerQualityMetrics = Shapes::StructureShape.new(name: 'CustomerQualityMetrics')
463
469
  CustomerVoiceActivity = Shapes::StructureShape.new(name: 'CustomerVoiceActivity')
464
470
  DataSetId = Shapes::StringShape.new(name: 'DataSetId')
@@ -541,6 +547,8 @@ module Aws::Connect
541
547
  DeleteRoutingProfileRequest = Shapes::StructureShape.new(name: 'DeleteRoutingProfileRequest')
542
548
  DeleteRuleRequest = Shapes::StructureShape.new(name: 'DeleteRuleRequest')
543
549
  DeleteSecurityProfileRequest = Shapes::StructureShape.new(name: 'DeleteSecurityProfileRequest')
550
+ DeleteSessionRequest = Shapes::StructureShape.new(name: 'DeleteSessionRequest')
551
+ DeleteSessionResponse = Shapes::StructureShape.new(name: 'DeleteSessionResponse')
544
552
  DeleteTaskTemplateRequest = Shapes::StructureShape.new(name: 'DeleteTaskTemplateRequest')
545
553
  DeleteTaskTemplateResponse = Shapes::StructureShape.new(name: 'DeleteTaskTemplateResponse')
546
554
  DeleteTestCaseRequest = Shapes::StructureShape.new(name: 'DeleteTestCaseRequest')
@@ -727,6 +735,7 @@ module Aws::Connect
727
735
  Entities = Shapes::ListShape.new(name: 'Entities')
728
736
  Entity = Shapes::StringShape.new(name: 'Entity')
729
737
  EntityArn = Shapes::StringShape.new(name: 'EntityArn')
738
+ EntityId = Shapes::StringShape.new(name: 'EntityId')
730
739
  EntityType = Shapes::StringShape.new(name: 'EntityType')
731
740
  EpochMilliseconds = Shapes::IntegerShape.new(name: 'EpochMilliseconds')
732
741
  ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
@@ -1253,6 +1262,7 @@ module Aws::Connect
1253
1262
  MaxResult500 = Shapes::IntegerShape.new(name: 'MaxResult500')
1254
1263
  MaxResult7 = Shapes::IntegerShape.new(name: 'MaxResult7')
1255
1264
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
1265
+ MaxSessionDurationMinutes = Shapes::IntegerShape.new(name: 'MaxSessionDurationMinutes')
1256
1266
  MaximumResultReturnedException = Shapes::StructureShape.new(name: 'MaximumResultReturnedException')
1257
1267
  MaximumSizeLimitInBytes = Shapes::IntegerShape.new(name: 'MaximumSizeLimitInBytes')
1258
1268
  MediaConcurrencies = Shapes::ListShape.new(name: 'MediaConcurrencies')
@@ -1785,6 +1795,8 @@ module Aws::Connect
1785
1795
  SentimentConfiguration = Shapes::StructureShape.new(name: 'SentimentConfiguration')
1786
1796
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
1787
1797
  ServiceQuotaExceededExceptionReason = Shapes::UnionShape.new(name: 'ServiceQuotaExceededExceptionReason')
1798
+ SessionId = Shapes::StringShape.new(name: 'SessionId')
1799
+ SessionInactivityDurationMinutes = Shapes::IntegerShape.new(name: 'SessionInactivityDurationMinutes')
1788
1800
  SignInConfig = Shapes::StructureShape.new(name: 'SignInConfig')
1789
1801
  SignInDistribution = Shapes::StructureShape.new(name: 'SignInDistribution')
1790
1802
  SignInDistributionList = Shapes::ListShape.new(name: 'SignInDistributionList')
@@ -2671,6 +2683,12 @@ module Aws::Connect
2671
2683
  AudioQualityMetricsInfo.add_member(:potential_quality_issues, Shapes::ShapeRef.new(shape: PotentialAudioQualityIssues, location_name: "PotentialQualityIssues"))
2672
2684
  AudioQualityMetricsInfo.struct_class = Types::AudioQualityMetricsInfo
2673
2685
 
2686
+ AuthScope.add_member(:security_profile_ids, Shapes::ShapeRef.new(shape: SecurityProfileIds, location_name: "SecurityProfileIds"))
2687
+ AuthScope.add_member(:entity_type, Shapes::ShapeRef.new(shape: AuthCodeEntityType, required: true, location_name: "EntityType"))
2688
+ AuthScope.add_member(:entity_id, Shapes::ShapeRef.new(shape: EntityId, location_name: "EntityId"))
2689
+ AuthScope.add_member(:domain_name, Shapes::ShapeRef.new(shape: CustomerProfilesDomainName, location_name: "DomainName"))
2690
+ AuthScope.struct_class = Types::AuthScope
2691
+
2674
2692
  AuthenticationProfile.add_member(:id, Shapes::ShapeRef.new(shape: AuthenticationProfileId, location_name: "Id"))
2675
2693
  AuthenticationProfile.add_member(:arn, Shapes::ShapeRef.new(shape: ARN, location_name: "Arn"))
2676
2694
  AuthenticationProfile.add_member(:name, Shapes::ShapeRef.new(shape: AuthenticationProfileName, location_name: "Name"))
@@ -3333,6 +3351,18 @@ module Aws::Connect
3333
3351
  CreateAttachedFileResponse.add_member(:file_status, Shapes::ShapeRef.new(shape: FileStatusType, location_name: "FileStatus"))
3334
3352
  CreateAttachedFileResponse.struct_class = Types::CreateAttachedFileResponse
3335
3353
 
3354
+ CreateAuthCodeRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
3355
+ CreateAuthCodeRequest.add_member(:scope, Shapes::ShapeRef.new(shape: AuthScope, required: true, location_name: "Scope"))
3356
+ CreateAuthCodeRequest.add_member(:max_session_duration_minutes, Shapes::ShapeRef.new(shape: MaxSessionDurationMinutes, location_name: "MaxSessionDurationMinutes", metadata: {"box" => true}))
3357
+ CreateAuthCodeRequest.add_member(:session_inactivity_duration_minutes, Shapes::ShapeRef.new(shape: SessionInactivityDurationMinutes, required: true, location_name: "SessionInactivityDurationMinutes"))
3358
+ CreateAuthCodeRequest.struct_class = Types::CreateAuthCodeRequest
3359
+
3360
+ CreateAuthCodeResponse.add_member(:auth_code, Shapes::ShapeRef.new(shape: AuthCode, location_name: "AuthCode"))
3361
+ CreateAuthCodeResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, location_name: "SessionId"))
3362
+ CreateAuthCodeResponse.add_member(:entity_type, Shapes::ShapeRef.new(shape: AuthCodeEntityType, location_name: "EntityType"))
3363
+ CreateAuthCodeResponse.add_member(:entity_id, Shapes::ShapeRef.new(shape: EntityId, location_name: "EntityId"))
3364
+ CreateAuthCodeResponse.struct_class = Types::CreateAuthCodeResponse
3365
+
3336
3366
  CreateCaseActionDefinition.add_member(:fields, Shapes::ShapeRef.new(shape: FieldValues, required: true, location_name: "Fields"))
3337
3367
  CreateCaseActionDefinition.add_member(:template_id, Shapes::ShapeRef.new(shape: TemplateId, required: true, location_name: "TemplateId"))
3338
3368
  CreateCaseActionDefinition.struct_class = Types::CreateCaseActionDefinition
@@ -3816,9 +3846,9 @@ module Aws::Connect
3816
3846
  CreatedByInfo.struct_class = Types::CreatedByInfo
3817
3847
 
3818
3848
  Credentials.add_member(:access_token, Shapes::ShapeRef.new(shape: SecurityToken, location_name: "AccessToken"))
3819
- Credentials.add_member(:access_token_expiration, Shapes::ShapeRef.new(shape: timestamp, location_name: "AccessTokenExpiration"))
3849
+ Credentials.add_member(:access_token_expiration, Shapes::ShapeRef.new(shape: Timestamp, location_name: "AccessTokenExpiration"))
3820
3850
  Credentials.add_member(:refresh_token, Shapes::ShapeRef.new(shape: SecurityToken, location_name: "RefreshToken"))
3821
- Credentials.add_member(:refresh_token_expiration, Shapes::ShapeRef.new(shape: timestamp, location_name: "RefreshTokenExpiration"))
3851
+ Credentials.add_member(:refresh_token_expiration, Shapes::ShapeRef.new(shape: Timestamp, location_name: "RefreshTokenExpiration"))
3822
3852
  Credentials.struct_class = Types::Credentials
3823
3853
 
3824
3854
  CrossChannelBehavior.add_member(:behavior_type, Shapes::ShapeRef.new(shape: BehaviorType, required: true, location_name: "BehaviorType"))
@@ -4141,6 +4171,12 @@ module Aws::Connect
4141
4171
  DeleteSecurityProfileRequest.add_member(:security_profile_id, Shapes::ShapeRef.new(shape: SecurityProfileId, required: true, location: "uri", location_name: "SecurityProfileId"))
4142
4172
  DeleteSecurityProfileRequest.struct_class = Types::DeleteSecurityProfileRequest
4143
4173
 
4174
+ DeleteSessionRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
4175
+ DeleteSessionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: SessionId, required: true, location: "uri", location_name: "SessionId"))
4176
+ DeleteSessionRequest.struct_class = Types::DeleteSessionRequest
4177
+
4178
+ DeleteSessionResponse.struct_class = Types::DeleteSessionResponse
4179
+
4144
4180
  DeleteTaskTemplateRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
4145
4181
  DeleteTaskTemplateRequest.add_member(:task_template_id, Shapes::ShapeRef.new(shape: TaskTemplateId, required: true, location: "uri", location_name: "TaskTemplateId"))
4146
4182
  DeleteTaskTemplateRequest.struct_class = Types::DeleteTaskTemplateRequest
@@ -5452,10 +5488,10 @@ module Aws::Connect
5452
5488
  GetFederationTokenRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
5453
5489
  GetFederationTokenRequest.struct_class = Types::GetFederationTokenRequest
5454
5490
 
5491
+ GetFederationTokenResponse.add_member(:user_id, Shapes::ShapeRef.new(shape: AgentResourceId, location_name: "UserId"))
5492
+ GetFederationTokenResponse.add_member(:user_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "UserArn"))
5455
5493
  GetFederationTokenResponse.add_member(:credentials, Shapes::ShapeRef.new(shape: Credentials, location_name: "Credentials"))
5456
5494
  GetFederationTokenResponse.add_member(:sign_in_url, Shapes::ShapeRef.new(shape: Url, location_name: "SignInUrl"))
5457
- GetFederationTokenResponse.add_member(:user_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "UserArn"))
5458
- GetFederationTokenResponse.add_member(:user_id, Shapes::ShapeRef.new(shape: AgentResourceId, location_name: "UserId"))
5459
5495
  GetFederationTokenResponse.struct_class = Types::GetFederationTokenResponse
5460
5496
 
5461
5497
  GetFlowAssociationRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, required: true, location: "uri", location_name: "InstanceId"))
@@ -10205,6 +10241,20 @@ module Aws::Connect
10205
10241
  o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
10206
10242
  end)
10207
10243
 
10244
+ api.add_operation(:create_auth_code, Seahorse::Model::Operation.new.tap do |o|
10245
+ o.name = "CreateAuthCode"
10246
+ o.http_method = "POST"
10247
+ o.http_request_uri = "/auth/code/{InstanceId}"
10248
+ o.input = Shapes::ShapeRef.new(shape: CreateAuthCodeRequest)
10249
+ o.output = Shapes::ShapeRef.new(shape: CreateAuthCodeResponse)
10250
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
10251
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
10252
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
10253
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
10254
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
10255
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
10256
+ end)
10257
+
10208
10258
  api.add_operation(:create_contact, Seahorse::Model::Operation.new.tap do |o|
10209
10259
  o.name = "CreateContact"
10210
10260
  o.http_method = "PUT"
@@ -11100,6 +11150,20 @@ module Aws::Connect
11100
11150
  o.errors << Shapes::ShapeRef.new(shape: ResourceInUseException)
11101
11151
  end)
11102
11152
 
11153
+ api.add_operation(:delete_session, Seahorse::Model::Operation.new.tap do |o|
11154
+ o.name = "DeleteSession"
11155
+ o.http_method = "DELETE"
11156
+ o.http_request_uri = "/auth/sessions/{InstanceId}/{SessionId}"
11157
+ o.input = Shapes::ShapeRef.new(shape: DeleteSessionRequest)
11158
+ o.output = Shapes::ShapeRef.new(shape: DeleteSessionResponse)
11159
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
11160
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
11161
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
11162
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
11163
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
11164
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
11165
+ end)
11166
+
11103
11167
  api.add_operation(:delete_task_template, Seahorse::Model::Operation.new.tap do |o|
11104
11168
  o.name = "DeleteTaskTemplate"
11105
11169
  o.http_method = "DELETE"
@@ -12102,6 +12166,7 @@ module Aws::Connect
12102
12166
  o.errors << Shapes::ShapeRef.new(shape: UserNotFoundException)
12103
12167
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
12104
12168
  o.errors << Shapes::ShapeRef.new(shape: DuplicateResourceException)
12169
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
12105
12170
  end)
12106
12171
 
12107
12172
  api.add_operation(:get_flow_association, Seahorse::Model::Operation.new.tap do |o|
@@ -2103,6 +2103,37 @@ module Aws::Connect
2103
2103
  include Aws::Structure
2104
2104
  end
2105
2105
 
2106
+ # Contains the scope configuration for an authorization code. Defines
2107
+ # the permissions and access boundaries for the session.
2108
+ #
2109
+ # @!attribute [rw] security_profile_ids
2110
+ # The list of security profile identifiers to scope the session to.
2111
+ # Maximum of 10 security profiles.
2112
+ # @return [Array<String>]
2113
+ #
2114
+ # @!attribute [rw] entity_type
2115
+ # The type of entity to scope the session to.
2116
+ # @return [String]
2117
+ #
2118
+ # @!attribute [rw] entity_id
2119
+ # The identifier of the entity to scope the session to.
2120
+ # @return [String]
2121
+ #
2122
+ # @!attribute [rw] domain_name
2123
+ # The name of the Customer Profiles domain to scope the session to.
2124
+ # @return [String]
2125
+ #
2126
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AuthScope AWS API Documentation
2127
+ #
2128
+ class AuthScope < Struct.new(
2129
+ :security_profile_ids,
2130
+ :entity_type,
2131
+ :entity_id,
2132
+ :domain_name)
2133
+ SENSITIVE = []
2134
+ include Aws::Structure
2135
+ end
2136
+
2106
2137
  # This API is in preview release for Connect Customer and is subject to
2107
2138
  # change. To request access to this API, contact Amazon Web Services
2108
2139
  # Support.
@@ -5375,6 +5406,70 @@ module Aws::Connect
5375
5406
  include Aws::Structure
5376
5407
  end
5377
5408
 
5409
+ # @!attribute [rw] instance_id
5410
+ # The identifier of the Connect Customer instance. You can [find the
5411
+ # instance ID][1] in the Amazon Resource Name (ARN) of the instance.
5412
+ #
5413
+ #
5414
+ #
5415
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html
5416
+ # @return [String]
5417
+ #
5418
+ # @!attribute [rw] scope
5419
+ # The scope for the authorization code. Defines the permissions and
5420
+ # access boundaries for the session.
5421
+ # @return [Types::AuthScope]
5422
+ #
5423
+ # @!attribute [rw] max_session_duration_minutes
5424
+ # The maximum duration of the session, in minutes. Minimum value of
5425
+ # 1440 (24 hours). Maximum value of 43200 (30 days). If no value is
5426
+ # provided, the session will expire after 400 days.
5427
+ # @return [Integer]
5428
+ #
5429
+ # @!attribute [rw] session_inactivity_duration_minutes
5430
+ # The duration of inactivity, in minutes, after which the session
5431
+ # expires. Minimum value of 1440 (24 hours). Maximum value of 20160
5432
+ # (14 days).
5433
+ # @return [Integer]
5434
+ #
5435
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateAuthCodeRequest AWS API Documentation
5436
+ #
5437
+ class CreateAuthCodeRequest < Struct.new(
5438
+ :instance_id,
5439
+ :scope,
5440
+ :max_session_duration_minutes,
5441
+ :session_inactivity_duration_minutes)
5442
+ SENSITIVE = []
5443
+ include Aws::Structure
5444
+ end
5445
+
5446
+ # @!attribute [rw] auth_code
5447
+ # The authorization code to use for establishing a session.
5448
+ # @return [String]
5449
+ #
5450
+ # @!attribute [rw] session_id
5451
+ # The identifier of the session created with the authorization code.
5452
+ # @return [String]
5453
+ #
5454
+ # @!attribute [rw] entity_type
5455
+ # The type of entity associated with the authorization code.
5456
+ # @return [String]
5457
+ #
5458
+ # @!attribute [rw] entity_id
5459
+ # The identifier of the entity associated with the authorization code.
5460
+ # @return [String]
5461
+ #
5462
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/CreateAuthCodeResponse AWS API Documentation
5463
+ #
5464
+ class CreateAuthCodeResponse < Struct.new(
5465
+ :auth_code,
5466
+ :session_id,
5467
+ :entity_type,
5468
+ :entity_id)
5469
+ SENSITIVE = [:auth_code]
5470
+ include Aws::Structure
5471
+ end
5472
+
5378
5473
  # The `CreateCase` action definition.
5379
5474
  #
5380
5475
  # @!attribute [rw] fields
@@ -9753,6 +9848,32 @@ module Aws::Connect
9753
9848
  include Aws::Structure
9754
9849
  end
9755
9850
 
9851
+ # @!attribute [rw] instance_id
9852
+ # The identifier of the Connect Customer instance. You can [find the
9853
+ # instance ID][1] in the Amazon Resource Name (ARN) of the instance.
9854
+ #
9855
+ #
9856
+ #
9857
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html
9858
+ # @return [String]
9859
+ #
9860
+ # @!attribute [rw] session_id
9861
+ # The identifier of the session to delete.
9862
+ # @return [String]
9863
+ #
9864
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteSessionRequest AWS API Documentation
9865
+ #
9866
+ class DeleteSessionRequest < Struct.new(
9867
+ :instance_id,
9868
+ :session_id)
9869
+ SENSITIVE = []
9870
+ include Aws::Structure
9871
+ end
9872
+
9873
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DeleteSessionResponse AWS API Documentation
9874
+ #
9875
+ class DeleteSessionResponse < Aws::EmptyStructure; end
9876
+
9756
9877
  # @!attribute [rw] instance_id
9757
9878
  # The identifier of the Connect Customer instance. You can [find the
9758
9879
  # instance ID][1] in the Amazon Resource Name (ARN) of the instance.
@@ -16002,30 +16123,30 @@ module Aws::Connect
16002
16123
  include Aws::Structure
16003
16124
  end
16004
16125
 
16005
- # @!attribute [rw] credentials
16006
- # The credentials to use for federation.
16007
- # @return [Types::Credentials]
16008
- #
16009
- # @!attribute [rw] sign_in_url
16010
- # The URL to sign into the user's instance.
16126
+ # @!attribute [rw] user_id
16127
+ # The identifier for the user. This can be the ID or the ARN of the
16128
+ # user.
16011
16129
  # @return [String]
16012
16130
  #
16013
16131
  # @!attribute [rw] user_arn
16014
16132
  # The Amazon Resource Name (ARN) of the user.
16015
16133
  # @return [String]
16016
16134
  #
16017
- # @!attribute [rw] user_id
16018
- # The identifier for the user. This can be the ID or the ARN of the
16019
- # user.
16135
+ # @!attribute [rw] credentials
16136
+ # The credentials to use for federation.
16137
+ # @return [Types::Credentials]
16138
+ #
16139
+ # @!attribute [rw] sign_in_url
16140
+ # The URL to sign into the user's instance.
16020
16141
  # @return [String]
16021
16142
  #
16022
16143
  # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/GetFederationTokenResponse AWS API Documentation
16023
16144
  #
16024
16145
  class GetFederationTokenResponse < Struct.new(
16025
- :credentials,
16026
- :sign_in_url,
16146
+ :user_id,
16027
16147
  :user_arn,
16028
- :user_id)
16148
+ :credentials,
16149
+ :sign_in_url)
16029
16150
  SENSITIVE = [:credentials]
16030
16151
  include Aws::Structure
16031
16152
  end
@@ -54,7 +54,7 @@ module Aws::Connect
54
54
  autoload :EndpointProvider, 'aws-sdk-connect/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-connect/endpoints'
56
56
 
57
- GEM_VERSION = '1.262.0'
57
+ GEM_VERSION = '1.263.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -556,6 +556,27 @@ module Aws
556
556
  ) -> _CreateAttachedFileResponseSuccess
557
557
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAttachedFileResponseSuccess
558
558
 
559
+ interface _CreateAuthCodeResponseSuccess
560
+ include ::Seahorse::Client::_ResponseSuccess[Types::CreateAuthCodeResponse]
561
+ def auth_code: () -> ::String
562
+ def session_id: () -> ::String
563
+ def entity_type: () -> ("CUSTOMER_PROFILE")
564
+ def entity_id: () -> ::String
565
+ end
566
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Connect/Client.html#create_auth_code-instance_method
567
+ def create_auth_code: (
568
+ instance_id: ::String,
569
+ scope: {
570
+ security_profile_ids: Array[::String]?,
571
+ entity_type: ("CUSTOMER_PROFILE"),
572
+ entity_id: ::String?,
573
+ domain_name: ::String?
574
+ },
575
+ ?max_session_duration_minutes: ::Integer,
576
+ session_inactivity_duration_minutes: ::Integer
577
+ ) -> _CreateAuthCodeResponseSuccess
578
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateAuthCodeResponseSuccess
579
+
559
580
  interface _CreateContactResponseSuccess
560
581
  include ::Seahorse::Client::_ResponseSuccess[Types::CreateContactResponse]
561
582
  def contact_id: () -> ::String
@@ -1518,6 +1539,16 @@ module Aws
1518
1539
  ) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1519
1540
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> ::Seahorse::Client::_ResponseSuccess[::Aws::EmptyStructure]
1520
1541
 
1542
+ interface _DeleteSessionResponseSuccess
1543
+ include ::Seahorse::Client::_ResponseSuccess[Types::DeleteSessionResponse]
1544
+ end
1545
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Connect/Client.html#delete_session-instance_method
1546
+ def delete_session: (
1547
+ instance_id: ::String,
1548
+ session_id: ::String
1549
+ ) -> _DeleteSessionResponseSuccess
1550
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteSessionResponseSuccess
1551
+
1521
1552
  interface _DeleteTaskTemplateResponseSuccess
1522
1553
  include ::Seahorse::Client::_ResponseSuccess[Types::DeleteTaskTemplateResponse]
1523
1554
  end
@@ -2387,10 +2418,10 @@ module Aws
2387
2418
 
2388
2419
  interface _GetFederationTokenResponseSuccess
2389
2420
  include ::Seahorse::Client::_ResponseSuccess[Types::GetFederationTokenResponse]
2421
+ def user_id: () -> ::String
2422
+ def user_arn: () -> ::String
2390
2423
  def credentials: () -> Types::Credentials
2391
2424
  def sign_in_url: () -> ::String
2392
- def user_arn: () -> ::String
2393
- def user_id: () -> ::String
2394
2425
  end
2395
2426
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/Connect/Client.html#get_federation_token-instance_method
2396
2427
  def get_federation_token: (
data/sig/types.rbs CHANGED
@@ -528,6 +528,14 @@ module Aws::Connect
528
528
  SENSITIVE: []
529
529
  end
530
530
 
531
+ class AuthScope
532
+ attr_accessor security_profile_ids: ::Array[::String]
533
+ attr_accessor entity_type: ("CUSTOMER_PROFILE")
534
+ attr_accessor entity_id: ::String
535
+ attr_accessor domain_name: ::String
536
+ SENSITIVE: []
537
+ end
538
+
531
539
  class AuthenticationProfile
532
540
  attr_accessor id: ::String
533
541
  attr_accessor arn: ::String
@@ -1299,6 +1307,22 @@ module Aws::Connect
1299
1307
  SENSITIVE: []
1300
1308
  end
1301
1309
 
1310
+ class CreateAuthCodeRequest
1311
+ attr_accessor instance_id: ::String
1312
+ attr_accessor scope: Types::AuthScope
1313
+ attr_accessor max_session_duration_minutes: ::Integer
1314
+ attr_accessor session_inactivity_duration_minutes: ::Integer
1315
+ SENSITIVE: []
1316
+ end
1317
+
1318
+ class CreateAuthCodeResponse
1319
+ attr_accessor auth_code: ::String
1320
+ attr_accessor session_id: ::String
1321
+ attr_accessor entity_type: ("CUSTOMER_PROFILE")
1322
+ attr_accessor entity_id: ::String
1323
+ SENSITIVE: [:auth_code]
1324
+ end
1325
+
1302
1326
  class CreateCaseActionDefinition
1303
1327
  attr_accessor fields: ::Array[Types::FieldValue]
1304
1328
  attr_accessor template_id: ::String
@@ -2344,6 +2368,15 @@ module Aws::Connect
2344
2368
  SENSITIVE: []
2345
2369
  end
2346
2370
 
2371
+ class DeleteSessionRequest
2372
+ attr_accessor instance_id: ::String
2373
+ attr_accessor session_id: ::String
2374
+ SENSITIVE: []
2375
+ end
2376
+
2377
+ class DeleteSessionResponse < Aws::EmptyStructure
2378
+ end
2379
+
2347
2380
  class DeleteTaskTemplateRequest
2348
2381
  attr_accessor instance_id: ::String
2349
2382
  attr_accessor task_template_id: ::String
@@ -4048,10 +4081,10 @@ module Aws::Connect
4048
4081
  end
4049
4082
 
4050
4083
  class GetFederationTokenResponse
4084
+ attr_accessor user_id: ::String
4085
+ attr_accessor user_arn: ::String
4051
4086
  attr_accessor credentials: Types::Credentials
4052
4087
  attr_accessor sign_in_url: ::String
4053
- attr_accessor user_arn: ::String
4054
- attr_accessor user_id: ::String
4055
4088
  SENSITIVE: [:credentials]
4056
4089
  end
4057
4090
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.262.0
4
+ version: 1.263.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services