From dfbf187c71d4b9a4dd051cee1626542f4f06119c Mon Sep 17 00:00:00 2001
From: Sebastian Villena <97059974+ruisebas@users.noreply.github.com>
Date: Thu, 19 Sep 2024 09:40:15 -0400
Subject: [PATCH] chore(Swift): Removing callouts regarding the Swift SDK being
in Developer Preview
---
src/fragments/lib/analytics/ios/escapehatch.mdx | 4 ----
.../lib/auth/ios/escapehatch/10_awsmobileclient_escape.mdx | 4 ----
src/fragments/lib/geo/ios/escapehatch.mdx | 4 ----
src/fragments/lib/logging/ios/escapehatch/escapehatch.mdx | 4 ----
.../lib/project-setup/ios/upgrade-guide/upgrade-guide.mdx | 2 --
src/fragments/lib/storage/ios/escapehatch.mdx | 4 ----
src/fragments/sdk/pubsub/ios/aws-iot-and-amplify.mdx | 2 +-
.../add-aws-services/analytics/sdk/index.mdx | 6 ------
.../build-a-backend/add-aws-services/logging/sdk/index.mdx | 7 -------
.../[platform]/build-a-backend/auth/use-aws-sdk/index.mdx | 6 ------
.../build-a-backend/storage/use-aws-sdk/index.mdx | 6 ------
11 files changed, 1 insertion(+), 48 deletions(-)
diff --git a/src/fragments/lib/analytics/ios/escapehatch.mdx b/src/fragments/lib/analytics/ios/escapehatch.mdx
index 78091ac057d..61d2ab52298 100644
--- a/src/fragments/lib/analytics/ios/escapehatch.mdx
+++ b/src/fragments/lib/analytics/ios/escapehatch.mdx
@@ -1,9 +1,5 @@
For advanced use cases where Amplify does not provide the functionality, you can retrieve the escape hatch to access the underlying Amazon Pinpoint client.
-import ios0 from '/src/fragments/lib/ios-escape-hatch-warning.mdx';
-
-
-
Add the following import:
```swift
diff --git a/src/fragments/lib/auth/ios/escapehatch/10_awsmobileclient_escape.mdx b/src/fragments/lib/auth/ios/escapehatch/10_awsmobileclient_escape.mdx
index b19d76eb34a..5f289654ace 100644
--- a/src/fragments/lib/auth/ios/escapehatch/10_awsmobileclient_escape.mdx
+++ b/src/fragments/lib/auth/ios/escapehatch/10_awsmobileclient_escape.mdx
@@ -1,9 +1,5 @@
For advanced use cases where Amplify does not provide the functionality you're looking for, you can retrieve the escape hatch to access the underlying SDK.
-import ios0 from '/src/fragments/lib/ios-escape-hatch-warning.mdx';
-
-
-
The escape hatch provides access to the underlying `AWSCognitoIdentityProvider` instance. Import the necessary types:
```swift
diff --git a/src/fragments/lib/geo/ios/escapehatch.mdx b/src/fragments/lib/geo/ios/escapehatch.mdx
index 0b83a879f8f..d0b54d22fe2 100644
--- a/src/fragments/lib/geo/ios/escapehatch.mdx
+++ b/src/fragments/lib/geo/ios/escapehatch.mdx
@@ -1,9 +1,5 @@
If you need functionality in the AWSLocation framework used by the Amplify Geo category that isn't available, we provide an escape hatch so you can reference it directly.
-import ios0 from '/src/fragments/lib/ios-escape-hatch-warning.mdx';
-
-
-
Note: If you provisioned your Geo resources via Amplify CLI, then the IAM policy will be specifically scoped to only allow actions required by the library. Please [adjust your authorization permissions](/gen1/[platform]/build-a-backend/more-features/geo/existing-resources/) accordingly for your escape hatch use-cases.
```swift
diff --git a/src/fragments/lib/logging/ios/escapehatch/escapehatch.mdx b/src/fragments/lib/logging/ios/escapehatch/escapehatch.mdx
index a6654ef8844..e31c8e63b9f 100644
--- a/src/fragments/lib/logging/ios/escapehatch/escapehatch.mdx
+++ b/src/fragments/lib/logging/ios/escapehatch/escapehatch.mdx
@@ -1,7 +1,3 @@
-import ios0 from '/src/fragments/lib/ios-escape-hatch-warning.mdx';
-
-
-
Add import statements
```swift
diff --git a/src/fragments/lib/project-setup/ios/upgrade-guide/upgrade-guide.mdx b/src/fragments/lib/project-setup/ios/upgrade-guide/upgrade-guide.mdx
index c5bc358951e..545cfb8bf8c 100644
--- a/src/fragments/lib/project-setup/ios/upgrade-guide/upgrade-guide.mdx
+++ b/src/fragments/lib/project-setup/ios/upgrade-guide/upgrade-guide.mdx
@@ -72,5 +72,3 @@ do {
print("Get escape hatch failed with error - \(error)")
}
```
-
-**Note:** While the Amplify Library for Swift is production ready, please note that the underlying AWS SDK for Swift is currently in Developer Preview, and is not yet intended for production workloads. You can read about the SDK's ongoing development in [this additional documentation](https://github.com/awslabs/aws-sdk-swift/blob/main/Sources/Core/AWSSDKForSwift/Documentation.docc/stability.md).
diff --git a/src/fragments/lib/storage/ios/escapehatch.mdx b/src/fragments/lib/storage/ios/escapehatch.mdx
index cacd31f12d8..5a75f77861a 100644
--- a/src/fragments/lib/storage/ios/escapehatch.mdx
+++ b/src/fragments/lib/storage/ios/escapehatch.mdx
@@ -1,9 +1,5 @@
For advanced use cases where Amplify does not provide the functionality, you can retrieve the escape hatch to access the AWSS3 instance.
-import ios0 from '/src/fragments/lib/ios-escape-hatch-warning.mdx';
-
-
-
Add the following import:
```swift
diff --git a/src/fragments/sdk/pubsub/ios/aws-iot-and-amplify.mdx b/src/fragments/sdk/pubsub/ios/aws-iot-and-amplify.mdx
index c2234e01a55..5fe65724177 100644
--- a/src/fragments/sdk/pubsub/ios/aws-iot-and-amplify.mdx
+++ b/src/fragments/sdk/pubsub/ios/aws-iot-and-amplify.mdx
@@ -1,4 +1,4 @@
-The new [**Amplify Library for Swift** ](/gen1/[platform]/tools/libraries/) (also known as **v2**) is implemented using the new AWS SDK for Swift, which is currently in Developer Preview and does not support **AWS IoT** .
+The new [**Amplify Library for Swift** ](/gen1/[platform]/tools/libraries/) (also known as **v2**) is implemented using the new AWS SDK for Swift, which does not support **AWS IoT** .
Follow this guide if you are looking to:
- Use **AWS IoT** for your Swift project using **v2** of the Amplify Library for Swift
diff --git a/src/pages/[platform]/build-a-backend/add-aws-services/analytics/sdk/index.mdx b/src/pages/[platform]/build-a-backend/add-aws-services/analytics/sdk/index.mdx
index ab0907afaba..7113c2d1068 100644
--- a/src/pages/[platform]/build-a-backend/add-aws-services/analytics/sdk/index.mdx
+++ b/src/pages/[platform]/build-a-backend/add-aws-services/analytics/sdk/index.mdx
@@ -25,12 +25,6 @@ export function getStaticProps(context) {
For advanced use cases where Amplify does not provide the functionality, you can retrieve an escape hatch to access the underlying Amazon Pinpoint client.
-
-
-**Note:** While the Amplify Library for Swift is production ready, please note that the underlying AWS SDK for Swift is currently in Developer Preview, and is not yet intended for production workloads. [Here is additional reading material](https://github.com/awslabs/aws-sdk-swift/blob/main/Sources/Core/AWSSDKForSwift/Documentation.docc/stability.md) on the stability of the SDK.
-
-
-
Add the following import:
```swift
diff --git a/src/pages/[platform]/build-a-backend/add-aws-services/logging/sdk/index.mdx b/src/pages/[platform]/build-a-backend/add-aws-services/logging/sdk/index.mdx
index 0c57a784015..00cdd1fb889 100644
--- a/src/pages/[platform]/build-a-backend/add-aws-services/logging/sdk/index.mdx
+++ b/src/pages/[platform]/build-a-backend/add-aws-services/logging/sdk/index.mdx
@@ -68,13 +68,6 @@ CloudWatchLogsClient client = plugin.getEscapeHatch();
-
-
-**Note:** While the Amplify Library for Swift is production ready, please note that the underlying AWS SDK for Swift is currently in Developer Preview, and is not yet intended for production workloads. [Here is additional reading material](https://github.com/awslabs/aws-sdk-swift/blob/main/Sources/Core/AWSSDKForSwift/Documentation.docc/stability.md) on the stability of the SDK
-
-
-
-
Add import statements
```swift
diff --git a/src/pages/[platform]/build-a-backend/auth/use-aws-sdk/index.mdx b/src/pages/[platform]/build-a-backend/auth/use-aws-sdk/index.mdx
index 117fc45372f..5ec8478beea 100644
--- a/src/pages/[platform]/build-a-backend/auth/use-aws-sdk/index.mdx
+++ b/src/pages/[platform]/build-a-backend/auth/use-aws-sdk/index.mdx
@@ -26,12 +26,6 @@ For advanced use cases where Amplify does not provide the functionality, you can
-
-
-**Note:** While the Amplify Library for Swift is production ready, please note that the underlying AWS SDK for Swift is currently in Developer Preview, and is not yet intended for production workloads. [Here is additional reading material](https://github.com/awslabs/aws-sdk-swift/blob/main/Sources/Core/AWSSDKForSwift/Documentation.docc/stability.md) on the stability of the SDK.
-
-
-
The escape hatch provides access to the underlying `AWSCognitoIdentityProvider` instance. Import the necessary types:
```swift
diff --git a/src/pages/[platform]/build-a-backend/storage/use-aws-sdk/index.mdx b/src/pages/[platform]/build-a-backend/storage/use-aws-sdk/index.mdx
index c13a5205a1d..e0c77913d6e 100644
--- a/src/pages/[platform]/build-a-backend/storage/use-aws-sdk/index.mdx
+++ b/src/pages/[platform]/build-a-backend/storage/use-aws-sdk/index.mdx
@@ -56,12 +56,6 @@ val client = plugin.escapeHatch
-
-
-**Note:** While the Amplify Library for Swift is production ready, please note that the underlying AWS SDK for Swift is currently in Developer Preview, and is not yet intended for production workloads. [Here is additional reading material](https://github.com/awslabs/aws-sdk-swift/blob/main/Sources/Core/AWSSDKForSwift/Documentation.docc/stability.md) on the stability of the SDK
-
-
-
Add the following import:
```swift