Skip to content

Documentation-updates #5104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fragments/lib/auth/js/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import reactnative0 from '/src/fragments/lib/auth/js/getting-started-steps-basic

<Fragments fragments={{ 'react-native': reactnative0 }} />

In your app's entry point (i.e. **App.js**, **index.js**, or **main.js**), import and load the configuration file:
In your app's entry point (i.e. **App.js**, **index.js**, **_app.js**, or **main.js**), import and load the configuration file:

```javascript
import { Amplify, Auth } from 'aws-amplify';
Expand Down
6 changes: 2 additions & 4 deletions src/fragments/start/getting-started/next/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ To set up the project, you'll first create a new Next.js app with [Create Next A
From your projects directory, run the following commands:

```bash
npx create-next-app next-amplified
npx create-next-app@latest next-amplified
cd next-amplified
```

Expand Down Expand Up @@ -84,6 +84,4 @@ The first step to using Amplify in the client is to install the necessary depend
npm install aws-amplify @aws-amplify/ui-react
```

The `aws-amplify` package is the main library for working with Amplify in your apps. The `@aws-amplify/ui-react` package includes React-specific UI components you'll use as you build the app.

Now that your Next.js app is set up and Amplify is initialized, you're ready to add an API in the next step.
The `aws-amplify` package is the main library for working with Amplify in your apps. The `@aws-amplify/ui-react` package includes React-specific UI components that you can use to build your app UI. To learn more about Amplify UI visit our [documentation](https://ui.docs.amplify.aws/).
51 changes: 0 additions & 51 deletions src/fragments/start/getting-started/vanillajs/nextsteps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,54 +8,3 @@
- [Push Notification](/lib/push-notifications/getting-started)
- [PubSub](/lib/pubsub/getting-started)
- [AR/VR](/lib/xr/getting-started)

## Existing AWS Resources

If you want to use your existing AWS resources with your app you will need to **manually configure** your app with an `awsconfiguration.json` file in your code. For example, if you were using Amazon Cognito Identity, Cognito User Pools, AWS AppSync, or Amazon S3:

```json
{
"CredentialsProvider": {
"CognitoIdentity": {
"Default": {
"PoolId": "XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab",
"Region": "XX-XXXX-X"
}
}
},
"CognitoUserPool": {
"Default": {
"PoolId": "XX-XXXX-X_abcd1234",
"AppClientId": "XXXXXXXX",
"Region": "XX-XXXX-X"
}
},
"AppSync": {
"Default": {
"ApiUrl": "https://XXXXXX.appsync-api.XX-XXXX-X.amazonaws.com/graphql",
"Region": "XX-XXXX-X",
"AuthMode": "AMAZON_COGNITO_USER_POOLS"
}
},
"S3TransferUtility": {
"Default": {
"Bucket": "BUCKET_NAME",
"Region": "XX-XXXX-X"
}
}
}
```

In the configuration above, you would need to set the appropriate values such as `Region`, `Bucket`, etc.

## AWS SDK Interfaces

For working with other AWS services you can use service interface objects directly via the generated SDK clients.

<Callout>

To work with service interface objects, your Amazon Cognito users' [IAM role](https://docs.aws.amazon.com/cognito/latest/developerguide/iam-roles.html) must have the appropriate permissions to call the requested services.

</Callout>

You can call methods on any AWS Service interface object supported by the AWS Android SDK by passing your credentials from the AWSMobileClient to the service call constructor. See [SDK Setup Options](/sdk/configuration/setup-options) for more information.