Skip to content

Commit

Permalink
chore: Updates version to 0.54.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Aug 8, 2024
1 parent cc7b998 commit e918f8b
Show file tree
Hide file tree
Showing 9 changed files with 2,465 additions and 372 deletions.
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.53.0
0.54.0
Original file line number Diff line number Diff line change
Expand Up @@ -3429,6 +3429,51 @@ public struct AdminUserGlobalSignOutOutput {
public init() { }
}

extension CognitoIdentityProviderClientTypes {

public enum AdvancedSecurityEnabledModeType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case audit
case enforced
case sdkUnknown(Swift.String)

public static var allCases: [AdvancedSecurityEnabledModeType] {
return [
.audit,
.enforced
]
}

public init?(rawValue: Swift.String) {
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
self = value ?? Self.sdkUnknown(rawValue)
}

public var rawValue: Swift.String {
switch self {
case .audit: return "AUDIT"
case .enforced: return "ENFORCED"
case let .sdkUnknown(s): return s
}
}
}
}

extension CognitoIdentityProviderClientTypes {
/// Advanced security configuration options for additional authentication types in your user pool, including custom authentication and refresh-token authentication.
public struct AdvancedSecurityAdditionalFlowsType {
/// 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).
public var customAuthMode: CognitoIdentityProviderClientTypes.AdvancedSecurityEnabledModeType?

public init(
customAuthMode: CognitoIdentityProviderClientTypes.AdvancedSecurityEnabledModeType? = nil
)
{
self.customAuthMode = customAuthMode
}
}

}

extension CognitoIdentityProviderClientTypes {

public enum AdvancedSecurityModeType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
Expand Down Expand Up @@ -4907,14 +4952,18 @@ extension CognitoIdentityProviderClientTypes {
extension CognitoIdentityProviderClientTypes {
/// 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).
public struct UserPoolAddOnsType {
/// The operating mode of advanced security features in your user pool.
/// Advanced security configuration options for additional authentication types in your user pool, including custom authentication and refresh-token authentication.
public var advancedSecurityAdditionalFlows: CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType?
/// The operating mode of advanced security features for standard authentication types in your user pool, including username-password and secure remote password (SRP) authentication.
/// This member is required.
public var advancedSecurityMode: CognitoIdentityProviderClientTypes.AdvancedSecurityModeType?

public init(
advancedSecurityAdditionalFlows: CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType? = nil,
advancedSecurityMode: CognitoIdentityProviderClientTypes.AdvancedSecurityModeType? = nil
)
{
self.advancedSecurityAdditionalFlows = advancedSecurityAdditionalFlows
self.advancedSecurityMode = advancedSecurityMode
}
}
Expand Down Expand Up @@ -15232,13 +15281,30 @@ extension CognitoIdentityProviderClientTypes.UserPoolAddOnsType {

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

static func read(from reader: SmithyJSON.Reader) throws -> CognitoIdentityProviderClientTypes.UserPoolAddOnsType {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = CognitoIdentityProviderClientTypes.UserPoolAddOnsType()
value.advancedSecurityMode = try reader["AdvancedSecurityMode"].readIfPresent()
value.advancedSecurityAdditionalFlows = try reader["AdvancedSecurityAdditionalFlows"].readIfPresent(with: CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType.read(from:))
return value
}
}

extension CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType {

static func write(value: CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType?, to writer: SmithyJSON.Writer) throws {
guard let value else { return }
try writer["CustomAuthMode"].write(value.customAuthMode)
}

static func read(from reader: SmithyJSON.Reader) throws -> CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType {
guard reader.hasContent else { throw SmithyReadWrite.ReaderError.requiredValueNotPresent }
var value = CognitoIdentityProviderClientTypes.AdvancedSecurityAdditionalFlowsType()
value.customAuthMode = try reader["CustomAuthMode"].readIfPresent()
return value
}
}
Expand Down
144 changes: 144 additions & 0 deletions Sources/Services/AWSConnect/Sources/AWSConnect/ConnectClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12504,6 +12504,78 @@ extension ConnectClient {
return try await op.execute(input: input)
}

/// Performs the `SearchAgentStatuses` operation on the `AmazonConnectService` service.
///
/// Searches AgentStatuses in an Amazon Connect instance, with optional filtering.
///
/// - Parameter SearchAgentStatusesInput : [no documentation found]
///
/// - Returns: `SearchAgentStatusesOutput` : [no documentation found]
///
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
///
/// __Possible Exceptions:__
/// - `InternalServiceException` : Request processing failed because of an error or failure with the service.
/// - `InvalidParameterException` : One or more of the specified parameters are not valid.
/// - `InvalidRequestException` : The request is not valid.
/// - `ResourceNotFoundException` : The specified resource was not found.
/// - `ThrottlingException` : The throttling limit has been exceeded.
public func searchAgentStatuses(input: SearchAgentStatusesInput) async throws -> SearchAgentStatusesOutput {
let context = Smithy.ContextBuilder()
.withMethod(value: .post)
.withServiceName(value: serviceName)
.withOperation(value: "searchAgentStatuses")
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
.withLogger(value: config.logger)
.withPartitionID(value: config.partitionID)
.withAuthSchemes(value: config.authSchemes ?? [])
.withAuthSchemeResolver(value: config.authSchemeResolver)
.withUnsignedPayloadTrait(value: false)
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
.withRegion(value: config.region)
.withSigningName(value: "connect")
.withSigningRegion(value: config.signingRegion)
.build()
let builder = ClientRuntime.OrchestratorBuilder<SearchAgentStatusesInput, SearchAgentStatusesOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
let i: any ClientRuntime.HttpInterceptor<SearchAgentStatusesInput, SearchAgentStatusesOutput> = provider.create()
builder.interceptors.add(i)
}
builder.interceptors.add(ClientRuntime.URLPathMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(SearchAgentStatusesInput.urlPathProvider(_:)))
builder.interceptors.add(ClientRuntime.URLHostMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>())
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(contentType: "application/json"))
builder.serialize(ClientRuntime.BodyMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput, SmithyJSON.Writer>(rootNodeInfo: "", inputWritingClosure: SearchAgentStatusesInput.write(value:to:)))
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>())
builder.deserialize(ClientRuntime.DeserializeMiddleware<SearchAgentStatusesOutput>(SearchAgentStatusesOutput.httpOutput(from:), SearchAgentStatusesOutputError.httpError(from:)))
builder.interceptors.add(ClientRuntime.LoggerMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(clientLogMode: config.clientLogMode))
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
builder.applySigner(ClientRuntime.SignerMiddleware<SearchAgentStatusesOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<SearchAgentStatusesOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(metadata: AWSClientRuntime.AWSUserAgentMetadata.fromConfig(serviceID: serviceName, version: "1.0", config: config)))
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<SearchAgentStatusesOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<SearchAgentStatusesInput, SearchAgentStatusesOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
var metricsAttributes = Smithy.Attributes()
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "Connect")
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "SearchAgentStatuses")
let op = builder.attributes(context)
.telemetry(ClientRuntime.OrchestratorTelemetry(
telemetryProvider: config.telemetryProvider,
metricsAttributes: metricsAttributes
))
.executeRequest(client)
.build()
return try await op.execute(input: input)
}

/// Performs the `SearchAvailablePhoneNumbers` operation on the `AmazonConnectService` service.
///
/// 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.
Expand Down Expand Up @@ -13368,6 +13440,78 @@ extension ConnectClient {
return try await op.execute(input: input)
}

/// Performs the `SearchUserHierarchyGroups` operation on the `AmazonConnectService` service.
///
/// 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.
///
/// - Parameter SearchUserHierarchyGroupsInput : [no documentation found]
///
/// - Returns: `SearchUserHierarchyGroupsOutput` : [no documentation found]
///
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
///
/// __Possible Exceptions:__
/// - `InternalServiceException` : Request processing failed because of an error or failure with the service.
/// - `InvalidParameterException` : One or more of the specified parameters are not valid.
/// - `InvalidRequestException` : The request is not valid.
/// - `ResourceNotFoundException` : The specified resource was not found.
/// - `ThrottlingException` : The throttling limit has been exceeded.
public func searchUserHierarchyGroups(input: SearchUserHierarchyGroupsInput) async throws -> SearchUserHierarchyGroupsOutput {
let context = Smithy.ContextBuilder()
.withMethod(value: .post)
.withServiceName(value: serviceName)
.withOperation(value: "searchUserHierarchyGroups")
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
.withLogger(value: config.logger)
.withPartitionID(value: config.partitionID)
.withAuthSchemes(value: config.authSchemes ?? [])
.withAuthSchemeResolver(value: config.authSchemeResolver)
.withUnsignedPayloadTrait(value: false)
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
.withRegion(value: config.region)
.withSigningName(value: "connect")
.withSigningRegion(value: config.signingRegion)
.build()
let builder = ClientRuntime.OrchestratorBuilder<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
let i: any ClientRuntime.HttpInterceptor<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput> = provider.create()
builder.interceptors.add(i)
}
builder.interceptors.add(ClientRuntime.URLPathMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(SearchUserHierarchyGroupsInput.urlPathProvider(_:)))
builder.interceptors.add(ClientRuntime.URLHostMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>())
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(contentType: "application/json"))
builder.serialize(ClientRuntime.BodyMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput, SmithyJSON.Writer>(rootNodeInfo: "", inputWritingClosure: SearchUserHierarchyGroupsInput.write(value:to:)))
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>())
builder.deserialize(ClientRuntime.DeserializeMiddleware<SearchUserHierarchyGroupsOutput>(SearchUserHierarchyGroupsOutput.httpOutput(from:), SearchUserHierarchyGroupsOutputError.httpError(from:)))
builder.interceptors.add(ClientRuntime.LoggerMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(clientLogMode: config.clientLogMode))
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
builder.applySigner(ClientRuntime.SignerMiddleware<SearchUserHierarchyGroupsOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<SearchUserHierarchyGroupsOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(metadata: AWSClientRuntime.AWSUserAgentMetadata.fromConfig(serviceID: serviceName, version: "1.0", config: config)))
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<SearchUserHierarchyGroupsOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<SearchUserHierarchyGroupsInput, SearchUserHierarchyGroupsOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
var metricsAttributes = Smithy.Attributes()
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "Connect")
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "SearchUserHierarchyGroups")
let op = builder.attributes(context)
.telemetry(ClientRuntime.OrchestratorTelemetry(
telemetryProvider: config.telemetryProvider,
metricsAttributes: metricsAttributes
))
.executeRequest(client)
.build()
return try await op.execute(input: input)
}

/// Performs the `SearchUsers` operation on the `AmazonConnectService` service.
///
/// Searches users in an Amazon Connect instance, with optional filtering. AfterContactWorkTimeLimit is returned in milliseconds.
Expand Down
Loading

0 comments on commit e918f8b

Please sign in to comment.