Skip to content

Commit 0352f6d

Browse files
chore: Updates version to 1.3.38
1 parent b264c7c commit 0352f6d

File tree

430 files changed

+22066
-1795
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

430 files changed

+22066
-1795
lines changed

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import PackageDescription
1515

1616
// MARK: - Dynamic Content
1717

18-
let clientRuntimeVersion: Version = "0.136.0"
18+
let clientRuntimeVersion: Version = "0.137.0"
1919
let crtVersion: Version = "0.52.1"
2020

2121
let excludeRuntimeUnitTests = false
@@ -251,6 +251,7 @@ let serviceTargets: [String] = [
251251
"AWSLookoutMetrics",
252252
"AWSLookoutVision",
253253
"AWSM2",
254+
"AWSMPA",
254255
"AWSMTurk",
255256
"AWSMWAA",
256257
"AWSMachineLearning",

Package.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.37
1+
1.3.38

Package.version.next

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.38
1+
1.3.39

Sources/Core/AWSSDKForSwift/Documentation.docc/AWSSDKForSwift.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ This SDK is open-source. Code is available on Github [here](https://github.com/
533533

534534
[AWSM2](../../../../../swift/api/awsm2/latest)
535535

536+
[AWSMPA](../../../../../swift/api/awsmpa/latest)
537+
536538
[AWSMTurk](../../../../../swift/api/awsmturk/latest)
537539

538540
[AWSMWAA](../../../../../swift/api/awsmwaa/latest)

Sources/Services/AWSACM/Sources/AWSACM/ACMClient.swift

Lines changed: 87 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import typealias SmithyHTTPAuthAPI.AuthSchemes
6767

6868
public class ACMClient: ClientRuntime.Client {
6969
public static let clientName = "ACMClient"
70-
public static let version = "1.3.37"
70+
public static let version = "1.3.38"
7171
let client: ClientRuntime.SdkHttpClient
7272
let config: ACMClient.ACMClientConfiguration
7373
let serviceName = "ACM"
@@ -611,7 +611,7 @@ extension ACMClient {
611611

612612
/// Performs the `ExportCertificate` operation on the `ACM` service.
613613
///
614-
/// Exports a private certificate issued by a private certificate authority (CA) for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private 2048-bit RSA key associated with the public key that is embedded in the certificate. For security, you must assign a passphrase for the private key when exporting it. For information about exporting and formatting a certificate using the ACM console or CLI, see [Export a Private Certificate](https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html).
614+
/// Exports a private certificate issued by a private certificate authority (CA) or public certificate for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private key associated with the public key that is embedded in the certificate. For security, you must assign a passphrase for the private key when exporting it. For information about exporting and formatting a certificate using the ACM console or CLI, see [Export a private certificate](https://docs.aws.amazon.com/acm/latest/userguide/export-private.html) and [Export a public certificate](https://docs.aws.amazon.com/acm/latest/userguide/export-public-certificate).
615615
///
616616
/// - Parameter ExportCertificateInput : [no documentation found]
617617
///
@@ -960,7 +960,7 @@ extension ACMClient {
960960
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
961961
///
962962
/// __Possible Exceptions:__
963-
/// - `InvalidArgsException` : One or more of of request parameters specified is not valid.
963+
/// - `InvalidArgsException` : One or more of request parameters specified is not valid.
964964
/// - `ValidationException` : The supplied input failed to satisfy constraints of an Amazon Web Services service.
965965
public func listCertificates(input: ListCertificatesInput) async throws -> ListCertificatesOutput {
966966
let context = Smithy.ContextBuilder()
@@ -1265,7 +1265,7 @@ extension ACMClient {
12651265

12661266
/// Performs the `RenewCertificate` operation on the `ACM` service.
12671267
///
1268-
/// Renews an eligible ACM certificate. At this time, only exported private certificates can be renewed with this operation. In order to renew your Amazon Web Services Private CA certificates with ACM, you must first [grant the ACM service principal permission to do so](https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html). For more information, see [Testing Managed Renewal](https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html) in the ACM User Guide.
1268+
/// Renews an [eligible ACM certificate](https://docs.aws.amazon.com/acm/latest/userguide/managed-renewal.html). In order to renew your Amazon Web Services Private CA certificates with ACM, you must first [grant the ACM service principal permission to do so](https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html). For more information, see [Testing Managed Renewal](https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html) in the ACM User Guide.
12691269
///
12701270
/// - Parameter RenewCertificateInput : [no documentation found]
12711271
///
@@ -1343,7 +1343,7 @@ extension ACMClient {
13431343

13441344
/// Performs the `RequestCertificate` operation on the `ACM` service.
13451345
///
1346-
/// Requests an ACM certificate for use with other Amazon Web Services services. To request an ACM certificate, you must specify a fully qualified domain name (FQDN) in the DomainName parameter. You can also specify additional FQDNs in the SubjectAlternativeNames parameter. If you are requesting a private certificate, domain validation is not required. If you are requesting a public certificate, each domain name that you specify must be validated to verify that you own or control the domain. You can use [DNS validation](https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html) or [email validation](https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html). We recommend that you use DNS validation. ACM issues public certificates after receiving approval from the domain owner. ACM behavior differs from the [RFC 6125](https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2) specification of the certificate validation process. ACM first checks for a Subject Alternative Name, and, if it finds one, ignores the common name (CN). After successful completion of the RequestCertificate action, there is a delay of several seconds before you can retrieve information about the new certificate.
1346+
/// Requests an ACM certificate for use with other Amazon Web Services services. To request an ACM certificate, you must specify a fully qualified domain name (FQDN) in the DomainName parameter. You can also specify additional FQDNs in the SubjectAlternativeNames parameter. If you are requesting a private certificate, domain validation is not required. If you are requesting a public certificate, each domain name that you specify must be validated to verify that you own or control the domain. You can use [DNS validation](https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html) or [email validation](https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html). We recommend that you use DNS validation. ACM behavior differs from the [RFC 6125](https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2) specification of the certificate validation process. ACM first checks for a Subject Alternative Name, and, if it finds one, ignores the common name (CN). After successful completion of the RequestCertificate action, there is a delay of several seconds before you can retrieve information about the new certificate.
13471347
///
13481348
/// - Parameter RequestCertificateInput : [no documentation found]
13491349
///
@@ -1502,9 +1502,90 @@ extension ACMClient {
15021502
return try await op.execute(input: input)
15031503
}
15041504

1505+
/// Performs the `RevokeCertificate` operation on the `ACM` service.
1506+
///
1507+
/// Revokes a public ACM certificate. You can only revoke certificates that have been previously exported.
1508+
///
1509+
/// - Parameter RevokeCertificateInput : [no documentation found]
1510+
///
1511+
/// - Returns: `RevokeCertificateOutput` : [no documentation found]
1512+
///
1513+
/// - Throws: One of the exceptions listed below __Possible Exceptions__.
1514+
///
1515+
/// __Possible Exceptions:__
1516+
/// - `AccessDeniedException` : You do not have access required to perform this action.
1517+
/// - `ConflictException` : You are trying to update a resource or configuration that is already being created or updated. Wait for the previous operation to finish and try again.
1518+
/// - `InvalidArnException` : The requested Amazon Resource Name (ARN) does not refer to an existing resource.
1519+
/// - `ResourceInUseException` : The certificate is in use by another Amazon Web Services service in the caller's account. Remove the association and try again.
1520+
/// - `ResourceNotFoundException` : The specified certificate cannot be found in the caller's account or the caller's account cannot be found.
1521+
/// - `ThrottlingException` : The request was denied because it exceeded a quota.
1522+
public func revokeCertificate(input: RevokeCertificateInput) async throws -> RevokeCertificateOutput {
1523+
let context = Smithy.ContextBuilder()
1524+
.withMethod(value: .post)
1525+
.withServiceName(value: serviceName)
1526+
.withOperation(value: "revokeCertificate")
1527+
.withIdempotencyTokenGenerator(value: config.idempotencyTokenGenerator)
1528+
.withLogger(value: config.logger)
1529+
.withPartitionID(value: config.partitionID)
1530+
.withAuthSchemes(value: config.authSchemes ?? [])
1531+
.withAuthSchemePreference(value: config.authSchemePreference)
1532+
.withAuthSchemeResolver(value: config.authSchemeResolver)
1533+
.withUnsignedPayloadTrait(value: false)
1534+
.withSocketTimeout(value: config.httpClientConfiguration.socketTimeout)
1535+
.withIdentityResolver(value: config.bearerTokenIdentityResolver, schemeID: "smithy.api#httpBearerAuth")
1536+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4")
1537+
.withIdentityResolver(value: config.awsCredentialIdentityResolver, schemeID: "aws.auth#sigv4a")
1538+
.withRegion(value: config.region)
1539+
.withRequestChecksumCalculation(value: config.requestChecksumCalculation)
1540+
.withResponseChecksumValidation(value: config.responseChecksumValidation)
1541+
.withSigningName(value: "acm")
1542+
.withSigningRegion(value: config.signingRegion)
1543+
.build()
1544+
let builder = ClientRuntime.OrchestratorBuilder<RevokeCertificateInput, RevokeCertificateOutput, SmithyHTTPAPI.HTTPRequest, SmithyHTTPAPI.HTTPResponse>()
1545+
config.interceptorProviders.forEach { provider in
1546+
builder.interceptors.add(provider.create())
1547+
}
1548+
config.httpInterceptorProviders.forEach { provider in
1549+
builder.interceptors.add(provider.create())
1550+
}
1551+
builder.interceptors.add(ClientRuntime.URLPathMiddleware<RevokeCertificateInput, RevokeCertificateOutput>(RevokeCertificateInput.urlPathProvider(_:)))
1552+
builder.interceptors.add(ClientRuntime.URLHostMiddleware<RevokeCertificateInput, RevokeCertificateOutput>())
1553+
builder.interceptors.add(ClientRuntime.ContentLengthMiddleware<RevokeCertificateInput, RevokeCertificateOutput>())
1554+
builder.deserialize(ClientRuntime.DeserializeMiddleware<RevokeCertificateOutput>(RevokeCertificateOutput.httpOutput(from:), RevokeCertificateOutputError.httpError(from:)))
1555+
builder.interceptors.add(ClientRuntime.LoggerMiddleware<RevokeCertificateInput, RevokeCertificateOutput>(clientLogMode: config.clientLogMode))
1556+
builder.retryStrategy(SmithyRetries.DefaultRetryStrategy(options: config.retryStrategyOptions))
1557+
builder.retryErrorInfoProvider(AWSClientRuntime.AWSRetryErrorInfoProvider.errorInfo(for:))
1558+
builder.applySigner(ClientRuntime.SignerMiddleware<RevokeCertificateOutput>())
1559+
let configuredEndpoint = try config.endpoint ?? AWSClientRuntime.AWSClientConfigDefaultsProvider.configuredEndpoint("ACM", config.ignoreConfiguredEndpointURLs)
1560+
let endpointParamsBlock = { [config] (context: Smithy.Context) in
1561+
EndpointParams(endpoint: configuredEndpoint, region: config.region, useDualStack: config.useDualStack ?? false, useFIPS: config.useFIPS ?? false)
1562+
}
1563+
builder.applyEndpoint(AWSClientRuntime.AWSEndpointResolverMiddleware<RevokeCertificateOutput, EndpointParams>(paramsBlock: endpointParamsBlock, resolverBlock: { [config] in try config.endpointResolver.resolve(params: $0) }))
1564+
builder.interceptors.add(AWSClientRuntime.XAmzTargetMiddleware<RevokeCertificateInput, RevokeCertificateOutput>(xAmzTarget: "CertificateManager.RevokeCertificate"))
1565+
builder.serialize(ClientRuntime.BodyMiddleware<RevokeCertificateInput, RevokeCertificateOutput, SmithyJSON.Writer>(rootNodeInfo: "", inputWritingClosure: RevokeCertificateInput.write(value:to:)))
1566+
builder.interceptors.add(ClientRuntime.ContentTypeMiddleware<RevokeCertificateInput, RevokeCertificateOutput>(contentType: "application/x-amz-json-1.1"))
1567+
builder.selectAuthScheme(ClientRuntime.AuthSchemeMiddleware<RevokeCertificateOutput>())
1568+
builder.interceptors.add(AWSClientRuntime.AmzSdkInvocationIdMiddleware<RevokeCertificateInput, RevokeCertificateOutput>())
1569+
builder.interceptors.add(AWSClientRuntime.AmzSdkRequestMiddleware<RevokeCertificateInput, RevokeCertificateOutput>(maxRetries: config.retryStrategyOptions.maxRetriesBase))
1570+
builder.interceptors.add(AWSClientRuntime.UserAgentMiddleware<RevokeCertificateInput, RevokeCertificateOutput>(serviceID: serviceName, version: ACMClient.version, config: config))
1571+
var metricsAttributes = Smithy.Attributes()
1572+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.service, value: "ACM")
1573+
metricsAttributes.set(key: ClientRuntime.OrchestratorMetricsAttributesKeys.method, value: "RevokeCertificate")
1574+
let op = builder.attributes(context)
1575+
.telemetry(ClientRuntime.OrchestratorTelemetry(
1576+
telemetryProvider: config.telemetryProvider,
1577+
metricsAttributes: metricsAttributes,
1578+
meterScope: serviceName,
1579+
tracerScope: serviceName
1580+
))
1581+
.executeRequest(client)
1582+
.build()
1583+
return try await op.execute(input: input)
1584+
}
1585+
15051586
/// Performs the `UpdateCertificateOptions` operation on the `ACM` service.
15061587
///
1507-
/// Updates a certificate. Currently, you can use this function to specify whether to opt in to or out of recording your certificate in a certificate transparency log. For more information, see [ Opting Out of Certificate Transparency Logging](https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency).
1588+
/// Updates a certificate. You can use this function to specify whether to opt in to or out of recording your certificate in a certificate transparency log and exporting. For more information, see [ Opting Out of Certificate Transparency Logging](https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency) and [Certificate Manager Exportable Managed Certificates](https://docs.aws.amazon.com/acm/latest/userguide/acm-exportable-certificates.html).
15081589
///
15091590
/// - Parameter UpdateCertificateOptionsInput : [no documentation found]
15101591
///

0 commit comments

Comments
 (0)