From 643514674cdb3e271bef7cfdc40089b9cb2fe06c Mon Sep 17 00:00:00 2001 From: Harshita Daddala Date: Fri, 7 Jun 2024 10:28:21 -0400 Subject: [PATCH 1/6] add page for using libraries without Amplify backend --- src/directory/directory.mjs | 3 ++ .../start/libraries-standalone/index.mdx | 43 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 src/pages/[platform]/start/libraries-standalone/index.mdx diff --git a/src/directory/directory.mjs b/src/directory/directory.mjs index a69390e18e9..737da7ca1f7 100644 --- a/src/directory/directory.mjs +++ b/src/directory/directory.mjs @@ -38,6 +38,9 @@ export const directory = { { path: 'src/pages/[platform]/start/manual-installation/index.mdx' }, + { + path: 'src/pages/[platform]/start/libraries-standalone/index.mdx' + }, { path: 'src/pages/[platform]/start/kotlin-coroutines/index.mdx' }, diff --git a/src/pages/[platform]/start/libraries-standalone/index.mdx b/src/pages/[platform]/start/libraries-standalone/index.mdx new file mode 100644 index 00000000000..d255639044b --- /dev/null +++ b/src/pages/[platform]/start/libraries-standalone/index.mdx @@ -0,0 +1,43 @@ +import { getCustomStaticPath } from '@/utils/getCustomStaticPath'; +import { Card } from '@aws-amplify/ui-react'; + +export const meta = { + title: 'Connect to AWS resources', + description: 'You can use Amplify client libraries to connect directly to your AWS resources without having to set up an Amplify backend.', + platforms: [ + 'android', + 'angular', + 'flutter', + 'javascript', + 'nextjs', + 'react', + 'react-native', + 'swift', + 'vue' + ] +}; + +export const getStaticPaths = async () => { + return getCustomStaticPath(meta.platforms); +}; + +export function getStaticProps(context) { + return { + props: { + platform: context.params.platform, + meta + } + }; +} + +Amplify client libraries provide you with the flexibility to directly connect your application to AWS resources, regardless of whether you choose to set up an Amplify backend environment or not. You can take advantage of the Amplify libraries while maintaining control over your AWS resources. + +If you prefer not to use the Amplify backend, you can still benefit from the Amplify libraries by following the instructions provided + + + +[Connect to Cognito](/[platform]/build-a-backend/auth/use-existing-cognito-resources/) + +Connect to Cognito resources using Amplify APIs for Auth + + From 2adfd4fbe6b92f15b49405a028c56c3137e553a2 Mon Sep 17 00:00:00 2001 From: Harshita Daddala Date: Fri, 7 Jun 2024 12:07:17 -0400 Subject: [PATCH 2/6] Update src/pages/[platform]/start/libraries-standalone/index.mdx Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com> --- src/pages/[platform]/start/libraries-standalone/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/start/libraries-standalone/index.mdx b/src/pages/[platform]/start/libraries-standalone/index.mdx index d255639044b..138aadb706b 100644 --- a/src/pages/[platform]/start/libraries-standalone/index.mdx +++ b/src/pages/[platform]/start/libraries-standalone/index.mdx @@ -30,7 +30,7 @@ export function getStaticProps(context) { }; } -Amplify client libraries provide you with the flexibility to directly connect your application to AWS resources, regardless of whether you choose to set up an Amplify backend environment or not. You can take advantage of the Amplify libraries while maintaining control over your AWS resources. +Amplify client libraries provide you with the flexibility to directly connect your application to AWS resources, regardless of whether you choose to set up an Amplify backend environment or manually configure individual AWS services, such as AWS AppSync, Amazon Cognito, Amazon S3, and more. You can take advantage of the Amplify libraries while self-managing those resources outside of an Amplify backend. If you prefer not to use the Amplify backend, you can still benefit from the Amplify libraries by following the instructions provided From 6cbf3691505fb8565277e1e9b1b1cfd4af9528a1 Mon Sep 17 00:00:00 2001 From: Harshita Daddala Date: Fri, 7 Jun 2024 14:58:07 -0400 Subject: [PATCH 3/6] rename page --- src/directory/directory.mjs | 2 +- .../index.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/pages/[platform]/start/{libraries-standalone => connect-existing-aws-resources}/index.mdx (96%) diff --git a/src/directory/directory.mjs b/src/directory/directory.mjs index 737da7ca1f7..fd8cc2af5b8 100644 --- a/src/directory/directory.mjs +++ b/src/directory/directory.mjs @@ -39,7 +39,7 @@ export const directory = { path: 'src/pages/[platform]/start/manual-installation/index.mdx' }, { - path: 'src/pages/[platform]/start/libraries-standalone/index.mdx' + path: 'src/pages/[platform]/start/connect-existing-aws-resources/index.mdx' }, { path: 'src/pages/[platform]/start/kotlin-coroutines/index.mdx' diff --git a/src/pages/[platform]/start/libraries-standalone/index.mdx b/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx similarity index 96% rename from src/pages/[platform]/start/libraries-standalone/index.mdx rename to src/pages/[platform]/start/connect-existing-aws-resources/index.mdx index d255639044b..18f421c6e6d 100644 --- a/src/pages/[platform]/start/libraries-standalone/index.mdx +++ b/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx @@ -2,7 +2,7 @@ import { getCustomStaticPath } from '@/utils/getCustomStaticPath'; import { Card } from '@aws-amplify/ui-react'; export const meta = { - title: 'Connect to AWS resources', + title: 'Connect to existing AWS resources', description: 'You can use Amplify client libraries to connect directly to your AWS resources without having to set up an Amplify backend.', platforms: [ 'android', From b3c698e92e6bea69db8537633d41df2a71a9d3ca Mon Sep 17 00:00:00 2001 From: Harshita Daddala Date: Mon, 10 Jun 2024 14:28:02 -0400 Subject: [PATCH 4/6] update intro --- .../[platform]/start/connect-existing-aws-resources/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx b/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx index ee0fd049c34..e96831a8843 100644 --- a/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx +++ b/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx @@ -30,7 +30,7 @@ export function getStaticProps(context) { }; } -Amplify client libraries provide you with the flexibility to directly connect your application to AWS resources, regardless of whether you choose to set up an Amplify backend environment or manually configure individual AWS services, such as AWS AppSync, Amazon Cognito, Amazon S3, and more. You can take advantage of the Amplify libraries while self-managing those resources outside of an Amplify backend. +Amplify client libraries provide you with the flexibility to directly connect your application to AWS resources, regardless of whether you choose to set up an Amplify backend environment or manually configure individual AWS services, such as AWS AppSync, Amazon Cognito, Amazon S3, and more. If you prefer not to use the Amplify backend, you can still benefit from the Amplify libraries by following the instructions provided From 5f0eb58daac404a4a2d564db4f889da2bffdd69c Mon Sep 17 00:00:00 2001 From: Harshita Daddala Date: Mon, 10 Jun 2024 14:57:44 -0400 Subject: [PATCH 5/6] Update src/pages/[platform]/start/connect-existing-aws-resources/index.mdx Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com> --- .../[platform]/start/connect-existing-aws-resources/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx b/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx index e96831a8843..a86287ea321 100644 --- a/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx +++ b/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx @@ -38,6 +38,6 @@ If you prefer not to use the Amplify backend, you can still benefit from the Amp [Connect to Cognito](/[platform]/build-a-backend/auth/use-existing-cognito-resources/) -Connect to Cognito resources using Amplify APIs for Auth +Connect to Cognito resources using Amplify Auth's client library From 8db328ede8976676d63c966c3002f09e342b2e6f Mon Sep 17 00:00:00 2001 From: Harshita Daddala Date: Mon, 10 Jun 2024 15:00:15 -0400 Subject: [PATCH 6/6] Update src/pages/[platform]/start/connect-existing-aws-resources/index.mdx Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com> --- .../[platform]/start/connect-existing-aws-resources/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx b/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx index a86287ea321..a4ee29b1ba5 100644 --- a/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx +++ b/src/pages/[platform]/start/connect-existing-aws-resources/index.mdx @@ -32,7 +32,7 @@ export function getStaticProps(context) { Amplify client libraries provide you with the flexibility to directly connect your application to AWS resources, regardless of whether you choose to set up an Amplify backend environment or manually configure individual AWS services, such as AWS AppSync, Amazon Cognito, Amazon S3, and more. -If you prefer not to use the Amplify backend, you can still benefit from the Amplify libraries by following the instructions provided +If you configured AWS resources outside of an Amplify backend, you can still use the Amplify libraries to connect to them by following the instructions provided: