Skip to content

Commit e918f8b

Browse files
chore: Updates version to 0.54.0
1 parent cc7b998 commit e918f8b

File tree

9 files changed

+2465
-372
lines changed

9 files changed

+2465
-372
lines changed

Package.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.53.0
1+
0.54.0

Sources/Services/AWSCognitoIdentityProvider/Sources/AWSCognitoIdentityProvider/Models.swift

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3429,6 +3429,51 @@ public struct AdminUserGlobalSignOutOutput {
34293429
public init() { }
34303430
}
34313431

3432+
extension CognitoIdentityProviderClientTypes {
3433+
3434+
public enum AdvancedSecurityEnabledModeType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
3435+
case audit
3436+
case enforced
3437+
case sdkUnknown(Swift.String)
3438+
3439+
public static var allCases: [AdvancedSecurityEnabledModeType] {
3440+
return [
3441+
.audit,
3442+
.enforced
3443+
]
3444+
}
3445+
3446+
public init?(rawValue: Swift.String) {
3447+
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
3448+
self = value ?? Self.sdkUnknown(rawValue)
3449+
}
3450+
3451+
public var rawValue: Swift.String {
3452+
switch self {
3453+
case .audit: return "AUDIT"
3454+
case .enforced: return "ENFORCED"
3455+
case let .sdkUnknown(s): return s
3456+
}
3457+
}
3458+
}
3459+
}
3460+
3461+
extension CognitoIdentityProviderClientTypes {
3462+
/// Advanced security configuration options for additional authentication types in your user pool, including custom authentication and refresh-token authentication.
3463+
public struct AdvancedSecurityAdditionalFlowsType {
3464+
/// The operating mode of advanced security features in custom authentication with [ Custom authentication challenge Lambda triggers](https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-lambda-challenge.html).
3465+
public var customAuthMode: CognitoIdentityProviderClientTypes.AdvancedSecurityEnabledModeType?
3466+
3467+
public init(
3468+
customAuthMode: CognitoIdentityProviderClientTypes.AdvancedSecurityEnabledModeType? = nil
3469+
)
3470+
{
3471+
self.customAuthMode = customAuthMode
3472+
}
3473+
}
3474+
3475+
}
3476+
34323477
extension CognitoIdentityProviderClientTypes {
34333478

34343479
public enum AdvancedSecurityModeType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
@@ -4907,14 +4952,18 @@ extension CognitoIdentityProviderClientTypes {
49074952
extension CognitoIdentityProviderClientTypes {
49084953
/// User pool add-ons. Contains settings for activation of advanced security features. To log user security information but take no action, set to AUDIT. To configure automatic security responses to risky traffic to your user pool, set to ENFORCED. For more information, see [Adding advanced security to a user pool](https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html).
49094954
public struct UserPoolAddOnsType {
4910-
/// The operating mode of advanced security features in your user pool.
4955+
/// Advanced security configuration options for additional authentication types in your user pool, including custom authentication and refresh-token authentication.
4956+
public var advancedSecurityAdditionalFlows: CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType?
4957+
/// The operating mode of advanced security features for standard authentication types in your user pool, including username-password and secure remote password (SRP) authentication.
49114958
/// This member is required.
49124959
public var advancedSecurityMode: CognitoIdentityProviderClientTypes.AdvancedSecurityModeType?
49134960

49144961
public init(
4962+
advancedSecurityAdditionalFlows: CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType? = nil,
49154963
advancedSecurityMode: CognitoIdentityProviderClientTypes.AdvancedSecurityModeType? = nil
49164964
)
49174965
{
4966+
self.advancedSecurityAdditionalFlows = advancedSecurityAdditionalFlows
49184967
self.advancedSecurityMode = advancedSecurityMode
49194968
}
49204969
}
@@ -15232,13 +15281,30 @@ extension CognitoIdentityProviderClientTypes.UserPoolAddOnsType {
1523215281

1523315282
static func write(value: CognitoIdentityProviderClientTypes.UserPoolAddOnsType?, to writer: SmithyJSON.Writer) throws {
1523415283
guard let value else { return }
15284+
try writer["AdvancedSecurityAdditionalFlows"].write(value.advancedSecurityAdditionalFlows, with: CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType.write(value:to:))
1523515285
try writer["AdvancedSecurityMode"].write(value.advancedSecurityMode)
1523615286
}
1523715287

1523815288
static func read(from reader: SmithyJSON.Reader) throws -> CognitoIdentityProviderClientTypes.UserPoolAddOnsType {
1523915289
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
1524015290
var value = CognitoIdentityProviderClientTypes.UserPoolAddOnsType()
1524115291
value.advancedSecurityMode = try reader["AdvancedSecurityMode"].readIfPresent()
15292+
value.advancedSecurityAdditionalFlows = try reader["AdvancedSecurityAdditionalFlows"].readIfPresent(with: CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType.read(from:))
15293+
return value
15294+
}
15295+
}
15296+
15297+
extension CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType {
15298+
15299+
static func write(value: CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType?, to writer: SmithyJSON.Writer) throws {
15300+
guard let value else { return }
15301+
try writer["CustomAuthMode"].write(value.customAuthMode)
15302+
}
15303+
15304+
static func read(from reader: SmithyJSON.Reader) throws -> CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType {
15305+
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
15306+
var value = CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType()
15307+
value.customAuthMode = try reader["CustomAuthMode"].readIfPresent()
1524215308
return value
1524315309
}
1524415310
}

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

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12504,6 +12504,78 @@ extension ConnectClient {
1250412504
return try await op.execute(input: input)
1250512505
}
1250612506

12507+
/// Performs the `SearchAgentStatuses` operation on the `AmazonConnectService` service.
12508+
///
12509+
/// Searches AgentStatuses in an Amazon Connect instance, with optional filtering.
12510+
///
12511+
/// - Parameter SearchAgentStatusesInput : [no documentation found]
12512+
///
12513+
/// - Returns: `SearchAgentStatusesOutput` : [no documentation found]
12514+
///
12515+
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
12516+
///
12517+
/// __Possible Exceptions:__
12518+
/// - `InternalServiceException` : Request processing failed because of an error or failure with the service.
12519+
/// - `InvalidParameterException` : One or more of the specified parameters are not valid.
12520+
/// - `InvalidRequestException` : The request is not valid.
12521+
/// - `ResourceNotFoundException` : The specified resource was not found.
12522+
/// - `ThrottlingException` : The throttling limit has been exceeded.
12523+
public func searchAgentStatuses(input: SearchAgentStatusesInput) async throws -> SearchAgentStatusesOutput {
12524+
let context = Smithy.ContextBuilder()
12525+
.withMethod(value: .post)
12526+
.withServiceName(value: serviceName)
12527+
.withOperation(value: "searchAgentStatuses")
12528+
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
12529+
.withLogger(value: config.logger)
12530+
.withPartitionID(value: config.partitionID)
12531+
.withAuthSchemes(value: config.authSchemes ?? [])
12532+
.withAuthSchemeResolver(value: config.authSchemeResolver)
12533+
.withUnsignedPayloadTrait(value: false)
12534+
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
12535+
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
12536+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
12537+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
12538+
.withRegion(value: config.region)
12539+
.withSigningName(value: "connect")
12540+
.withSigningRegion(value: config.signingRegion)
12541+
.build()
12542+
let builder = ClientRuntime.OrchestratorBuilder<SearchAgentStatusesInput, SearchAgentStatusesOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
12543+
config.interceptorProviders.forEach { provider in
12544+
builder.interceptors.add(provider.create())
12545+
}
12546+
config.httpInterceptorProviders.forEach { provider in
12547+
let i: any ClientRuntime.HttpInterceptor<SearchAgentStatusesInput, SearchAgentStatusesOutput> = provider.create()
12548+
builder.interceptors.add(i)
12549+
}
12550+
builder.interceptors.add(ClientRuntime.URLPathMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(SearchAgentStatusesInput.urlPathProvider(_:)))
12551+
builder.interceptors.add(ClientRuntime.URLHostMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>())
12552+
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(contentType: "application/json"))
12553+
builder.serialize(ClientRuntime.BodyMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput, SmithyJSON.Writer>(rootNodeInfo: "", inputWritingClosure: SearchAgentStatusesInput.write(value:to:)))
12554+
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>())
12555+
builder.deserialize(ClientRuntime.DeserializeMiddleware<SearchAgentStatusesOutput>(SearchAgentStatusesOutput.httpOutput(from:), SearchAgentStatusesOutputError.httpError(from:)))
12556+
builder.interceptors.add(ClientRuntime.LoggerMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(clientLogMode: config.clientLogMode))
12557+
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
12558+
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
12559+
builder.applySigner(ClientRuntime.SignerMiddleware<SearchAgentStatusesOutput>())
12560+
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
12561+
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<SearchAgentStatusesOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
12562+
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(metadata: AWSClientRuntime.AWSUserAgentMetadata.fromConfig(serviceID: serviceName, version: "1.0", config: config)))
12563+
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<SearchAgentStatusesOutput>())
12564+
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>())
12565+
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
12566+
var metricsAttributes = Smithy.Attributes()
12567+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "Connect")
12568+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "SearchAgentStatuses")
12569+
let op = builder.attributes(context)
12570+
.telemetry(ClientRuntime.OrchestratorTelemetry(
12571+
telemetryProvider: config.telemetryProvider,
12572+
metricsAttributes: metricsAttributes
12573+
))
12574+
.executeRequest(client)
12575+
.build()
12576+
return try await op.execute(input: input)
12577+
}
12578+
1250712579
/// Performs the `SearchAvailablePhoneNumbers` operation on the `AmazonConnectService` service.
1250812580
///
1250912581
/// 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.
@@ -13368,6 +13440,78 @@ extension ConnectClient {
1336813440
return try await op.execute(input: input)
1336913441
}
1337013442

13443+
/// Performs the `SearchUserHierarchyGroups` operation on the `AmazonConnectService` service.
13444+
///
13445+
/// Searches UserHierarchyGroups in an Amazon Connect instance, with optional filtering. The UserHierarchyGroup with "LevelId": "0" is the foundation for building levels on top of an instance. It is not user-definable, nor is it visible in the UI.
13446+
///
13447+
/// - Parameter SearchUserHierarchyGroupsInput : [no documentation found]
13448+
///
13449+
/// - Returns: `SearchUserHierarchyGroupsOutput` : [no documentation found]
13450+
///
13451+
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
13452+
///
13453+
/// __Possible Exceptions:__
13454+
/// - `InternalServiceException` : Request processing failed because of an error or failure with the service.
13455+
/// - `InvalidParameterException` : One or more of the specified parameters are not valid.
13456+
/// - `InvalidRequestException` : The request is not valid.
13457+
/// - `ResourceNotFoundException` : The specified resource was not found.
13458+
/// - `ThrottlingException` : The throttling limit has been exceeded.
13459+
public func searchUserHierarchyGroups(input: SearchUserHierarchyGroupsInput) async throws -> SearchUserHierarchyGroupsOutput {
13460+
let context = Smithy.ContextBuilder()
13461+
.withMethod(value: .post)
13462+
.withServiceName(value: serviceName)
13463+
.withOperation(value: "searchUserHierarchyGroups")
13464+
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
13465+
.withLogger(value: config.logger)
13466+
.withPartitionID(value: config.partitionID)
13467+
.withAuthSchemes(value: config.authSchemes ?? [])
13468+
.withAuthSchemeResolver(value: config.authSchemeResolver)
13469+
.withUnsignedPayloadTrait(value: false)
13470+
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
13471+
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
13472+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
13473+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
13474+
.withRegion(value: config.region)
13475+
.withSigningName(value: "connect")
13476+
.withSigningRegion(value: config.signingRegion)
13477+
.build()
13478+
let builder = ClientRuntime.OrchestratorBuilder<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
13479+
config.interceptorProviders.forEach { provider in
13480+
builder.interceptors.add(provider.create())
13481+
}
13482+
config.httpInterceptorProviders.forEach { provider in
13483+
let i: any ClientRuntime.HttpInterceptor<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput> = provider.create()
13484+
builder.interceptors.add(i)
13485+
}
13486+
builder.interceptors.add(ClientRuntime.URLPathMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(SearchUserHierarchyGroupsInput.urlPathProvider(_:)))
13487+
builder.interceptors.add(ClientRuntime.URLHostMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>())
13488+
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(contentType: "application/json"))
13489+
builder.serialize(ClientRuntime.BodyMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput, SmithyJSON.Writer>(rootNodeInfo: "", inputWritingClosure: SearchUserHierarchyGroupsInput.write(value:to:)))
13490+
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>())
13491+
builder.deserialize(ClientRuntime.DeserializeMiddleware<SearchUserHierarchyGroupsOutput>(SearchUserHierarchyGroupsOutput.httpOutput(from:), SearchUserHierarchyGroupsOutputError.httpError(from:)))
13492+
builder.interceptors.add(ClientRuntime.LoggerMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(clientLogMode: config.clientLogMode))
13493+
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
13494+
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
13495+
builder.applySigner(ClientRuntime.SignerMiddleware<SearchUserHierarchyGroupsOutput>())
13496+
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
13497+
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<SearchUserHierarchyGroupsOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
13498+
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(metadata: AWSClientRuntime.AWSUserAgentMetadata.fromConfig(serviceID: serviceName, version: "1.0", config: config)))
13499+
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<SearchUserHierarchyGroupsOutput>())
13500+
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>())
13501+
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
13502+
var metricsAttributes = Smithy.Attributes()
13503+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "Connect")
13504+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "SearchUserHierarchyGroups")
13505+
let op = builder.attributes(context)
13506+
.telemetry(ClientRuntime.OrchestratorTelemetry(
13507+
telemetryProvider: config.telemetryProvider,
13508+
metricsAttributes: metricsAttributes
13509+
))
13510+
.executeRequest(client)
13511+
.build()
13512+
return try await op.execute(input: input)
13513+
}
13514+
1337113515
/// Performs the `SearchUsers` operation on the `AmazonConnectService` service.
1337213516
///
1337313517
/// Searches users in an Amazon Connect instance, with optional filtering. AfterContactWorkTimeLimit is returned in milliseconds.

0 commit comments

Comments
 (0)