Skip to content

Commit f86adcc

Browse files
chore: Updates version to 1.0.2
1 parent 7ba34a5 commit f86adcc

File tree

18 files changed

+1765
-68
lines changed

18 files changed

+1765
-68
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func addResolvedTargets() {
255255
// MARK: - Generated
256256

257257
addDependencies(
258-
clientRuntimeVersion: "0.72.0",
258+
clientRuntimeVersion: "0.73.0",
259259
crtVersion: "0.36.0"
260260
)
261261

Package.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

Package.version.next

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.2
1+
1.0.3

Sources/Services/AWSCodeConnections/Sources/AWSCodeConnections/Models.swift

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,35 @@ extension CodeConnectionsClientTypes {
596596
}
597597
}
598598

599+
extension CodeConnectionsClientTypes {
600+
601+
public enum PullRequestComment: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
602+
case disabled
603+
case enabled
604+
case sdkUnknown(Swift.String)
605+
606+
public static var allCases: [PullRequestComment] {
607+
return [
608+
.disabled,
609+
.enabled
610+
]
611+
}
612+
613+
public init?(rawValue: Swift.String) {
614+
let value = Self.allCases.first(where: { $0.rawValue == rawValue })
615+
self = value ?? Self.sdkUnknown(rawValue)
616+
}
617+
618+
public var rawValue: Swift.String {
619+
switch self {
620+
case .disabled: return "DISABLED"
621+
case .enabled: return "ENABLED"
622+
case let .sdkUnknown(s): return s
623+
}
624+
}
625+
}
626+
}
627+
599628
extension CodeConnectionsClientTypes {
600629

601630
public enum SyncConfigurationType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
@@ -660,6 +689,8 @@ public struct CreateSyncConfigurationInput {
660689
public var configFile: Swift.String?
661690
/// Whether to enable or disable publishing of deployment status to source providers.
662691
public var publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus?
692+
/// A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.
693+
public var pullRequestComment: CodeConnectionsClientTypes.PullRequestComment?
663694
/// The ID of the repository link created for the connection. A repository link allows Git sync to monitor and sync changes to files in a specified Git repository.
664695
/// This member is required.
665696
public var repositoryLinkId: Swift.String?
@@ -679,6 +710,7 @@ public struct CreateSyncConfigurationInput {
679710
branch: Swift.String? = nil,
680711
configFile: Swift.String? = nil,
681712
publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus? = nil,
713+
pullRequestComment: CodeConnectionsClientTypes.PullRequestComment? = nil,
682714
repositoryLinkId: Swift.String? = nil,
683715
resourceName: Swift.String? = nil,
684716
roleArn: Swift.String? = nil,
@@ -689,6 +721,7 @@ public struct CreateSyncConfigurationInput {
689721
self.branch = branch
690722
self.configFile = configFile
691723
self.publishDeploymentStatus = publishDeploymentStatus
724+
self.pullRequestComment = pullRequestComment
692725
self.repositoryLinkId = repositoryLinkId
693726
self.resourceName = resourceName
694727
self.roleArn = roleArn
@@ -713,6 +746,8 @@ extension CodeConnectionsClientTypes {
713746
public var providerType: CodeConnectionsClientTypes.ProviderType?
714747
/// Whether to enable or disable publishing of deployment status to source providers.
715748
public var publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus?
749+
/// A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.
750+
public var pullRequestComment: CodeConnectionsClientTypes.PullRequestComment?
716751
/// The ID of the repository link associated with a specific sync configuration.
717752
/// This member is required.
718753
public var repositoryLinkId: Swift.String?
@@ -737,6 +772,7 @@ extension CodeConnectionsClientTypes {
737772
ownerId: Swift.String? = nil,
738773
providerType: CodeConnectionsClientTypes.ProviderType? = nil,
739774
publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus? = nil,
775+
pullRequestComment: CodeConnectionsClientTypes.PullRequestComment? = nil,
740776
repositoryLinkId: Swift.String? = nil,
741777
repositoryName: Swift.String? = nil,
742778
resourceName: Swift.String? = nil,
@@ -750,6 +786,7 @@ extension CodeConnectionsClientTypes {
750786
self.ownerId = ownerId
751787
self.providerType = providerType
752788
self.publishDeploymentStatus = publishDeploymentStatus
789+
self.pullRequestComment = pullRequestComment
753790
self.repositoryLinkId = repositoryLinkId
754791
self.repositoryName = repositoryName
755792
self.resourceName = resourceName
@@ -947,7 +984,7 @@ extension CodeConnectionsClientTypes {
947984
extension CodeConnectionsClientTypes {
948985
/// A resource that is used to connect third-party source providers with services like CodePipeline. Note: A connection created through CloudFormation, the CLI, or the SDK is in `PENDING` status by default. You can make its status `AVAILABLE` by updating the connection in the console.
949986
public struct Connection {
950-
/// The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between Amazon Web Services. The ARN is never reused if the connection is deleted.
987+
/// The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between Amazon Web Servicesservices. The ARN is never reused if the connection is deleted.
951988
public var connectionArn: Swift.String?
952989
/// The name of the connection. Connection names must be unique in an Amazon Web Services account.
953990
public var connectionName: Swift.String?
@@ -2143,6 +2180,8 @@ public struct UpdateSyncConfigurationInput {
21432180
public var configFile: Swift.String?
21442181
/// Whether to enable or disable publishing of deployment status to source providers.
21452182
public var publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus?
2183+
/// TA toggle that specifies whether to enable or disable pull request comments for the sync configuration to be updated.
2184+
public var pullRequestComment: CodeConnectionsClientTypes.PullRequestComment?
21462185
/// The ID of the repository link for the sync configuration to be updated.
21472186
public var repositoryLinkId: Swift.String?
21482187
/// The name of the Amazon Web Services resource for the sync configuration to be updated.
@@ -2160,6 +2199,7 @@ public struct UpdateSyncConfigurationInput {
21602199
branch: Swift.String? = nil,
21612200
configFile: Swift.String? = nil,
21622201
publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus? = nil,
2202+
pullRequestComment: CodeConnectionsClientTypes.PullRequestComment? = nil,
21632203
repositoryLinkId: Swift.String? = nil,
21642204
resourceName: Swift.String? = nil,
21652205
roleArn: Swift.String? = nil,
@@ -2170,6 +2210,7 @@ public struct UpdateSyncConfigurationInput {
21702210
self.branch = branch
21712211
self.configFile = configFile
21722212
self.publishDeploymentStatus = publishDeploymentStatus
2213+
self.pullRequestComment = pullRequestComment
21732214
self.repositoryLinkId = repositoryLinkId
21742215
self.resourceName = resourceName
21752216
self.roleArn = roleArn
@@ -2422,6 +2463,7 @@ extension CreateSyncConfigurationInput {
24222463
try writer["Branch"].write(value.branch)
24232464
try writer["ConfigFile"].write(value.configFile)
24242465
try writer["PublishDeploymentStatus"].write(value.publishDeploymentStatus)
2466+
try writer["PullRequestComment"].write(value.pullRequestComment)
24252467
try writer["RepositoryLinkId"].write(value.repositoryLinkId)
24262468
try writer["ResourceName"].write(value.resourceName)
24272469
try writer["RoleArn"].write(value.roleArn)
@@ -2637,6 +2679,7 @@ extension UpdateSyncConfigurationInput {
26372679
try writer["Branch"].write(value.branch)
26382680
try writer["ConfigFile"].write(value.configFile)
26392681
try writer["PublishDeploymentStatus"].write(value.publishDeploymentStatus)
2682+
try writer["PullRequestComment"].write(value.pullRequestComment)
26402683
try writer["RepositoryLinkId"].write(value.repositoryLinkId)
26412684
try writer["ResourceName"].write(value.resourceName)
26422685
try writer["RoleArn"].write(value.roleArn)
@@ -3681,6 +3724,7 @@ extension CodeConnectionsClientTypes.SyncConfiguration {
36813724
value.syncType = try reader["SyncType"].readIfPresent() ?? .sdkUnknown("")
36823725
value.publishDeploymentStatus = try reader["PublishDeploymentStatus"].readIfPresent()
36833726
value.triggerResourceUpdateOn = try reader["TriggerResourceUpdateOn"].readIfPresent()
3727+
value.pullRequestComment = try reader["PullRequestComment"].readIfPresent()
36843728
return value
36853729
}
36863730
}

Sources/Services/AWSGlue/Sources/AWSGlue/GlueClient.swift

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14906,6 +14906,84 @@ extension GlueClient {
1490614906
return try await op.execute(input: input)
1490714907
}
1490814908

14909+
/// Performs the `TestConnection` operation on the `AWSGlue` service.
14910+
///
14911+
/// Tests a connection to a service to validate the service credentials that you provide. You can either provide an existing connection name or a TestConnectionInput for testing a non-existing connection input. Providing both at the same time will cause an error. If the action is successful, the service sends back an HTTP 200 response.
14912+
///
14913+
/// - Parameter TestConnectionInput : [no documentation found]
14914+
///
14915+
/// - Returns: `TestConnectionOutput` : [no documentation found]
14916+
///
14917+
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
14918+
///
14919+
/// __Possible Exceptions:__
14920+
/// - `AccessDeniedException` : Access to a resource was denied.
14921+
/// - `ConflictException` : The CreatePartitions API was called on a table that has indexes enabled.
14922+
/// - `EntityNotFoundException` : A specified entity does not exist
14923+
/// - `FederationSourceException` : A federation source failed.
14924+
/// - `GlueEncryptionException` : An encryption operation failed.
14925+
/// - `InternalServiceException` : An internal service error occurred.
14926+
/// - `InvalidInputException` : The input provided was not valid.
14927+
/// - `OperationTimeoutException` : The operation timed out.
14928+
/// - `ResourceNumberLimitExceededException` : A resource numerical limit was exceeded.
14929+
public func testConnection(input: TestConnectionInput) async throws -> TestConnectionOutput {
14930+
let context = Smithy.ContextBuilder()
14931+
.withMethod(value: .post)
14932+
.withServiceName(value: serviceName)
14933+
.withOperation(value: "testConnection")
14934+
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
14935+
.withLogger(value: config.logger)
14936+
.withPartitionID(value: config.partitionID)
14937+
.withAuthSchemes(value: config.authSchemes ?? [])
14938+
.withAuthSchemeResolver(value: config.authSchemeResolver)
14939+
.withUnsignedPayloadTrait(value: false)
14940+
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
14941+
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
14942+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
14943+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
14944+
.withRegion(value: config.region)
14945+
.withSigningName(value: "glue")
14946+
.withSigningRegion(value: config.signingRegion)
14947+
.build()
14948+
let builder = ClientRuntime.OrchestratorBuilder<TestConnectionInput, TestConnectionOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
14949+
config.interceptorProviders.forEach { provider in
14950+
builder.interceptors.add(provider.create())
14951+
}
14952+
config.httpInterceptorProviders.forEach { provider in
14953+
builder.interceptors.add(provider.create())
14954+
}
14955+
builder.interceptors.add(ClientRuntime.URLPathMiddleware<TestConnectionInput, TestConnectionOutput>(TestConnectionInput.urlPathProvider(_:)))
14956+
builder.interceptors.add(ClientRuntime.URLHostMiddleware<TestConnectionInput, TestConnectionOutput>())
14957+
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<TestConnectionInput, TestConnectionOutput>())
14958+
builder.deserialize(ClientRuntime.DeserializeMiddleware<TestConnectionOutput>(TestConnectionOutput.httpOutput(from:), TestConnectionOutputError.httpError(from:)))
14959+
builder.interceptors.add(ClientRuntime.LoggerMiddleware<TestConnectionInput, TestConnectionOutput>(clientLogMode: config.clientLogMode))
14960+
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
14961+
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
14962+
builder.applySigner(ClientRuntime.SignerMiddleware<TestConnectionOutput>())
14963+
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
14964+
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<TestConnectionOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
14965+
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<TestConnectionInput, TestConnectionOutput>(serviceID: serviceName, version: "1.0", config: config))
14966+
builder.interceptors.add(AWSClientRuntime.XAmzTargetMiddleware<TestConnectionInput, TestConnectionOutput>(xAmzTarget: "AWSGlue.TestConnection"))
14967+
builder.serialize(ClientRuntime.BodyMiddleware<TestConnectionInput, TestConnectionOutput, SmithyJSON.Writer>(rootNodeInfo: "", inputWritingClosure: TestConnectionInput.write(value:to:)))
14968+
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<TestConnectionInput, TestConnectionOutput>(contentType: "application/x-amz-json-1.1"))
14969+
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<TestConnectionOutput>())
14970+
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<TestConnectionInput, TestConnectionOutput>())
14971+
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<TestConnectionInput, TestConnectionOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
14972+
var metricsAttributes = Smithy.Attributes()
14973+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "Glue")
14974+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "TestConnection")
14975+
let op = builder.attributes(context)
14976+
.telemetry(ClientRuntime.OrchestratorTelemetry(
14977+
telemetryProvider: config.telemetryProvider,
14978+
metricsAttributes: metricsAttributes,
14979+
meterScope: serviceName,
14980+
tracerScope: serviceName
14981+
))
14982+
.executeRequest(client)
14983+
.build()
14984+
return try await op.execute(input: input)
14985+
}
14986+
1490914987
/// Performs the `UntagResource` operation on the `AWSGlue` service.
1491014988
///
1491114989
/// Removes tags from a resource.

0 commit comments

Comments
 (0)