Skip to content

Commit

Permalink
chore: Updates version to 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-sdk-swift-automation committed Sep 19, 2024
1 parent 7ba34a5 commit f86adcc
Show file tree
Hide file tree
Showing 18 changed files with 1,765 additions and 68 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func addResolvedTargets() {
// MARK: - Generated

addDependencies(
clientRuntimeVersion: "0.72.0",
clientRuntimeVersion: "0.73.0",
crtVersion: "0.36.0"
)

Expand Down
2 changes: 1 addition & 1 deletion Package.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1
1.0.2
2 changes: 1 addition & 1 deletion Package.version.next
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.2
1.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,35 @@ extension CodeConnectionsClientTypes {
}
}

extension CodeConnectionsClientTypes {

public enum PullRequestComment: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
case disabled
case enabled
case sdkUnknown(Swift.String)

public static var allCases: [PullRequestComment] {
return [
.disabled,
.enabled
]
}

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 .disabled: return "DISABLED"
case .enabled: return "ENABLED"
case let .sdkUnknown(s): return s
}
}
}
}

extension CodeConnectionsClientTypes {

public enum SyncConfigurationType: Swift.Equatable, Swift.RawRepresentable, Swift.CaseIterable, Swift.Hashable {
Expand Down Expand Up @@ -660,6 +689,8 @@ public struct CreateSyncConfigurationInput {
public var configFile: Swift.String?
/// Whether to enable or disable publishing of deployment status to source providers.
public var publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus?
/// A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.
public var pullRequestComment: CodeConnectionsClientTypes.PullRequestComment?
/// 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.
/// This member is required.
public var repositoryLinkId: Swift.String?
Expand All @@ -679,6 +710,7 @@ public struct CreateSyncConfigurationInput {
branch: Swift.String? = nil,
configFile: Swift.String? = nil,
publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus? = nil,
pullRequestComment: CodeConnectionsClientTypes.PullRequestComment? = nil,
repositoryLinkId: Swift.String? = nil,
resourceName: Swift.String? = nil,
roleArn: Swift.String? = nil,
Expand All @@ -689,6 +721,7 @@ public struct CreateSyncConfigurationInput {
self.branch = branch
self.configFile = configFile
self.publishDeploymentStatus = publishDeploymentStatus
self.pullRequestComment = pullRequestComment
self.repositoryLinkId = repositoryLinkId
self.resourceName = resourceName
self.roleArn = roleArn
Expand All @@ -713,6 +746,8 @@ extension CodeConnectionsClientTypes {
public var providerType: CodeConnectionsClientTypes.ProviderType?
/// Whether to enable or disable publishing of deployment status to source providers.
public var publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus?
/// A toggle that specifies whether to enable or disable pull request comments for the sync configuration to be created.
public var pullRequestComment: CodeConnectionsClientTypes.PullRequestComment?
/// The ID of the repository link associated with a specific sync configuration.
/// This member is required.
public var repositoryLinkId: Swift.String?
Expand All @@ -737,6 +772,7 @@ extension CodeConnectionsClientTypes {
ownerId: Swift.String? = nil,
providerType: CodeConnectionsClientTypes.ProviderType? = nil,
publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus? = nil,
pullRequestComment: CodeConnectionsClientTypes.PullRequestComment? = nil,
repositoryLinkId: Swift.String? = nil,
repositoryName: Swift.String? = nil,
resourceName: Swift.String? = nil,
Expand All @@ -750,6 +786,7 @@ extension CodeConnectionsClientTypes {
self.ownerId = ownerId
self.providerType = providerType
self.publishDeploymentStatus = publishDeploymentStatus
self.pullRequestComment = pullRequestComment
self.repositoryLinkId = repositoryLinkId
self.repositoryName = repositoryName
self.resourceName = resourceName
Expand Down Expand Up @@ -947,7 +984,7 @@ extension CodeConnectionsClientTypes {
extension CodeConnectionsClientTypes {
/// 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.
public struct Connection {
/// 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.
/// 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.
public var connectionArn: Swift.String?
/// The name of the connection. Connection names must be unique in an Amazon Web Services account.
public var connectionName: Swift.String?
Expand Down Expand Up @@ -2143,6 +2180,8 @@ public struct UpdateSyncConfigurationInput {
public var configFile: Swift.String?
/// Whether to enable or disable publishing of deployment status to source providers.
public var publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus?
/// TA toggle that specifies whether to enable or disable pull request comments for the sync configuration to be updated.
public var pullRequestComment: CodeConnectionsClientTypes.PullRequestComment?
/// The ID of the repository link for the sync configuration to be updated.
public var repositoryLinkId: Swift.String?
/// The name of the Amazon Web Services resource for the sync configuration to be updated.
Expand All @@ -2160,6 +2199,7 @@ public struct UpdateSyncConfigurationInput {
branch: Swift.String? = nil,
configFile: Swift.String? = nil,
publishDeploymentStatus: CodeConnectionsClientTypes.PublishDeploymentStatus? = nil,
pullRequestComment: CodeConnectionsClientTypes.PullRequestComment? = nil,
repositoryLinkId: Swift.String? = nil,
resourceName: Swift.String? = nil,
roleArn: Swift.String? = nil,
Expand All @@ -2170,6 +2210,7 @@ public struct UpdateSyncConfigurationInput {
self.branch = branch
self.configFile = configFile
self.publishDeploymentStatus = publishDeploymentStatus
self.pullRequestComment = pullRequestComment
self.repositoryLinkId = repositoryLinkId
self.resourceName = resourceName
self.roleArn = roleArn
Expand Down Expand Up @@ -2422,6 +2463,7 @@ extension CreateSyncConfigurationInput {
try writer["Branch"].write(value.branch)
try writer["ConfigFile"].write(value.configFile)
try writer["PublishDeploymentStatus"].write(value.publishDeploymentStatus)
try writer["PullRequestComment"].write(value.pullRequestComment)
try writer["RepositoryLinkId"].write(value.repositoryLinkId)
try writer["ResourceName"].write(value.resourceName)
try writer["RoleArn"].write(value.roleArn)
Expand Down Expand Up @@ -2637,6 +2679,7 @@ extension UpdateSyncConfigurationInput {
try writer["Branch"].write(value.branch)
try writer["ConfigFile"].write(value.configFile)
try writer["PublishDeploymentStatus"].write(value.publishDeploymentStatus)
try writer["PullRequestComment"].write(value.pullRequestComment)
try writer["RepositoryLinkId"].write(value.repositoryLinkId)
try writer["ResourceName"].write(value.resourceName)
try writer["RoleArn"].write(value.roleArn)
Expand Down Expand Up @@ -3681,6 +3724,7 @@ extension CodeConnectionsClientTypes.SyncConfiguration {
value.syncType = try reader["SyncType"].readIfPresent() ?? .sdkUnknown("")
value.publishDeploymentStatus = try reader["PublishDeploymentStatus"].readIfPresent()
value.triggerResourceUpdateOn = try reader["TriggerResourceUpdateOn"].readIfPresent()
value.pullRequestComment = try reader["PullRequestComment"].readIfPresent()
return value
}
}
Expand Down
78 changes: 78 additions & 0 deletions Sources/Services/AWSGlue/Sources/AWSGlue/GlueClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14906,6 +14906,84 @@ extension GlueClient {
return try await op.execute(input: input)
}

/// Performs the `TestConnection` operation on the `AWSGlue` service.
///
/// 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.
///
/// - Parameter TestConnectionInput : [no documentation found]
///
/// - Returns: `TestConnectionOutput` : [no documentation found]
///
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
///
/// __Possible Exceptions:__
/// - `AccessDeniedException` : Access to a resource was denied.
/// - `ConflictException` : The CreatePartitions API was called on a table that has indexes enabled.
/// - `EntityNotFoundException` : A specified entity does not exist
/// - `FederationSourceException` : A federation source failed.
/// - `GlueEncryptionException` : An encryption operation failed.
/// - `InternalServiceException` : An internal service error occurred.
/// - `InvalidInputException` : The input provided was not valid.
/// - `OperationTimeoutException` : The operation timed out.
/// - `ResourceNumberLimitExceededException` : A resource numerical limit was exceeded.
public func testConnection(input: TestConnectionInput) async throws -> TestConnectionOutput {
let context = Smithy.ContextBuilder()
.withMethod(value: .post)
.withServiceName(value: serviceName)
.withOperation(value: "testConnection")
.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: "glue")
.withSigningRegion(value: config.signingRegion)
.build()
let builder = ClientRuntime.OrchestratorBuilder<TestConnectionInput, TestConnectionOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
config.interceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
config.httpInterceptorProviders.forEach { provider in
builder.interceptors.add(provider.create())
}
builder.interceptors.add(ClientRuntime.URLPathMiddleware<TestConnectionInput, TestConnectionOutput>(TestConnectionInput.urlPathProvider(_:)))
builder.interceptors.add(ClientRuntime.URLHostMiddleware<TestConnectionInput, TestConnectionOutput>())
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<TestConnectionInput, TestConnectionOutput>())
builder.deserialize(ClientRuntime.DeserializeMiddleware<TestConnectionOutput>(TestConnectionOutput.httpOutput(from:), TestConnectionOutputError.httpError(from:)))
builder.interceptors.add(ClientRuntime.LoggerMiddleware<TestConnectionInput, TestConnectionOutput>(clientLogMode: config.clientLogMode))
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
builder.applySigner(ClientRuntime.SignerMiddleware<TestConnectionOutput>())
let endpointParams = EndpointParams(endpoint: config.endpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
builder.applyEndpoint(AWSClientRuntime.EndpointResolverMiddleware<TestConnectionOutput, EndpointParams>(endpointResolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }, endpointParams: endpointParams))
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<TestConnectionInput, TestConnectionOutput>(serviceID: serviceName, version: "1.0", config: config))
builder.interceptors.add(AWSClientRuntime.XAmzTargetMiddleware<TestConnectionInput, TestConnectionOutput>(xAmzTarget: "AWSGlue.TestConnection"))
builder.serialize(ClientRuntime.BodyMiddleware<TestConnectionInput, TestConnectionOutput, SmithyJSON.Writer>(rootNodeInfo: "", inputWritingClosure: TestConnectionInput.write(value:to:)))
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<TestConnectionInput, TestConnectionOutput>(contentType: "application/x-amz-json-1.1"))
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<TestConnectionOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<TestConnectionInput, TestConnectionOutput>())
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<TestConnectionInput, TestConnectionOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
var metricsAttributes = Smithy.Attributes()
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "Glue")
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "TestConnection")
let op = builder.attributes(context)
.telemetry(ClientRuntime.OrchestratorTelemetry(
telemetryProvider: config.telemetryProvider,
metricsAttributes: metricsAttributes,
meterScope: serviceName,
tracerScope: serviceName
))
.executeRequest(client)
.build()
return try await op.execute(input: input)
}

/// Performs the `UntagResource` operation on the `AWSGlue` service.
///
/// Removes tags from a resource.
Expand Down
Loading

0 comments on commit f86adcc

Please sign in to comment.