Skip to content

Commit

Permalink
Merge branch 'main' into console-error-script
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblogan authored Nov 10, 2023
2 parents 19c984e + ebacdcc commit b26f250
Show file tree
Hide file tree
Showing 10 changed files with 464 additions and 12 deletions.
Binary file added public/images/gen-ai/build-settings.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/images/gen-ai/claude.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/images/gen-ai/login-form.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/constants/versions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
ANDROID_VERSION: "2.14.2",
ANDROID_VERSION: "2.14.4",
ANDROID_DEVPREVIEW: "1.36.5-dev-preview.0",
ANDROID_V1_VERSION: "1.38.8",
ANDROID_V1_GEO_VERSION: "1.0.1",
Expand Down
11 changes: 8 additions & 3 deletions src/directory/directory.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ export const directory = {
filters: ['android', 'flutter', 'ios', 'js', 'react-native']
},
{
title: 'Connect your app code to the API',
route: '/lib/graphqlapi/connect',
filters: ['js']
title: 'Connect your app code to the API',
route: '/lib/graphqlapi/connect',
filters: ['js']
},
{
title: 'Concepts',
Expand Down Expand Up @@ -2680,6 +2680,11 @@ export const directory = {
'api-rest': {
title: 'API (REST)',
items: [
{
title: 'Generative AI',
route: '/guides/api-rest/gen-ai',
filters: ['js']
},
{
title: 'NodeJS API',
route: '/guides/api-rest/node-api',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ Follow the instructions [here](/lib/auth/social/q/platform/flutter/#platform-set
- Automatic session reporting behavior has been aligned in v1. For all platforms, backgrounding and foregrounding the app will stop and start a new session. Previously on iOS, the session would pause and then resume.
- You can now save to the `UserAttributes` field of a Pinpoint Endpoint by passing an `AWSPinpointUserProfile` to `identifyUser`.
- Analytics cached event data is now stored differently. Existing cached analytics events will not be migrated.
- There are now typed `AnalyticsException`s for specific exception cases. See [the documentation on Pub](https://pub.dev/documentation/amplify_analytics_pinpoint/latest/amplify_analytics_pinpoint/amplify_analytics_pinpoint-library.html) for a full list of exceptions.
- There are now typed `AnalyticsException`s for specific exception cases.

## API

Expand Down
8 changes: 4 additions & 4 deletions src/pages/console/authz/permissions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ You are going to define set up role-based authorization rules for each of the mo
2. In the **Model** pane on the right, expand the **Owners** window.
3. Choose **Create**, **Read**, **Update** and **Delete** to specify that *Owners* have create, read, update, and delete access. The settings look as follows.

![](/images/console/10_ownersaccess.png)
![Owners Access Console View](/images/console/10_ownersaccess.png)

## To set a private authorization rule
1. Using the *Books* data model that you created in the [Create a data model example](/console/data/data-model#Create-a-data-model-example), set the authorization mode to **Cognito user pool**.
2. In the **Model** pane on the right, expand the **Any signed-in users** window.
3. Choose **Create**, **Read**, and **Update** to specify that any signed-in authenticated user has create, read, and update, access.

![](/images/console/11_privatesaccess.png)
![Private Access Console View](/images/console/11_privatesaccess.png)


## To set a group authorization rule
Expand All @@ -35,7 +35,7 @@ You are going to define set up role-based authorization rules for each of the mo

4. Choose **Create**, **Read**, **Update** and **Delete** to specify that signed in users in the *Editors* group have create, read, update, and delete access.

![](/images/console/9_editorgroupaccess.png)
![Editor Access Console View](/images/console/9_editorgroupaccess.png)

## To set a public authorization rule

Expand All @@ -44,4 +44,4 @@ If you want your data model to be publicly accessible, switch to API_KEY or IAM
1. Using the *Books* data model that you created in the [Create a data model example](/console/data/data-model#Create-a-data-model-example), set the authorization mode to **API Key**.
2. In the **Model** pane on the right, expand the **Anyone** window. Choose **Read** to specify that any signed in user has read access to the data in the *Book* model.

![](/images/console/7_publicauthreadonly.png)
![Public Auth Readonly Access Console View](/images/console/7_publicauthreadonly.png)
12 changes: 12 additions & 0 deletions src/pages/guides/api-rest/gen-ai/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import ChooseFilterPage from '@/components/ChooseFilterPage';

import { INTEGRATION_FILTER_OPTIONS } from '@/utils/filter-data.ts';

<ChooseFilterPage
directoryPath="/ChooseFilterPage"
address="/guides/api-rest/gen-ai"
filterKind="platform"
filters={['js']}
currentFilter="all"
message={'Choose a platform:'}
/>
Loading

0 comments on commit b26f250

Please sign in to comment.