Skip to content

Commit

Permalink
Merge main next release (#7144)
Browse files Browse the repository at this point in the history
* Minor edits to Vite + React quickstart (#6926)

* Updates to Vite + React quickstart

* Update src/fragments/gen2/quickstart/build-a-backend.mdx

Co-authored-by: Kevin Old <kevold@amazon.com>

* Update build-a-backend.mdx

* Update build-a-backend.mdx

* Update build-a-backend.mdx

---------

Co-authored-by: Kevin Old <kevold@amazon.com>

* fix: Fix incorrect auth import path in migration guide. (#6934)

* fix: Update incorrect `updateMFAPreference` parameter in JS v6 migration guide. (#6935)

* Amplify Android Release 2.14.11 (#6933)

* chore: refactor .layout-header into separate component (#6826)

* platform typed as optional

* refactor init

* remove commented code

* remove angry useEffect

* fix typing

* added layoutcontext so mobile menu closes on navigation

* move import

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* fix: Nesting of auth cli templates (#6932)

* fix: change config variable name (#6923)

* Guide to support Amplify v2 with AWS Android SDK (#6927)

* Update puppeteer (#6949)

* Update index.mdx (#6950)

* Update CODEOWNERS with correct PM alignment (#6951)

* fix(flutter, js): scope "connect existing cdk" guide to respective platform (#6947)

Co-authored-by: Tim Nguyen <54393192+timngyn@users.noreply.github.com>

* Revert "fix(flutter, js): scope "connect existing cdk" guide to respective pl…" (#6955)

This reverts commit 5998b22.

* chore: remove duplicated logic between Layout and LayoutHeader (#6954)

* chore: more layout refactoring

* remove unused prop, alphabetize props

* improve oauth docs (#6961)

* fixed gen 2 getting started guide (#6968)

* Update redirects for deleted hidden pages (#6944)

* Update manual installation to point to @beta tag (#6972)

* include usage for multi-page apps (#6964)

* include usage for multi-page apps

* improve multi-page app docs

* use Hub syntax

* update imports in examples

* chore: Clean up broken Amplify JS API reference links (#6976)

* chore: Clean up broken Amplify JS API reference links.

* Cleaned up language.

* Update build image instructions for Gen 2 (#6978)

* update build image settings for Gen 2

* remove callout and add fragment to vite guide

* chore: add unit test for YoutubeEmbed component (#6983)

* chore: add unit test for YoutubeEmbed component

* add code coverage stats

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit tests for Accordion component (#6981)

* chore: add unit tests for Accordion component

* issue with window properties

* fixed tracking test

* working on animation issue

* accordion tests

* fix testing errors

* added test for closing accordion

* add code coverage stats

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* Update index.mdx (#6986)

* Add env variables for algolia (#6957)

* Add algolia env vars to next.config

* Remove extra code string

* fix(data): update REST API docs to document correct error response type (#6989)

* fix(data): update React Native minimum iOS deployment target guidance; add build step to docs (#6970)

* fix(data): update React Native minimum iOS deployment target; add build step to docs

* address PR feedback

* remove deployment target guidance

* add React Native version deployment target callout

* fix unrecognized syntax

* replace callout with accordion

* move 'upgrading' callout

* Clarify behavior of forgetDevice() API regarding device tracking (#6985)

* Clarify behavior of forgetDevice() API regarding device tracking

This commit updates the documentation to clarify that using the forgetDevice() API results in the device being neither remembered nor tracked. Previously, the documentation suggested that forgotten devices might still be tracked, leading to confusion about the API's behavior. The revised wording aligns with the detailed description under the "Forgotten" section, ensuring consistency and eliminating ambiguity about how forgotten devices are handled.

* Clarify behavior of forgetDevice() API regarding device tracking

* Support for enum value listing (#6885)

* Support for enum value listing

* Update src/pages/gen2/build-a-backend/data/data-modeling/add-fields/index.mdx

* CDK updates v2 (#6990)

* Add padding to bottom of nav menu (#6991)

* Adding secondary index to Gen 2 (#6996)

* Adding secondary index docs

* fixed some formatting for custom query fields

* extend config to show addOuput (#6963)

* extend config

* modify wording

* modify example

* improve wording

* Update index.mdx (#6995)

* Update index.mdx

* add guest access support to docs

* chore: add unit tests for NextPrevious component (#7003)

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit tests for LinkCards and LinkCard components (#7006)

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit tests for GetStartedPopover component (#7005)

Co-authored-by: katiegoines <katiegoines@gmail.com>

* fix: [Storage] Configure Access (#6948)

Co-authored-by: Tim Nguyen <54393192+timngyn@users.noreply.github.com>

* fix(Swift): update data use policy info's tracking to false (#6938)

* fix(Swift): update data use policy info's tracking to false

* Update data-information.mdx

* chore: add callouts and troubleshooting guide for configuration (#6967)

* fix: resolve in-content broken links (#7011)

* re-platforming

* remove reference to mocking and testing for android & swift

* remove reference to mocking and testing for android & swift

* filtered out reference to optimistic ui for react native

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* update gen2 storage and function docs (#7009)

* update gen2 storage and function docs

* add resource access links and example

* revisions, update code snippet titles

* Update CODEOWNERS (#7014)

* updated steps for extending components in code (#6827)

Co-authored-by: Aditya Shahani <theadi@amazon.com>

* Custom business logic support as of March @beta (#7019)

* Enhanced custom business logic DX

* addressed tim's comments

* Added custom subscription configuration worfklow

* removed in-development areas

* added titles

* added links for deep dive material

* Update src/pages/gen2/build-a-backend/data/custom-business-logic/index.mdx

Co-authored-by: josef <josef.aidt@gmail.com>

* Update src/pages/gen2/build-a-backend/data/custom-business-logic/index.mdx

Co-authored-by: josef <josef.aidt@gmail.com>

* Update src/pages/gen2/build-a-backend/data/custom-business-logic/index.mdx

Co-authored-by: Kethan sai <ykethan@amazon.com>

* Update src/pages/gen2/build-a-backend/data/custom-business-logic/index.mdx

Co-authored-by: Kethan sai <ykethan@amazon.com>

* Update src/pages/gen2/build-a-backend/data/custom-business-logic/index.mdx

Co-authored-by: josef <josef.aidt@gmail.com>

* Update src/pages/gen2/build-a-backend/data/custom-business-logic/index.mdx

* added client method for clarity.

* Update src/pages/gen2/build-a-backend/data/custom-business-logic/index.mdx

Co-authored-by: Kethan sai <ykethan@amazon.com>

* Apply suggestions from code review

Co-authored-by: josef <josef.aidt@gmail.com>

---------

Co-authored-by: josef <josef.aidt@gmail.com>
Co-authored-by: Kethan sai <ykethan@amazon.com>

* add storage trigger docs (#7020)

* storage trigger docs

* Apply suggestions from code review

Co-authored-by: josef <josef.aidt@gmail.com>

* add storage access actions

---------

Co-authored-by: josef <josef.aidt@gmail.com>

* update link checker to wait for each call to complete before making t… (#6993)

* update link checker to wait for each call to complete before making the next and remove # from urls being checked

* update logging to show how many links found on each page

* Update tasks/link-checker.js

---------

Co-authored-by: Jacob Logan <lognjc@amazon.com>
Co-authored-by: katiegoines <katiegoines@gmail.com>
Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>

* custom examples (#6979)

* custom examples

* fix: broken link, missing / at start (#7026)

Co-authored-by: katiegoines <katiegoines@gmail.com>

* validate and fix code snippets in Data section (#6975)

* Update sandbox --dir-to-watch description (#7031)

* Update index.mdx (#7035)

* Fix link (#7028)

* add docs to auth resource access pattern (#7032)

* fix: type platform as optional in Breadcrumbs component & add unit tests (#6912)

* platform typed as optional

* chore: add unit tests for Breadcrumbs

* testing to include platform optional

* fix: type platform as optional

* add tests for override values

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* fix: proper variable naming conventions for storage (#7033)

fix:  proper variable naming conventions for storage

* remove explicit file extension from gen2 imports (#6946)

Co-authored-by: Tim Nguyen <54393192+timngyn@users.noreply.github.com>

* fix: Update diff code blocks to TypeScript with code highlights (#6905)

* add docs on granting defineFunction access to defineData (#7029)

* standardize Gen 2 wording (#7036)

* Update index.mdx (#6906)

* Modify_Amplify_resources (#7018)

* fix code snippets on read data page

* code snippet updates

* updated the code snippets

* updated code snippets.

* custom business page rollback

* Update maplibre links (#7040)

* chore: add unit tests for PlatformNavigator (#6980)

* chore: add unit tests for PlatformNavigator

* add code coverage

* simplify

* simplify

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* Update links to expo docs (#7044)

* Update links to expo docs

* Update src/pages/[platform]/prev/build-a-backend/auth/add-social-provider/index.mdx

Co-authored-by: josef <josef.aidt@gmail.com>

* Update src/pages/[platform]/prev/build-a-backend/auth/add-social-provider/index.mdx

Co-authored-by: josef <josef.aidt@gmail.com>

---------

Co-authored-by: josef <josef.aidt@gmail.com>

* chore: add unit tests for InternalLinkButton (#7000)

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add addtl unit test for Block component (#6982)

* chore: add addtl unit test for Block component

* add code coverage stats

* remove superfluous Block component

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit tests for TOC (#6984)

* chore: add unit tests for TOC

* add code coverage

* hardcode expected hash

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit tests for ExternalLink (#6915)

* chore: add unit tests for ExternalLink

* fixing tracking test

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit tests for ExternalLinkButton (#6914)

* chore: add unit tests for ExternalLinkButton

* Update ExternalLinkButton.test.tsx

triggering checks

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit tests for Footer component (#6999)

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit tests for MigrationAlert component (#7004)

* chore: add unit tests for MigrationAlert component

* chore: add unit tests for MigrationAlert component

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit test for Overview component (#7002)

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: upgrade docsearch/react to 3.6 (#7046)

* added utility type content (#7047)

* chore: add unit tests for PageLastUpdated (#7001)

Co-authored-by: katiegoines <katiegoines@gmail.com>

* chore: add unit tests for Commands and Columns (#6916)

* chore: add unit test for CLICommands

* chore: add unit test for Columns

* Update Command.test.tsx

triggering checks

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* Update resolution for follow-redirects (#7055)

* Update relative urls (#7048)

* Update relative urls

* Update url

* Updating link checker (#7052)

* Updating link checker to account for duplicate urls from different pages and link text

* Update slack formatting

* Remove console.log

* Add comments to function

* Remove extra console.logs()

* chore: update redirects list (#6969)

* update redirects

* updated redirects

---------

Co-authored-by: katiegoines <katiegoines@gmail.com>

* remove allowlist role names for appsync console access page (#7081)

* Add JavaScript resolver code sample to Gen 1 (#7087)

* fix(JS): Update v5 JS libraries installation guides. (#7090)

* fix(v5): update aws-amplify v5 dependency

* chore: remove extra '0' number from versions

* chore: remove vue2 block

* chore: update version reference

* Cbonif/field-level-auth-support-for-sql (#7091)

* chore(gen2-data): update .secondaryIndexes example to match the latest interface (#7095)

* update setup auth client example with correct props (#7106)

* update auth with correct props

* Change generated function env package name (#7096)

* Update typo in url for localhost (#7110)

* update next config to use a static build Id (#7102)

Co-authored-by: Jacob Logan <lognjc@amazon.com>

* chore: Add callout on Analytics buffer persistence in Amplify JS (#7115)

* chore: Add callout on Analytics buffer persistence in Amplify JS.

* PR feedback.

* Custom subscription docs to Gen 2 (#7120)

* Add playsInline to videos (#7125)

* autoSignIn position correction in v6 migration docs (#7059)

* fix(next-release/main): update home page h1 and code block font size (#7117) (#7126)

* update font sizes

* add text-size-adjust

* add webkit prefix, add comment

* update text-size-adjust fix

---------

Co-authored-by: Tim Nguyen <54393192+timngyn@users.noreply.github.com>

* remove parenthesis from "Amplify (Gen 2)" (#7113)

* change "NPM" to "npm" (#7112)

* remove explicit ".js" extension from gen2 resource imports (#7134)

* remove leading slash from storage access paths (#7116)

* remove unnecessary "Angular" mention in auth getting started (#7139)

Removed 'Angular' from the app description. It is not necessarily an angular app.

* Gen 2 Quickstart: Fix amplify console link (#7141)

* fix amplify console link

* fix text from AWS Console to Amplify Console

* updated alt text for Amplify console

* Update src/fragments/gen2/quickstart/deploy-and-host.mdx

Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>

* Update src/pages/gen2/deploy-and-host/fullstack-branching/branch-deployments/index.mdx

Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>

---------

Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>

* Add Favicon and apple-touch icons to root (#7137)

* add 96x96 favicons

* add favicon and apple-touch to root

* updated icons

---------

Co-authored-by: Jacob Logan <lognjc@amazon.com>

* Remove accidental merge for gen2 pages

---------

Co-authored-by: Jim Eagan <84857865+hibler13@users.noreply.github.com>
Co-authored-by: Kevin Old <kevold@amazon.com>
Co-authored-by: Jim Blanchard <jim.l.blanchard@gmail.com>
Co-authored-by: Ankit Shah <22114629+ankpshah@users.noreply.github.com>
Co-authored-by: Katie Goines <30757403+katiegoines@users.noreply.github.com>
Co-authored-by: katiegoines <katiegoines@gmail.com>
Co-authored-by: Dan Kiuna <dankiuna@gmail.com>
Co-authored-by: Kihara, Takuya <gray@tacck.net>
Co-authored-by: Tyler Roach <tjroach@amazon.com>
Co-authored-by: Rene Brandel <4989523+renebrandel@users.noreply.github.com>
Co-authored-by: Elijah Quartey <Equartey@users.noreply.github.com>
Co-authored-by: Heather Buchel <hbuchel@gmail.com>
Co-authored-by: John Corser <johnpc@umich.edu>
Co-authored-by: Heather Pundt <119376175+heatheramz@users.noreply.github.com>
Co-authored-by: Nikhil Swaminathan <2429410+swaminator@users.noreply.github.com>
Co-authored-by: Jay Raval <jay.ambrish.raval@gmail.com>
Co-authored-by: David McAfee <mcafd@amazon.com>
Co-authored-by: Kethan sai <ykethan@amazon.com>
Co-authored-by: Michael Law <1365977+lawmicha@users.noreply.github.com>
Co-authored-by: erinleigh90 <106691284+erinleigh90@users.noreply.github.com>
Co-authored-by: Edward Foyle <foyleef@amazon.com>
Co-authored-by: Adi <34354177+the1adi@users.noreply.github.com>
Co-authored-by: Aditya Shahani <theadi@amazon.com>
Co-authored-by: josef <josef.aidt@gmail.com>
Co-authored-by: jacoblogan <jacob.maiola.logan@gmail.com>
Co-authored-by: Jacob Logan <lognjc@amazon.com>
Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com>
Co-authored-by: Chris Bonifacio <christopher.bonifacio@gmail.com>
Co-authored-by: Roshane Pascual <rtpascual@users.noreply.github.com>
Co-authored-by: Charles Shin <shin.charles11@gmail.com>
Co-authored-by: Ujjwol Shrestha <usewall05@gmail.com>
Co-authored-by: Gen Tamura <gen.tamura84@gmail.com>
Co-authored-by: dwittle <72715628+dwittle@users.noreply.github.com>
Co-authored-by: Anil Maktala <maktala.anil@gmail.com>
Co-authored-by: israx <70438514+israx@users.noreply.github.com>
Co-authored-by: Hui Zhao <10602282+HuiSF@users.noreply.github.com>
Co-authored-by: Nairi Areg <51801223+NairiAreg@users.noreply.github.com>
Co-authored-by: spivakov83 <spivakov83@gmail.com>
Co-authored-by: Harshita Daddala <harshita.d11@gmail.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 36 changed files with 286 additions and 96 deletions.
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/icon/favicon-purple-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/icon/favicon-teal-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon.ico
Binary file not shown.
4 changes: 2 additions & 2 deletions src/fragments/cli-install-block.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<BlockSwitcher>

<Block name="NPM">
<Block name="npm">

```bash
npm install -g @aws-amplify/cli
Expand Down Expand Up @@ -30,4 +30,4 @@ curl -sL https://aws-amplify.github.io/amplify-cli/install-win -o install.cmd &&

[Resolve `EACCES` permissions when installing packages globally](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally) with npm

</Callout>
</Callout>
4 changes: 2 additions & 2 deletions src/fragments/gen2/quickstart/deploy-and-host.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ If you already have your project remotely hosted in a Git repository, you can sk

### Connect branch in the Amplify console

1. To get started with Gen 2, log in to the [AWS console](https://console.aws.amazon.com/console/home?#amplify) and navigate to your preferred AWS Region. (The Amplify console is available in [19 AWS Regions](https://docs.aws.amazon.com/general/latest/gr/amplify.html#amplify_region)).
1. To get started with Gen 2, log in to the [Amplify console](https://console.aws.amazon.com/amplify/home) and navigate to your preferred AWS Region. (The Amplify console is available in [19 AWS Regions](https://docs.aws.amazon.com/general/latest/gr/amplify.html#amplify_region)).
2. From the **Public Preview** banner, choose **Try Amplify Gen 2**.

![Amplify Gen 2 console showing the "Public Preview" banner with "Try Amplify Gen 2" button](/images/gen2/getting-started/console1.png)
![Amplify console showing the "Public Preview" banner with "Try Amplify Gen 2" button](/images/gen2/getting-started/console1.png)

3. In the Git provider screen, choose **Option 2: Start with an existing app**. Connect the repository you just deployed and pick a branch.

Expand Down
4 changes: 2 additions & 2 deletions src/fragments/guides/hosting/gatsby.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you haven't already, install the [Gatsby CLI](https://www.gatsbyjs.org/tutori
# Using YARN
yarn global add gatsby-cli

# Using NPM
# Using npm
npm install --global gatsby-cli
```

Expand Down Expand Up @@ -75,4 +75,4 @@ To set up rewrites, follow the guide on AWS Amplify Hosting's [documentation](ht

<Callout>
Make sure you list the file extensions used in your application (i.e. .manifest, .webp, etc.) in the regular expression.
</Callout>
</Callout>
4 changes: 2 additions & 2 deletions src/fragments/guides/hosting/gridsome.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you haven't already, install the [Gridsome CLI](https://gridsome.org/docs/):
# Using YARN
yarn global add @gridsome/cli

# Using NPM
# Using npm
npm install --global @gridsome/cli
```

Expand Down Expand Up @@ -75,4 +75,4 @@ To set up rewrites, follow the guide on AWS Amplify Hosting's [documentation](ht

<Callout>
Make sure you list the file extensions used in your application (i.e. .manifest, .webp, etc.) in the regular expression.
</Callout>
</Callout>
2 changes: 1 addition & 1 deletion src/fragments/guides/hosting/nuxt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Create a new Nuxt site:
# Using YARN
yarn create nuxt-app amplify-nuxt

# Using NPM
# Using npm
npx create-nuxt-app amplify-nuxt
```

Expand Down
2 changes: 1 addition & 1 deletion src/fragments/guides/hosting/vite.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Create a new Vite site:
# Using YARN
yarn create vite

# Using NPM
# Using npm
npm create vite@latest
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
When using `npx amplify-app`, an NPM script named `amplify-modelgen` should be added to your `package.json`. You can **generate model code** with the following command.
When using `npx amplify-app`, an npm script named `amplify-modelgen` should be added to your `package.json`. You can **generate model code** with the following command.

```console
npm run amplify-modelgen
Expand Down
4 changes: 2 additions & 2 deletions src/fragments/lib-v1/start/getting-started/vue/setup.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Use the Vue Vite powered `create-app` to bootstrap a new Vue 3 app (selecting the defaults will work for this project):

<Block name="NPM">
<Block name="npm">

```bash
npm init vue@3
Expand Down Expand Up @@ -99,7 +99,7 @@ When you initialize a new Amplify project, a few things happen:
The first step to using Amplify in the client is to install the necessary dependencies:


<Block name="NPM">
<Block name="npm">

```
npm install aws-amplify@next
Expand Down
8 changes: 4 additions & 4 deletions src/fragments/lib-v1/troubleshooting/js/upgrading.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ yarn list --pattern amplify | \
```

```sh
# Using NPM
# Using npm
npm ls -all 2>/dev/null | \
grep -o -e '@\?aws-amplify[^ ]*' | \
sort | uniq | \
Expand All @@ -47,7 +47,7 @@ yarn list --pattern amplify |
```

```powershell
# Using NPM
# Using npm
npm ls -all 2>$null |
Select-String -Pattern '(@?aws\-amplify[^@]*).*(?<!deduped)$' |
%{$_.Matches.Groups[1].value} | Group-Object |
Expand Down Expand Up @@ -75,7 +75,7 @@ yarn upgrade --latest --pattern aws-amplify
```

```sh
# Using NPM
# Using npm
npx npm-check-updates -i '/@?aws-amplify/' && npm update
```

Expand All @@ -89,7 +89,7 @@ yarn upgrade --latest --pattern aws-amplify
```

```powershell
# Using NPM
# Using npm
npx npm-check-updates -i '/@?aws-amplify/' && npm update
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
When using `npx amplify-app`, an NPM script named `amplify-modelgen` should be added to your `package.json`. You can **generate model code** with the following command.
When using `npx amplify-app`, an npm script named `amplify-modelgen` should be added to your `package.json`. You can **generate model code** with the following command.

```console
npm run amplify-modelgen
Expand Down
4 changes: 2 additions & 2 deletions src/fragments/start/getting-started/vue/setup.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Use the Vue Vite powered `create-app` to bootstrap a new Vue 3 app (selecting the defaults will work for this project):

<Block name="NPM">
<Block name="npm">

```bash
npm init vue@3
Expand Down Expand Up @@ -101,7 +101,7 @@ When you initialize a new Amplify project, a few things happen:

The first step to using Amplify in the client is to install the necessary dependencies:

<Block name="NPM">
<Block name="npm">

```
npm install aws-amplify @aws-amplify/ui-vue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ Using password policy in your `amplify/auth/resource.ts` file, you can customize
```ts title="amplify/backend.ts"
// amplify/backend.ts
import { defineBackend } from '@aws-amplify/backend';
import { auth } from './auth/resource.js';
import { data } from './data/resource.js';
import { auth } from './auth/resource';
import { data } from './data/resource';

const backend = defineBackend({
auth,
Expand Down Expand Up @@ -357,8 +357,8 @@ Guest access is enabled by default for your Amplify Auth resources. You can over
```ts title="amplify/backend.ts"
// amplify/backend.ts
import { defineBackend } from '@aws-amplify/backend';
import { auth } from './auth/resource.js';
import { data } from './data/resource.js';
import { auth } from './auth/resource';
import { data } from './data/resource';

const backend = defineBackend({
auth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,8 @@ You can configure device tracking with `deviceTracking` construct.

```ts title="amplify/backend.ts"
import { defineBackend } from '@aws-amplify/backend';
import { auth } from './auth/resource.js';
import { data } from './data/resource.js';
import { auth } from './auth/resource';
import { data } from './data/resource';

const backend = defineBackend({
auth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ You can override the password policy by using the L1 `cfnUserPool` construct and
```ts title="amplify/backend.ts"
// amplify/backend.ts
import { defineBackend } from '@aws-amplify/backend';
import { auth } from './auth/resource.js';
import { auth } from './auth/resource';
const backend = defineBackend({
auth,
});
Expand Down Expand Up @@ -80,8 +80,8 @@ The following code will allow you to add custom attributes using the [Userpool s
```ts title="amplify/backend.ts"
// amplify/backend.ts
import { defineBackend } from '@aws-amplify/backend';
import { auth } from './auth/resource.js';
import { data } from './data/resource.js';
import { auth } from './auth/resource';
import { data } from './data/resource';

const backend = defineBackend({
auth,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In your Amplify app, you can access every underlying resource using CDK ["L2"](h

```ts
import { defineBackend } from '@aws-amplify/backend';
import { data } from './data/resource.js';
import { data } from './data/resource';

const backend = defineBackend({
data
Expand All @@ -55,7 +55,7 @@ Apply all the customizations on `backend.data.resources.graphqlApi` or `backend.

```ts
import { defineBackend } from '@aws-amplify/backend';
import { data } from './data/resource.js';
import { data } from './data/resource';

const backend = defineBackend({
data
Expand All @@ -72,7 +72,7 @@ Pass in the model type name into `backend.data.resources.amplifyDynamoDbTables["

```ts
import { defineBackend } from '@aws-amplify/backend';
import { data } from './data/resource.js';
import { data } from './data/resource';

const backend = defineBackend({
data
Expand All @@ -92,7 +92,7 @@ Set the [DynamoDB billing mode](https://docs.aws.amazon.com/AWSCloudFormation/la

```ts
import { defineBackend } from '@aws-amplify/backend';
import { data } from './data/resource.js';
import { data } from './data/resource';
import { BillingMode } from "aws-cdk-lib/aws-dynamodb";

const backend = defineBackend({
Expand All @@ -109,7 +109,7 @@ Override the default [ProvisionedThroughput](https://docs.aws.amazon.com/AWSClou

```ts
import { defineBackend } from '@aws-amplify/backend';
import { data } from './data/resource.js';
import { data } from './data/resource';

const backend = defineBackend({
data
Expand All @@ -129,7 +129,7 @@ Enable/disable [DynamoDB point-in-time recovery](https://docs.aws.amazon.com/AWS

```ts
import { defineBackend } from '@aws-amplify/backend';
import { data } from './data/resource.js';
import { data } from './data/resource';

const backend = defineBackend({
data
Expand Down
4 changes: 2 additions & 2 deletions src/pages/[platform]/build-a-backend/functions/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ export const handler = async (event) => {

When you grant a function access to another resource in your Amplify backend ([such as granting access to storage](/[platform]/build-a-backend/storage/#resource-access)), that will configure environment variables for that function to make SDK calls to the AWS services it has access to. Those environment variables are typed and available as part of the `env` object.

Example `defineStorage` that grants myDemoFunction access to files in `/foo/*`.
Example `defineStorage` that grants myDemoFunction access to files in `foo/*`.

```ts title="amplify/storage/resource.ts"
import { myDemoFunction } from '../functions/my-demo-function/resource';

export const storage = defineStorage({
name: 'myProjectFiles',
access: (allow) => ({
'/foo/*': [allow.resource(demoFunction).to(['read', 'write', 'delete'])]
'foo/*': [allow.resource(demoFunction).to(['read', 'write', 'delete'])]
})
});
```
Expand Down
Loading

0 comments on commit 86df221

Please sign in to comment.