Skip to content

Commit 4a9b629

Browse files
authored
Edit of How Amplify Gen 2 works (#6534)
1 parent 3111f1c commit 4a9b629

File tree

1 file changed

+3
-3
lines changed
  • src/pages/gen2/how-amplify-works/concepts

1 file changed

+3
-3
lines changed

src/pages/gen2/how-amplify-works/concepts/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ All branches can be managed in the new Amplify console. The Gen-2 Amplify consol
4949

5050
### Data
5151

52-
The `@aws-amplify/backend` library offers a TypeScript-first `Data` library for setting up fully-typed real-time APIs (powered by AWS AppSync GraphQL APIs) and NoSQL databases (powered by Amazon DynamoDB tables). After you generate an Amplify backend, you will have an `amplify/data/resource.ts` file, which will contain your app's data schema. The `defineData` function turns the schema into a fully functioning data backend with all the boilerplate handled automatically.
52+
The `@aws-amplify/backend` library offers a TypeScript-first `Data` library for setting up fully typed real-time APIs (powered by AWS AppSync GraphQL APIs) and NoSQL databases (powered by Amazon DynamoDB tables). After you generate an Amplify backend, you will have an `amplify/data/resource.ts` file, which will contain your app's data schema. The `defineData` function turns the schema into a fully functioning data backend with all the boilerplate handled automatically.
5353

5454
<Callout>
5555
The schema-based approach is an evolution of the Amplify GraphQL API in Gen 1.
@@ -99,7 +99,7 @@ Auth works similarly to data. You can configure the authentication settings you
9999
export const auth = defineAuth({
100100
loginWith: {
101101
email: {
102-
verificationEmailSubject: 'Welcome 👋 verify your email!'
102+
verificationEmailSubject: 'Welcome 👋 Verify your email!'
103103
}
104104
}
105105
});
@@ -134,7 +134,7 @@ Amplify makes it easy to quickly build web app user interfaces using the UI comp
134134

135135
### Add any AWS resource
136136

137-
Gen 2 is layered on top of [AWS Cloud Development Kit (CDK)](https://docs.aws.amazon.com/cdk/api/v2/)—the Data and Auth capabilities in `@aws-amplify/backend` wrap L3 AWS CDK constructs. As a result, extending the Amplify generated resources does not require any special configuration (for example, Gen 1 requires `amplify add custom` to create a new sub-project with its own dependency tree). The following example adds Amazon Location Services by adding a file: `amplify/custom/maps/resource.ts`.
137+
Gen 2 is layered on top of [AWS Cloud Development Kit (CDK)](https://docs.aws.amazon.com/cdk/api/v2/)—the Data and Auth capabilities in `@aws-amplify/backend` wrap L3 AWS CDK constructs. As a result, extending the resources generated by Amplify does not require any special configuration (for example, Gen 1 requires `amplify add custom` to create a new sub-project with its own dependency tree). The following example adds Amazon Location Services by adding a file: `amplify/custom/maps/resource.ts`.
138138

139139
```ts
140140
import { CfnOutput, Stack, StackProps } from 'aws-cdk-lib';

0 commit comments

Comments
 (0)