Skip to content

Commit

Permalink
feat(client-appsync): Private API support for AWS AppSync. With Priva…
Browse files Browse the repository at this point in the history
…te APIs, you can now create GraphQL APIs that can only be accessed from your Amazon Virtual Private Cloud ("VPC").
  • Loading branch information
awstools committed May 3, 2023
1 parent 653fc59 commit c28aac2
Show file tree
Hide file tree
Showing 59 changed files with 1,550 additions and 1,733 deletions.
4 changes: 2 additions & 2 deletions clients/client-appsync/README.md
Expand Up @@ -9,8 +9,8 @@

AWS SDK for JavaScript AppSync Client for Node.js, Browser and React Native.

<p>AppSync provides API actions for creating and interacting with data sources using GraphQL
from your application.</p>
<p>AppSync provides API actions for creating and interacting with data
sources using GraphQL from your application.</p>

## Installing

Expand Down
4 changes: 2 additions & 2 deletions clients/client-appsync/src/AppSync.ts
Expand Up @@ -973,8 +973,8 @@ export interface AppSync {

/**
* @public
* <p>AppSync provides API actions for creating and interacting with data sources using GraphQL
* from your application.</p>
* <p>AppSync provides API actions for creating and interacting with data
* sources using GraphQL from your application.</p>
*/
export class AppSync extends AppSyncClient implements AppSync {}
createAggregatedClient(commands, AppSync);
4 changes: 2 additions & 2 deletions clients/client-appsync/src/AppSyncClient.ts
Expand Up @@ -402,8 +402,8 @@ export interface AppSyncClientResolvedConfig extends AppSyncClientResolvedConfig

/**
* @public
* <p>AppSync provides API actions for creating and interacting with data sources using GraphQL
* from your application.</p>
* <p>AppSync provides API actions for creating and interacting with data
* sources using GraphQL from your application.</p>
*/
export class AppSyncClient extends __Client<
__HttpHandlerOptions,
Expand Down
7 changes: 4 additions & 3 deletions clients/client-appsync/src/commands/AssociateApiCommand.ts
Expand Up @@ -66,14 +66,15 @@ export interface AssociateApiCommandOutput extends AssociateApiResponse, __Metad
* <p>You don't have access to perform this operation on this resource.</p>
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link AppSyncServiceException}
* <p>Base exception class for all service exceptions from AppSync service.</p>
Expand Down
11 changes: 6 additions & 5 deletions clients/client-appsync/src/commands/CreateApiCacheCommand.ts
Expand Up @@ -69,18 +69,19 @@ export interface CreateApiCacheCommandOutput extends CreateApiCacheResponse, __M
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Another modification is in progress at this time and it must complete before you can make your
* change.</p>
* <p>Another modification is in progress at this time and it must complete before you can
* make your change.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You aren't authorized to perform this operation.</p>
Expand Down
7 changes: 4 additions & 3 deletions clients/client-appsync/src/commands/CreateApiKeyCommand.ts
Expand Up @@ -71,8 +71,8 @@ export interface CreateApiKeyCommandOutput extends CreateApiKeyResponse, __Metad
* <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>).</p>
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
Expand All @@ -81,7 +81,8 @@ export interface CreateApiKeyCommandOutput extends CreateApiKeyResponse, __Metad
* <p>The request exceeded a limit. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You aren't authorized to perform this operation.</p>
Expand Down
11 changes: 6 additions & 5 deletions clients/client-appsync/src/commands/CreateDataSourceCommand.ts
Expand Up @@ -157,18 +157,19 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Another modification is in progress at this time and it must complete before you can make your
* change.</p>
* <p>Another modification is in progress at this time and it must complete before you can
* make your change.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You aren't authorized to perform this operation.</p>
Expand Down
Expand Up @@ -68,8 +68,8 @@ export interface CreateDomainNameCommandOutput extends CreateDomainNameResponse,
* <p>You don't have access to perform this operation on this resource.</p>
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
Expand Down
10 changes: 6 additions & 4 deletions clients/client-appsync/src/commands/CreateFunctionCommand.ts
Expand Up @@ -33,7 +33,8 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResponse, __M
/**
* @public
* <p>Creates a <code>Function</code> object.</p>
* <p>A function is a reusable entity. You can use multiple functions to compose the resolver logic.</p>
* <p>A function is a reusable entity. You can use multiple functions to compose the resolver
* logic.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -99,14 +100,15 @@ export interface CreateFunctionCommandOutput extends CreateFunctionResponse, __M
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Another modification is in progress at this time and it must complete before you can make your
* change.</p>
* <p>Another modification is in progress at this time and it must complete before you can
* make your change.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You aren't authorized to perform this operation.</p>
Expand Down
13 changes: 9 additions & 4 deletions clients/client-appsync/src/commands/CreateGraphqlApiCommand.ts
Expand Up @@ -89,6 +89,7 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse,
* authorizerUri: "STRING_VALUE", // required
* identityValidationExpression: "STRING_VALUE",
* },
* visibility: "GLOBAL" || "PRIVATE",
* };
* const command = new CreateGraphqlApiCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -149,6 +150,10 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse,
* // authorizerUri: "STRING_VALUE", // required
* // identityValidationExpression: "STRING_VALUE",
* // },
* // dns: {
* // "<keys>": "STRING_VALUE",
* // },
* // visibility: "GLOBAL" || "PRIVATE",
* // },
* // };
*
Expand All @@ -164,12 +169,12 @@ export interface CreateGraphqlApiCommandOutput extends CreateGraphqlApiResponse,
* <p>The GraphQL API exceeded a limit. Try your request again.</p>
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Another modification is in progress at this time and it must complete before you can make your
* change.</p>
* <p>Another modification is in progress at this time and it must complete before you can
* make your change.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
Expand Down
15 changes: 8 additions & 7 deletions clients/client-appsync/src/commands/CreateResolverCommand.ts
Expand Up @@ -33,8 +33,8 @@ export interface CreateResolverCommandOutput extends CreateResolverResponse, __M
/**
* @public
* <p>Creates a <code>Resolver</code> object.</p>
* <p>A resolver converts incoming requests into a format that a data source can understand, and converts the data
* source's responses into GraphQL.</p>
* <p>A resolver converts incoming requests into a format that a data source can understand,
* and converts the data source's responses into GraphQL.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down Expand Up @@ -121,18 +121,19 @@ export interface CreateResolverCommandOutput extends CreateResolverResponse, __M
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Another modification is in progress at this time and it must complete before you can make your
* change.</p>
* <p>Another modification is in progress at this time and it must complete before you can
* make your change.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You aren't authorized to perform this operation.</p>
Expand Down
11 changes: 6 additions & 5 deletions clients/client-appsync/src/commands/CreateTypeCommand.ts
Expand Up @@ -65,18 +65,19 @@ export interface CreateTypeCommandOutput extends CreateTypeResponse, __MetadataB
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Another modification is in progress at this time and it must complete before you can make your
* change.</p>
* <p>Another modification is in progress at this time and it must complete before you can
* make your change.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You aren't authorized to perform this operation.</p>
Expand Down
11 changes: 6 additions & 5 deletions clients/client-appsync/src/commands/DeleteApiCacheCommand.ts
Expand Up @@ -55,18 +55,19 @@ export interface DeleteApiCacheCommandOutput extends DeleteApiCacheResponse, __M
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Another modification is in progress at this time and it must complete before you can make your
* change.</p>
* <p>Another modification is in progress at this time and it must complete before you can
* make your change.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You aren't authorized to perform this operation.</p>
Expand Down
7 changes: 4 additions & 3 deletions clients/client-appsync/src/commands/DeleteApiKeyCommand.ts
Expand Up @@ -56,14 +56,15 @@ export interface DeleteApiKeyCommandOutput extends DeleteApiKeyResponse, __Metad
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You aren't authorized to perform this operation.</p>
Expand Down
11 changes: 6 additions & 5 deletions clients/client-appsync/src/commands/DeleteDataSourceCommand.ts
Expand Up @@ -56,18 +56,19 @@ export interface DeleteDataSourceCommandOutput extends DeleteDataSourceResponse,
* @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Another modification is in progress at this time and it must complete before you can make your
* change.</p>
* <p>Another modification is in progress at this time and it must complete before you can
* make your change.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link UnauthorizedException} (client fault)
* <p>You aren't authorized to perform this operation.</p>
Expand Down
11 changes: 6 additions & 5 deletions clients/client-appsync/src/commands/DeleteDomainNameCommand.ts
Expand Up @@ -58,18 +58,19 @@ export interface DeleteDomainNameCommandOutput extends DeleteDomainNameResponse,
* <p>You don't have access to perform this operation on this resource.</p>
*
* @throws {@link BadRequestException} (client fault)
* <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
* field values, and then try again.</p>
* <p>The request is not well formed. For example, a value is invalid or a required field is
* missing. Check the field values, and then try again.</p>
*
* @throws {@link ConcurrentModificationException} (client fault)
* <p>Another modification is in progress at this time and it must complete before you can make your
* change.</p>
* <p>Another modification is in progress at this time and it must complete before you can
* make your change.</p>
*
* @throws {@link InternalFailureException} (server fault)
* <p>An internal AppSync error occurred. Try your request again.</p>
*
* @throws {@link NotFoundException} (client fault)
* <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
* <p>The resource specified in the request was not found. Check the resource, and then try
* again.</p>
*
* @throws {@link AppSyncServiceException}
* <p>Base exception class for all service exceptions from AppSync service.</p>
Expand Down

0 comments on commit c28aac2

Please sign in to comment.