Skip to content

Commit 691278c

Browse files
chore: Updates version to 1.0.9
1 parent 81e6b9a commit 691278c

File tree

13 files changed

+5052
-274
lines changed

13 files changed

+5052
-274
lines changed

Package.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.8
1+
1.0.9

Package.version.next

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.9
1+
1.0.10

Sources/Services/AWSConnect/Sources/AWSConnect/ConnectClient.swift

Lines changed: 86 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ extension ConnectClient {
270270

271271
/// Performs the `AssociateAnalyticsDataSet` operation on the `AmazonConnectService` service.
272272
///
273-
/// This API is in preview release for Amazon Connect and is subject to change. Associates the specified dataset for a Amazon Connect instance with the target account. You can associate only one dataset in a single call.
273+
/// Associates the specified dataset for a Amazon Connect instance with the target account. You can associate only one dataset in a single call.
274274
///
275275
/// - Parameter AssociateAnalyticsDataSetInput : [no documentation found]
276276
///
@@ -1306,7 +1306,7 @@ extension ConnectClient {
13061306

13071307
/// Performs the `BatchAssociateAnalyticsDataSet` operation on the `AmazonConnectService` service.
13081308
///
1309-
/// 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.
1309+
/// 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.
13101310
///
13111311
/// - Parameter BatchAssociateAnalyticsDataSetInput : [no documentation found]
13121312
///
@@ -1379,7 +1379,7 @@ extension ConnectClient {
13791379

13801380
/// Performs the `BatchDisassociateAnalyticsDataSet` operation on the `AmazonConnectService` service.
13811381
///
1382-
/// This API is in preview release for Amazon Connect and is subject to change. Removes a list of analytics datasets associated with a given Amazon Connect instance. You can disassociate multiple datasets in a single call.
1382+
/// Removes a list of analytics datasets associated with a given Amazon Connect instance. You can disassociate multiple datasets in a single call.
13831383
///
13841384
/// - Parameter BatchDisassociateAnalyticsDataSetInput : [no documentation found]
13851385
///
@@ -5480,7 +5480,7 @@ extension ConnectClient {
54805480

54815481
/// Performs the `DescribeContact` operation on the `AmazonConnectService` service.
54825482
///
5483-
/// This API is in preview release for Amazon Connect and is subject to change. Describes the specified contact. Contact information remains available in Amazon Connect for 24 months, and then it is deleted. Only data from November 12, 2021, and later is returned by this API.
5483+
/// This API is in preview release for Amazon Connect and is subject to change. Describes the specified contact. Contact information remains available in Amazon Connect for 24 months from the InitiationTimestamp, and then it is deleted. Only contact information that is available in Amazon Connect is returned by this API
54845484
///
54855485
/// - Parameter DescribeContactInput : [no documentation found]
54865486
///
@@ -7091,7 +7091,7 @@ extension ConnectClient {
70917091

70927092
/// Performs the `DisassociateAnalyticsDataSet` operation on the `AmazonConnectService` service.
70937093
///
7094-
/// This API is in preview release for Amazon Connect and is subject to change. Removes the dataset ID associated with a given Amazon Connect instance.
7094+
/// Removes the dataset ID associated with a given Amazon Connect instance.
70957095
///
70967096
/// - Parameter DisassociateAnalyticsDataSetInput : [no documentation found]
70977097
///
@@ -9027,7 +9027,7 @@ extension ConnectClient {
90279027

90289028
/// Performs the `ListAnalyticsDataAssociations` operation on the `AmazonConnectService` service.
90299029
///
9030-
/// This API is in preview release for Amazon Connect and is subject to change. Lists the association status of requested dataset ID for a given Amazon Connect instance.
9030+
/// Lists the association status of requested dataset ID for a given Amazon Connect instance.
90319031
///
90329032
/// - Parameter ListAnalyticsDataAssociationsInput : [no documentation found]
90339033
///
@@ -14319,6 +14319,86 @@ extension ConnectClient {
1431914319
return try await op.execute(input: input)
1432014320
}
1432114321

14322+
/// Performs the `StartOutboundChatContact` operation on the `AmazonConnectService` service.
14323+
///
14324+
/// Initiates a new outbound SMS contact to a customer. Response of this API provides the ContactId of the outbound SMS contact created. SourceEndpoint only supports Endpoints with CONNECT_PHONENUMBER_ARN as Type and DestinationEndpoint only supports Endpoints with TELEPHONE_NUMBER as Type. ContactFlowId initiates the flow to manage the new SMS contact created. This API can be used to initiate outbound SMS contacts for an agent or it can also deflect an ongoing contact to an outbound SMS contact by using the [StartOutboundChatContact](https://docs.aws.amazon.com/connect/latest/APIReference/API_StartOutboundChatContact.html) Flow Action. For more information about using SMS in Amazon Connect, see the following topics in the Amazon Connect Administrator Guide:
14325+
///
14326+
/// * [Set up SMS messaging](https://docs.aws.amazon.com/connect/latest/adminguide/setup-sms-messaging.html)
14327+
///
14328+
/// * [Request an SMS-enabled phone number through AWS End User Messaging SMS](https://docs.aws.amazon.com/connect/latest/adminguide/sms-number.html)
14329+
///
14330+
/// - Parameter StartOutboundChatContactInput : [no documentation found]
14331+
///
14332+
/// - Returns: `StartOutboundChatContactOutput` : [no documentation found]
14333+
///
14334+
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
14335+
///
14336+
/// __Possible Exceptions:__
14337+
/// - `AccessDeniedException` : You do not have sufficient permissions to perform this action.
14338+
/// - `ConflictException` : Operation cannot be performed at this time as there is a conflict with another operation or contact state.
14339+
/// - `InternalServiceException` : Request processing failed because of an error or failure with the service.
14340+
/// - `InvalidRequestException` : The request is not valid.
14341+
/// - `LimitExceededException` : The allowed limit for the resource has been exceeded.
14342+
/// - `ResourceNotFoundException` : The specified resource was not found.
14343+
/// - `ThrottlingException` : The throttling limit has been exceeded.
14344+
public func startOutboundChatContact(input: StartOutboundChatContactInput) async throws -> StartOutboundChatContactOutput {
14345+
let context = Smithy.ContextBuilder()
14346+
.withMethod(value: .put)
14347+
.withServiceName(value: serviceName)
14348+
.withOperation(value: "startOutboundChatContact")
14349+
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
14350+
.withLogger(value: config.logger)
14351+
.withPartitionID(value: config.partitionID)
14352+
.withAuthSchemes(value: config.authSchemes ?? [])
14353+
.withAuthSchemeResolver(value: config.authSchemeResolver)
14354+
.withUnsignedPayloadTrait(value: false)
14355+
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
14356+
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
14357+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
14358+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
14359+
.withRegion(value: config.region)
14360+
.withSigningName(value: "connect")
14361+
.withSigningRegion(value: config.signingRegion)
14362+
.build()
14363+
let builder = ClientRuntime.OrchestratorBuilder<StartOutboundChatContactInput, StartOutboundChatContactOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
14364+
config.interceptorProviders.forEach { provider in
14365+
builder.interceptors.add(provider.create())
14366+
}
14367+
config.httpInterceptorProviders.forEach { provider in
14368+
builder.interceptors.add(provider.create())
14369+
}
14370+
builder.interceptors.add(ClientRuntime.IdempotencyTokenMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput>(keyPath: \.clientToken))
14371+
builder.interceptors.add(ClientRuntime.URLPathMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput>(StartOutboundChatContactInput.urlPathProvider(_:)))
14372+
builder.interceptors.add(ClientRuntime.URLHostMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput>())
14373+
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput>(contentType: "application/json"))
14374+
builder.serialize(ClientRuntime.BodyMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput, SmithyJSON.Writer>(rootNodeInfo: "", inputWritingClosure: StartOutboundChatContactInput.write(value:to:)))
14375+
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput>())
14376+
builder.deserialize(ClientRuntime.DeserializeMiddleware<StartOutboundChatContactOutput>(StartOutboundChatContactOutput.httpOutput(from:), StartOutboundChatContactOutputError.httpError(from:)))
14377+
builder.interceptors.add(ClientRuntime.LoggerMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput>(clientLogMode: config.clientLogMode))
14378+
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
14379+
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
14380+
builder.applySigner(ClientRuntime.SignerMiddleware<StartOutboundChatContactOutput>())
14381+
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
14382+
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<StartOutboundChatContactOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
14383+
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput>(serviceID: serviceName, version: "1.0", config: config))
14384+
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<StartOutboundChatContactOutput>())
14385+
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput>())
14386+
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<StartOutboundChatContactInput, StartOutboundChatContactOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
14387+
var metricsAttributes = Smithy.Attributes()
14388+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "Connect")
14389+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "StartOutboundChatContact")
14390+
let op = builder.attributes(context)
14391+
.telemetry(ClientRuntime.OrchestratorTelemetry(
14392+
telemetryProvider: config.telemetryProvider,
14393+
metricsAttributes: metricsAttributes,
14394+
meterScope: serviceName,
14395+
tracerScope: serviceName
14396+
))
14397+
.executeRequest(client)
14398+
.build()
14399+
return try await op.execute(input: input)
14400+
}
14401+
1432214402
/// Performs the `StartOutboundVoiceContact` operation on the `AmazonConnectService` service.
1432314403
///
1432414404
/// Places an outbound call to a contact, and then initiates the flow. It performs the actions in the flow that's specified (in ContactFlowId). Agents do not initiate the outbound API, which means that they do not dial the contact. If the flow places an outbound call to a contact, and then puts the contact in queue, the call is then routed to the agent, like any other inbound case. There is a 60-second dialing timeout for this operation. If the call is not connected after 60 seconds, it fails. UK numbers with a 447 prefix are not allowed by default. Before you can dial these UK mobile numbers, you must submit a service quota increase request. For more information, see [Amazon Connect Service Quotas](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html) in the Amazon Connect Administrator Guide. Campaign calls are not allowed by default. Before you can make a call with TrafficType = CAMPAIGN, you must submit a service quota increase request to the quota [Amazon Connect campaigns](https://docs.aws.amazon.com/connect/latest/adminguide/amazon-connect-service-limits.html#outbound-communications-quotas).

Sources/Services/AWSConnect/Sources/AWSConnect/Models.swift

Lines changed: 162 additions & 5 deletions
Large diffs are not rendered by default.

Sources/Services/AWSResourceGroups/Package.swift.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ let package = Package(
5656
name: "SmithyReadWrite",
5757
package: "aws-sdk-swift.smithy-swift"
5858
),
59+
.product(
60+
name: "SmithyTimestamps",
61+
package: "aws-sdk-swift.smithy-swift"
62+
),
5963
.product(
6064
name: "AWSSDKHTTPAuth",
6165
package: "aws-sdk-swift.AWSSDKHTTPAuth"

0 commit comments

Comments
 (0)