@aws-sdk/client-appsync 3.682.0 → 3.686.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/README.md +90 -10
  2. package/dist-cjs/index.js +572 -0
  3. package/dist-es/AppSync.js +20 -0
  4. package/dist-es/commands/CreateApiCommand.js +22 -0
  5. package/dist-es/commands/CreateChannelNamespaceCommand.js +22 -0
  6. package/dist-es/commands/DeleteApiCommand.js +22 -0
  7. package/dist-es/commands/DeleteChannelNamespaceCommand.js +22 -0
  8. package/dist-es/commands/GetApiCommand.js +22 -0
  9. package/dist-es/commands/GetChannelNamespaceCommand.js +22 -0
  10. package/dist-es/commands/ListApisCommand.js +22 -0
  11. package/dist-es/commands/ListChannelNamespacesCommand.js +22 -0
  12. package/dist-es/commands/UpdateApiCommand.js +22 -0
  13. package/dist-es/commands/UpdateChannelNamespaceCommand.js +22 -0
  14. package/dist-es/commands/index.js +10 -0
  15. package/dist-es/models/models_0.js +31 -0
  16. package/dist-es/pagination/ListApisPaginator.js +4 -0
  17. package/dist-es/pagination/ListChannelNamespacesPaginator.js +4 -0
  18. package/dist-es/pagination/index.js +2 -0
  19. package/dist-es/protocols/Aws_restJson1.js +341 -2
  20. package/dist-types/AppSync.d.ts +73 -2
  21. package/dist-types/AppSyncClient.d.ts +14 -4
  22. package/dist-types/commands/AssociateApiCommand.d.ts +4 -3
  23. package/dist-types/commands/AssociateMergedGraphqlApiCommand.d.ts +8 -6
  24. package/dist-types/commands/AssociateSourceGraphqlApiCommand.d.ts +8 -6
  25. package/dist-types/commands/CreateApiCacheCommand.d.ts +6 -5
  26. package/dist-types/commands/CreateApiCommand.d.ts +192 -0
  27. package/dist-types/commands/CreateApiKeyCommand.d.ts +4 -3
  28. package/dist-types/commands/CreateChannelNamespaceCommand.d.ts +133 -0
  29. package/dist-types/commands/CreateDataSourceCommand.d.ts +6 -5
  30. package/dist-types/commands/CreateDomainNameCommand.d.ts +2 -2
  31. package/dist-types/commands/CreateFunctionCommand.d.ts +8 -6
  32. package/dist-types/commands/CreateGraphqlApiCommand.d.ts +5 -5
  33. package/dist-types/commands/CreateResolverCommand.d.ts +8 -7
  34. package/dist-types/commands/CreateTypeCommand.d.ts +6 -5
  35. package/dist-types/commands/DeleteApiCacheCommand.d.ts +6 -5
  36. package/dist-types/commands/DeleteApiCommand.d.ts +90 -0
  37. package/dist-types/commands/DeleteApiKeyCommand.d.ts +4 -3
  38. package/dist-types/commands/DeleteChannelNamespaceCommand.d.ts +91 -0
  39. package/dist-types/commands/DeleteDataSourceCommand.d.ts +6 -5
  40. package/dist-types/commands/DeleteDomainNameCommand.d.ts +6 -5
  41. package/dist-types/commands/DeleteFunctionCommand.d.ts +6 -5
  42. package/dist-types/commands/DeleteGraphqlApiCommand.d.ts +6 -5
  43. package/dist-types/commands/DeleteResolverCommand.d.ts +6 -5
  44. package/dist-types/commands/DeleteTypeCommand.d.ts +6 -5
  45. package/dist-types/commands/DisassociateApiCommand.d.ts +6 -5
  46. package/dist-types/commands/DisassociateMergedGraphqlApiCommand.d.ts +8 -7
  47. package/dist-types/commands/DisassociateSourceGraphqlApiCommand.d.ts +8 -7
  48. package/dist-types/commands/EvaluateCodeCommand.d.ts +8 -7
  49. package/dist-types/commands/EvaluateMappingTemplateCommand.d.ts +8 -7
  50. package/dist-types/commands/FlushApiCacheCommand.d.ts +6 -5
  51. package/dist-types/commands/GetApiAssociationCommand.d.ts +4 -3
  52. package/dist-types/commands/GetApiCacheCommand.d.ts +6 -5
  53. package/dist-types/commands/GetApiCommand.d.ts +144 -0
  54. package/dist-types/commands/GetChannelNamespaceCommand.d.ts +109 -0
  55. package/dist-types/commands/GetDataSourceCommand.d.ts +6 -5
  56. package/dist-types/commands/GetDataSourceIntrospectionCommand.d.ts +7 -6
  57. package/dist-types/commands/GetDomainNameCommand.d.ts +4 -3
  58. package/dist-types/commands/GetFunctionCommand.d.ts +4 -3
  59. package/dist-types/commands/GetGraphqlApiCommand.d.ts +4 -3
  60. package/dist-types/commands/GetGraphqlApiEnvironmentVariablesCommand.d.ts +6 -4
  61. package/dist-types/commands/GetIntrospectionSchemaCommand.d.ts +2 -1
  62. package/dist-types/commands/GetResolverCommand.d.ts +4 -3
  63. package/dist-types/commands/GetSchemaCreationStatusCommand.d.ts +4 -3
  64. package/dist-types/commands/GetSourceApiAssociationCommand.d.ts +4 -3
  65. package/dist-types/commands/GetTypeCommand.d.ts +6 -5
  66. package/dist-types/commands/ListApiKeysCommand.d.ts +8 -6
  67. package/dist-types/commands/ListApisCommand.d.ts +144 -0
  68. package/dist-types/commands/ListChannelNamespacesCommand.d.ts +114 -0
  69. package/dist-types/commands/ListDataSourcesCommand.d.ts +4 -3
  70. package/dist-types/commands/ListDomainNamesCommand.d.ts +2 -2
  71. package/dist-types/commands/ListFunctionsCommand.d.ts +4 -3
  72. package/dist-types/commands/ListGraphqlApisCommand.d.ts +2 -2
  73. package/dist-types/commands/ListResolversByFunctionCommand.d.ts +4 -3
  74. package/dist-types/commands/ListResolversCommand.d.ts +4 -3
  75. package/dist-types/commands/ListSourceApiAssociationsCommand.d.ts +4 -3
  76. package/dist-types/commands/ListTagsForResourceCommand.d.ts +4 -3
  77. package/dist-types/commands/ListTypesByAssociationCommand.d.ts +6 -5
  78. package/dist-types/commands/ListTypesCommand.d.ts +6 -5
  79. package/dist-types/commands/PutGraphqlApiEnvironmentVariablesCommand.d.ts +21 -17
  80. package/dist-types/commands/StartDataSourceIntrospectionCommand.d.ts +6 -5
  81. package/dist-types/commands/StartSchemaCreationCommand.d.ts +8 -7
  82. package/dist-types/commands/StartSchemaMergeCommand.d.ts +8 -6
  83. package/dist-types/commands/TagResourceCommand.d.ts +4 -3
  84. package/dist-types/commands/UntagResourceCommand.d.ts +4 -3
  85. package/dist-types/commands/UpdateApiCacheCommand.d.ts +6 -5
  86. package/dist-types/commands/UpdateApiCommand.d.ts +192 -0
  87. package/dist-types/commands/UpdateApiKeyCommand.d.ts +4 -3
  88. package/dist-types/commands/UpdateChannelNamespaceCommand.d.ts +124 -0
  89. package/dist-types/commands/UpdateDataSourceCommand.d.ts +6 -5
  90. package/dist-types/commands/UpdateDomainNameCommand.d.ts +6 -5
  91. package/dist-types/commands/UpdateFunctionCommand.d.ts +6 -5
  92. package/dist-types/commands/UpdateGraphqlApiCommand.d.ts +7 -6
  93. package/dist-types/commands/UpdateResolverCommand.d.ts +6 -5
  94. package/dist-types/commands/UpdateSourceApiAssociationCommand.d.ts +6 -5
  95. package/dist-types/commands/UpdateTypeCommand.d.ts +6 -5
  96. package/dist-types/commands/index.d.ts +10 -0
  97. package/dist-types/index.d.ts +2 -2
  98. package/dist-types/models/models_0.d.ts +1305 -629
  99. package/dist-types/pagination/ListApisPaginator.d.ts +7 -0
  100. package/dist-types/pagination/ListChannelNamespacesPaginator.d.ts +7 -0
  101. package/dist-types/pagination/index.d.ts +2 -0
  102. package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
  103. package/dist-types/ts3.4/AppSync.d.ts +171 -0
  104. package/dist-types/ts3.4/AppSyncClient.d.ts +60 -0
  105. package/dist-types/ts3.4/commands/CreateApiCommand.d.ts +47 -0
  106. package/dist-types/ts3.4/commands/CreateChannelNamespaceCommand.d.ts +51 -0
  107. package/dist-types/ts3.4/commands/DeleteApiCommand.d.ts +47 -0
  108. package/dist-types/ts3.4/commands/DeleteChannelNamespaceCommand.d.ts +51 -0
  109. package/dist-types/ts3.4/commands/GetApiCommand.d.ts +41 -0
  110. package/dist-types/ts3.4/commands/GetChannelNamespaceCommand.d.ts +51 -0
  111. package/dist-types/ts3.4/commands/ListApisCommand.d.ts +47 -0
  112. package/dist-types/ts3.4/commands/ListChannelNamespacesCommand.d.ts +51 -0
  113. package/dist-types/ts3.4/commands/UpdateApiCommand.d.ts +47 -0
  114. package/dist-types/ts3.4/commands/UpdateChannelNamespaceCommand.d.ts +51 -0
  115. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  116. package/dist-types/ts3.4/models/models_0.d.ts +148 -2
  117. package/dist-types/ts3.4/pagination/ListApisPaginator.d.ts +11 -0
  118. package/dist-types/ts3.4/pagination/ListChannelNamespacesPaginator.d.ts +11 -0
  119. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  120. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
  121. package/package.json +36 -36
@@ -40,15 +40,16 @@ declare const PutGraphqlApiEnvironmentVariablesCommand_base: {
40
40
  * <p>Environmental variables only support string values.</p>
41
41
  * </li>
42
42
  * <li>
43
- * <p>Any defined value in an environmental variable is considered a string literal and not
44
- * expanded.</p>
43
+ * <p>Any defined value in an environmental variable is considered a string literal
44
+ * and not expanded.</p>
45
45
  * </li>
46
46
  * <li>
47
- * <p>Variable evaluations should ideally be performed in the function code.</p>
47
+ * <p>Variable evaluations should ideally be performed in the function
48
+ * code.</p>
48
49
  * </li>
49
50
  * </ul>
50
- * <p>When creating an environmental variable key-value pair, it must follow the additional constraints
51
- * below:</p>
51
+ * <p>When creating an environmental variable key-value pair, it must follow the additional
52
+ * constraints below:</p>
52
53
  * <ul>
53
54
  * <li>
54
55
  * <p>Keys must begin with a letter.</p>
@@ -57,7 +58,8 @@ declare const PutGraphqlApiEnvironmentVariablesCommand_base: {
57
58
  * <p>Keys must be at least two characters long.</p>
58
59
  * </li>
59
60
  * <li>
60
- * <p>Keys can only contain letters, numbers, and the underscore character (_).</p>
61
+ * <p>Keys can only contain letters, numbers, and the underscore character
62
+ * (_).</p>
61
63
  * </li>
62
64
  * <li>
63
65
  * <p>Values can be up to 512 characters long.</p>
@@ -66,12 +68,13 @@ declare const PutGraphqlApiEnvironmentVariablesCommand_base: {
66
68
  * <p>You can configure up to 50 key-value pairs in a GraphQL API.</p>
67
69
  * </li>
68
70
  * </ul>
69
- * <p>You can create a list of environmental variables by adding it to the <code>environmentVariables</code>
70
- * payload as a list in the format <code>\{"key1":"value1","key2":"value2", …\}</code>. Note that each call of the
71
- * <code>PutGraphqlApiEnvironmentVariables</code> action will result in the overwriting of the existing
72
- * environmental variable list of that API. This means the existing environmental variables will be lost. To avoid
73
- * this, you must include all existing and new environmental variables in the list each time you call this
74
- * action.</p>
71
+ * <p>You can create a list of environmental variables by adding it to the
72
+ * <code>environmentVariables</code> payload as a list in the format
73
+ * <code>\{"key1":"value1","key2":"value2", …\}</code>. Note that each call of the
74
+ * <code>PutGraphqlApiEnvironmentVariables</code> action will result in the overwriting of
75
+ * the existing environmental variable list of that API. This means the existing environmental
76
+ * variables will be lost. To avoid this, you must include all existing and new environmental
77
+ * variables in the list each time you call this action.</p>
75
78
  * @example
76
79
  * Use a bare-bones client and the command you need to make an API call.
77
80
  * ```javascript
@@ -104,18 +107,19 @@ declare const PutGraphqlApiEnvironmentVariablesCommand_base: {
104
107
  * <p>You don't have access to perform this operation on this resource.</p>
105
108
  *
106
109
  * @throws {@link BadRequestException} (client fault)
107
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
108
- * field values, and then try again.</p>
110
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
111
+ * missing. Check the field values, and then try again.</p>
109
112
  *
110
113
  * @throws {@link ConcurrentModificationException} (client fault)
111
- * <p>Another modification is in progress at this time and it must complete before you can make your
112
- * change.</p>
114
+ * <p>Another modification is in progress at this time and it must complete before you can
115
+ * make your change.</p>
113
116
  *
114
117
  * @throws {@link InternalFailureException} (server fault)
115
118
  * <p>An internal AppSync error occurred. Try your request again.</p>
116
119
  *
117
120
  * @throws {@link NotFoundException} (client fault)
118
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
121
+ * <p>The resource specified in the request was not found. Check the resource, and then try
122
+ * again.</p>
119
123
  *
120
124
  * @throws {@link UnauthorizedException} (client fault)
121
125
  * <p>You aren't authorized to perform this operation.</p>
@@ -27,8 +27,8 @@ declare const StartDataSourceIntrospectionCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Creates a new introspection. Returns the <code>introspectionId</code> of the new introspection after its
31
- * creation. </p>
30
+ * <p>Creates a new introspection. Returns the <code>introspectionId</code> of the new
31
+ * introspection after its creation. </p>
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
@@ -59,14 +59,15 @@ declare const StartDataSourceIntrospectionCommand_base: {
59
59
  * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
60
60
  *
61
61
  * @throws {@link BadRequestException} (client fault)
62
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
63
- * field values, and then try again.</p>
62
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
63
+ * missing. Check the field values, and then try again.</p>
64
64
  *
65
65
  * @throws {@link InternalFailureException} (server fault)
66
66
  * <p>An internal AppSync error occurred. Try your request again.</p>
67
67
  *
68
68
  * @throws {@link NotFoundException} (client fault)
69
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
69
+ * <p>The resource specified in the request was not found. Check the resource, and then try
70
+ * again.</p>
70
71
  *
71
72
  * @throws {@link UnauthorizedException} (client fault)
72
73
  * <p>You aren't authorized to perform this operation.</p>
@@ -28,8 +28,8 @@ declare const StartSchemaCreationCommand_base: {
28
28
  };
29
29
  /**
30
30
  * <p>Adds a new schema to your GraphQL API.</p>
31
- * <p>This operation is asynchronous. Use to determine when it has
32
- * completed.</p>
31
+ * <p>This operation is asynchronous. Use to
32
+ * determine when it has completed.</p>
33
33
  * @example
34
34
  * Use a bare-bones client and the command you need to make an API call.
35
35
  * ```javascript
@@ -55,18 +55,19 @@ declare const StartSchemaCreationCommand_base: {
55
55
  * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
56
56
  *
57
57
  * @throws {@link BadRequestException} (client fault)
58
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
59
- * field values, and then try again.</p>
58
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
59
+ * missing. Check the field values, and then try again.</p>
60
60
  *
61
61
  * @throws {@link ConcurrentModificationException} (client fault)
62
- * <p>Another modification is in progress at this time and it must complete before you can make your
63
- * change.</p>
62
+ * <p>Another modification is in progress at this time and it must complete before you can
63
+ * make your change.</p>
64
64
  *
65
65
  * @throws {@link InternalFailureException} (server fault)
66
66
  * <p>An internal AppSync error occurred. Try your request again.</p>
67
67
  *
68
68
  * @throws {@link NotFoundException} (client fault)
69
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
69
+ * <p>The resource specified in the request was not found. Check the resource, and then try
70
+ * again.</p>
70
71
  *
71
72
  * @throws {@link UnauthorizedException} (client fault)
72
73
  * <p>You aren't authorized to perform this operation.</p>
@@ -27,7 +27,8 @@ declare const StartSchemaMergeCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Initiates a merge operation. Returns a status that shows the result of the merge operation.</p>
30
+ * <p>Initiates a merge operation. Returns a status that shows the result of the merge
31
+ * operation.</p>
31
32
  * @example
32
33
  * Use a bare-bones client and the command you need to make an API call.
33
34
  * ```javascript
@@ -53,18 +54,19 @@ declare const StartSchemaMergeCommand_base: {
53
54
  * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
54
55
  *
55
56
  * @throws {@link BadRequestException} (client fault)
56
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
57
- * field values, and then try again.</p>
57
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
58
+ * missing. Check the field values, and then try again.</p>
58
59
  *
59
60
  * @throws {@link ConcurrentModificationException} (client fault)
60
- * <p>Another modification is in progress at this time and it must complete before you can make your
61
- * change.</p>
61
+ * <p>Another modification is in progress at this time and it must complete before you can
62
+ * make your change.</p>
62
63
  *
63
64
  * @throws {@link InternalFailureException} (server fault)
64
65
  * <p>An internal AppSync error occurred. Try your request again.</p>
65
66
  *
66
67
  * @throws {@link NotFoundException} (client fault)
67
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
68
+ * <p>The resource specified in the request was not found. Check the resource, and then try
69
+ * again.</p>
68
70
  *
69
71
  * @throws {@link UnauthorizedException} (client fault)
70
72
  * <p>You aren't authorized to perform this operation.</p>
@@ -56,8 +56,8 @@ declare const TagResourceCommand_base: {
56
56
  * <p>You don't have access to perform this operation on this resource.</p>
57
57
  *
58
58
  * @throws {@link BadRequestException} (client fault)
59
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
60
- * field values, and then try again.</p>
59
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
60
+ * missing. Check the field values, and then try again.</p>
61
61
  *
62
62
  * @throws {@link InternalFailureException} (server fault)
63
63
  * <p>An internal AppSync error occurred. Try your request again.</p>
@@ -66,7 +66,8 @@ declare const TagResourceCommand_base: {
66
66
  * <p>The request exceeded a limit. Try your request again.</p>
67
67
  *
68
68
  * @throws {@link NotFoundException} (client fault)
69
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
69
+ * <p>The resource specified in the request was not found. Check the resource, and then try
70
+ * again.</p>
70
71
  *
71
72
  * @throws {@link UnauthorizedException} (client fault)
72
73
  * <p>You aren't authorized to perform this operation.</p>
@@ -56,8 +56,8 @@ declare const UntagResourceCommand_base: {
56
56
  * <p>You don't have access to perform this operation on this resource.</p>
57
57
  *
58
58
  * @throws {@link BadRequestException} (client fault)
59
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
60
- * field values, and then try again.</p>
59
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
60
+ * missing. Check the field values, and then try again.</p>
61
61
  *
62
62
  * @throws {@link InternalFailureException} (server fault)
63
63
  * <p>An internal AppSync error occurred. Try your request again.</p>
@@ -66,7 +66,8 @@ declare const UntagResourceCommand_base: {
66
66
  * <p>The request exceeded a limit. Try your request again.</p>
67
67
  *
68
68
  * @throws {@link NotFoundException} (client fault)
69
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
69
+ * <p>The resource specified in the request was not found. Check the resource, and then try
70
+ * again.</p>
70
71
  *
71
72
  * @throws {@link UnauthorizedException} (client fault)
72
73
  * <p>You aren't authorized to perform this operation.</p>
@@ -64,18 +64,19 @@ declare const UpdateApiCacheCommand_base: {
64
64
  * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
65
65
  *
66
66
  * @throws {@link BadRequestException} (client fault)
67
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
68
- * field values, and then try again.</p>
67
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
68
+ * missing. Check the field values, and then try again.</p>
69
69
  *
70
70
  * @throws {@link ConcurrentModificationException} (client fault)
71
- * <p>Another modification is in progress at this time and it must complete before you can make your
72
- * change.</p>
71
+ * <p>Another modification is in progress at this time and it must complete before you can
72
+ * make your change.</p>
73
73
  *
74
74
  * @throws {@link InternalFailureException} (server fault)
75
75
  * <p>An internal AppSync error occurred. Try your request again.</p>
76
76
  *
77
77
  * @throws {@link NotFoundException} (client fault)
78
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
78
+ * <p>The resource specified in the request was not found. Check the resource, and then try
79
+ * again.</p>
79
80
  *
80
81
  * @throws {@link UnauthorizedException} (client fault)
81
82
  * <p>You aren't authorized to perform this operation.</p>
@@ -0,0 +1,192 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppSyncClient";
4
+ import { UpdateApiRequest, UpdateApiResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateApiCommand}.
14
+ */
15
+ export interface UpdateApiCommandInput extends UpdateApiRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateApiCommand}.
21
+ */
22
+ export interface UpdateApiCommandOutput extends UpdateApiResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateApiCommand_base: {
25
+ new (input: UpdateApiCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateApiCommandInput, UpdateApiCommandOutput, AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateApiCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateApiCommandInput, UpdateApiCommandOutput, AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an <code>Api</code>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppSyncClient, UpdateApiCommand } from "@aws-sdk/client-appsync"; // ES Modules import
35
+ * // const { AppSyncClient, UpdateApiCommand } = require("@aws-sdk/client-appsync"); // CommonJS import
36
+ * const client = new AppSyncClient(config);
37
+ * const input = { // UpdateApiRequest
38
+ * apiId: "STRING_VALUE", // required
39
+ * name: "STRING_VALUE", // required
40
+ * ownerContact: "STRING_VALUE",
41
+ * eventConfig: { // EventConfig
42
+ * authProviders: [ // AuthProviders // required
43
+ * { // AuthProvider
44
+ * authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
45
+ * cognitoConfig: { // CognitoConfig
46
+ * userPoolId: "STRING_VALUE", // required
47
+ * awsRegion: "STRING_VALUE", // required
48
+ * appIdClientRegex: "STRING_VALUE",
49
+ * },
50
+ * openIDConnectConfig: { // OpenIDConnectConfig
51
+ * issuer: "STRING_VALUE", // required
52
+ * clientId: "STRING_VALUE",
53
+ * iatTTL: Number("long"),
54
+ * authTTL: Number("long"),
55
+ * },
56
+ * lambdaAuthorizerConfig: { // LambdaAuthorizerConfig
57
+ * authorizerResultTtlInSeconds: Number("int"),
58
+ * authorizerUri: "STRING_VALUE", // required
59
+ * identityValidationExpression: "STRING_VALUE",
60
+ * },
61
+ * },
62
+ * ],
63
+ * connectionAuthModes: [ // AuthModes // required
64
+ * { // AuthMode
65
+ * authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
66
+ * },
67
+ * ],
68
+ * defaultPublishAuthModes: [ // required
69
+ * {
70
+ * authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
71
+ * },
72
+ * ],
73
+ * defaultSubscribeAuthModes: [ // required
74
+ * {
75
+ * authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
76
+ * },
77
+ * ],
78
+ * logConfig: { // EventLogConfig
79
+ * logLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required
80
+ * cloudWatchLogsRoleArn: "STRING_VALUE", // required
81
+ * },
82
+ * },
83
+ * };
84
+ * const command = new UpdateApiCommand(input);
85
+ * const response = await client.send(command);
86
+ * // { // UpdateApiResponse
87
+ * // api: { // Api
88
+ * // apiId: "STRING_VALUE",
89
+ * // name: "STRING_VALUE",
90
+ * // ownerContact: "STRING_VALUE",
91
+ * // tags: { // TagMap
92
+ * // "<keys>": "STRING_VALUE",
93
+ * // },
94
+ * // dns: { // MapOfStringToString
95
+ * // "<keys>": "STRING_VALUE",
96
+ * // },
97
+ * // apiArn: "STRING_VALUE",
98
+ * // created: new Date("TIMESTAMP"),
99
+ * // xrayEnabled: true || false,
100
+ * // wafWebAclArn: "STRING_VALUE",
101
+ * // eventConfig: { // EventConfig
102
+ * // authProviders: [ // AuthProviders // required
103
+ * // { // AuthProvider
104
+ * // authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
105
+ * // cognitoConfig: { // CognitoConfig
106
+ * // userPoolId: "STRING_VALUE", // required
107
+ * // awsRegion: "STRING_VALUE", // required
108
+ * // appIdClientRegex: "STRING_VALUE",
109
+ * // },
110
+ * // openIDConnectConfig: { // OpenIDConnectConfig
111
+ * // issuer: "STRING_VALUE", // required
112
+ * // clientId: "STRING_VALUE",
113
+ * // iatTTL: Number("long"),
114
+ * // authTTL: Number("long"),
115
+ * // },
116
+ * // lambdaAuthorizerConfig: { // LambdaAuthorizerConfig
117
+ * // authorizerResultTtlInSeconds: Number("int"),
118
+ * // authorizerUri: "STRING_VALUE", // required
119
+ * // identityValidationExpression: "STRING_VALUE",
120
+ * // },
121
+ * // },
122
+ * // ],
123
+ * // connectionAuthModes: [ // AuthModes // required
124
+ * // { // AuthMode
125
+ * // authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
126
+ * // },
127
+ * // ],
128
+ * // defaultPublishAuthModes: [ // required
129
+ * // {
130
+ * // authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
131
+ * // },
132
+ * // ],
133
+ * // defaultSubscribeAuthModes: [ // required
134
+ * // {
135
+ * // authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
136
+ * // },
137
+ * // ],
138
+ * // logConfig: { // EventLogConfig
139
+ * // logLevel: "NONE" || "ERROR" || "ALL" || "INFO" || "DEBUG", // required
140
+ * // cloudWatchLogsRoleArn: "STRING_VALUE", // required
141
+ * // },
142
+ * // },
143
+ * // },
144
+ * // };
145
+ *
146
+ * ```
147
+ *
148
+ * @param UpdateApiCommandInput - {@link UpdateApiCommandInput}
149
+ * @returns {@link UpdateApiCommandOutput}
150
+ * @see {@link UpdateApiCommandInput} for command's `input` shape.
151
+ * @see {@link UpdateApiCommandOutput} for command's `response` shape.
152
+ * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
153
+ *
154
+ * @throws {@link AccessDeniedException} (client fault)
155
+ * <p>You don't have access to perform this operation on this resource.</p>
156
+ *
157
+ * @throws {@link BadRequestException} (client fault)
158
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
159
+ * missing. Check the field values, and then try again.</p>
160
+ *
161
+ * @throws {@link ConcurrentModificationException} (client fault)
162
+ * <p>Another modification is in progress at this time and it must complete before you can
163
+ * make your change.</p>
164
+ *
165
+ * @throws {@link InternalFailureException} (server fault)
166
+ * <p>An internal AppSync error occurred. Try your request again.</p>
167
+ *
168
+ * @throws {@link NotFoundException} (client fault)
169
+ * <p>The resource specified in the request was not found. Check the resource, and then try
170
+ * again.</p>
171
+ *
172
+ * @throws {@link UnauthorizedException} (client fault)
173
+ * <p>You aren't authorized to perform this operation.</p>
174
+ *
175
+ * @throws {@link AppSyncServiceException}
176
+ * <p>Base exception class for all service exceptions from AppSync service.</p>
177
+ *
178
+ * @public
179
+ */
180
+ export declare class UpdateApiCommand extends UpdateApiCommand_base {
181
+ /** @internal type navigation helper, not in runtime. */
182
+ protected static __types: {
183
+ api: {
184
+ input: UpdateApiRequest;
185
+ output: UpdateApiResponse;
186
+ };
187
+ sdk: {
188
+ input: UpdateApiCommandInput;
189
+ output: UpdateApiCommandOutput;
190
+ };
191
+ };
192
+ }
@@ -64,8 +64,8 @@ declare const UpdateApiKeyCommand_base: {
64
64
  * <code>CreateApiKey</code>) or from update (for <code>UpdateApiKey</code>).</p>
65
65
  *
66
66
  * @throws {@link BadRequestException} (client fault)
67
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
68
- * field values, and then try again.</p>
67
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
68
+ * missing. Check the field values, and then try again.</p>
69
69
  *
70
70
  * @throws {@link InternalFailureException} (server fault)
71
71
  * <p>An internal AppSync error occurred. Try your request again.</p>
@@ -74,7 +74,8 @@ declare const UpdateApiKeyCommand_base: {
74
74
  * <p>The request exceeded a limit. Try your request again.</p>
75
75
  *
76
76
  * @throws {@link NotFoundException} (client fault)
77
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
77
+ * <p>The resource specified in the request was not found. Check the resource, and then try
78
+ * again.</p>
78
79
  *
79
80
  * @throws {@link UnauthorizedException} (client fault)
80
81
  * <p>You aren't authorized to perform this operation.</p>
@@ -0,0 +1,124 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppSyncClient";
4
+ import { UpdateChannelNamespaceRequest, UpdateChannelNamespaceResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateChannelNamespaceCommand}.
14
+ */
15
+ export interface UpdateChannelNamespaceCommandInput extends UpdateChannelNamespaceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateChannelNamespaceCommand}.
21
+ */
22
+ export interface UpdateChannelNamespaceCommandOutput extends UpdateChannelNamespaceResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateChannelNamespaceCommand_base: {
25
+ new (input: UpdateChannelNamespaceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateChannelNamespaceCommandInput, UpdateChannelNamespaceCommandOutput, AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: UpdateChannelNamespaceCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateChannelNamespaceCommandInput, UpdateChannelNamespaceCommandOutput, AppSyncClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates a <code>ChannelNamespace</code> associated with an <code>Api</code>.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppSyncClient, UpdateChannelNamespaceCommand } from "@aws-sdk/client-appsync"; // ES Modules import
35
+ * // const { AppSyncClient, UpdateChannelNamespaceCommand } = require("@aws-sdk/client-appsync"); // CommonJS import
36
+ * const client = new AppSyncClient(config);
37
+ * const input = { // UpdateChannelNamespaceRequest
38
+ * apiId: "STRING_VALUE", // required
39
+ * name: "STRING_VALUE", // required
40
+ * subscribeAuthModes: [ // AuthModes
41
+ * { // AuthMode
42
+ * authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
43
+ * },
44
+ * ],
45
+ * publishAuthModes: [
46
+ * {
47
+ * authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
48
+ * },
49
+ * ],
50
+ * codeHandlers: "STRING_VALUE",
51
+ * };
52
+ * const command = new UpdateChannelNamespaceCommand(input);
53
+ * const response = await client.send(command);
54
+ * // { // UpdateChannelNamespaceResponse
55
+ * // channelNamespace: { // ChannelNamespace
56
+ * // apiId: "STRING_VALUE",
57
+ * // name: "STRING_VALUE",
58
+ * // subscribeAuthModes: [ // AuthModes
59
+ * // { // AuthMode
60
+ * // authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
61
+ * // },
62
+ * // ],
63
+ * // publishAuthModes: [
64
+ * // {
65
+ * // authType: "API_KEY" || "AWS_IAM" || "AMAZON_COGNITO_USER_POOLS" || "OPENID_CONNECT" || "AWS_LAMBDA", // required
66
+ * // },
67
+ * // ],
68
+ * // codeHandlers: "STRING_VALUE",
69
+ * // tags: { // TagMap
70
+ * // "<keys>": "STRING_VALUE",
71
+ * // },
72
+ * // channelNamespaceArn: "STRING_VALUE",
73
+ * // created: new Date("TIMESTAMP"),
74
+ * // lastModified: new Date("TIMESTAMP"),
75
+ * // },
76
+ * // };
77
+ *
78
+ * ```
79
+ *
80
+ * @param UpdateChannelNamespaceCommandInput - {@link UpdateChannelNamespaceCommandInput}
81
+ * @returns {@link UpdateChannelNamespaceCommandOutput}
82
+ * @see {@link UpdateChannelNamespaceCommandInput} for command's `input` shape.
83
+ * @see {@link UpdateChannelNamespaceCommandOutput} for command's `response` shape.
84
+ * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
85
+ *
86
+ * @throws {@link AccessDeniedException} (client fault)
87
+ * <p>You don't have access to perform this operation on this resource.</p>
88
+ *
89
+ * @throws {@link BadRequestException} (client fault)
90
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
91
+ * missing. Check the field values, and then try again.</p>
92
+ *
93
+ * @throws {@link ConcurrentModificationException} (client fault)
94
+ * <p>Another modification is in progress at this time and it must complete before you can
95
+ * make your change.</p>
96
+ *
97
+ * @throws {@link InternalFailureException} (server fault)
98
+ * <p>An internal AppSync error occurred. Try your request again.</p>
99
+ *
100
+ * @throws {@link NotFoundException} (client fault)
101
+ * <p>The resource specified in the request was not found. Check the resource, and then try
102
+ * again.</p>
103
+ *
104
+ * @throws {@link UnauthorizedException} (client fault)
105
+ * <p>You aren't authorized to perform this operation.</p>
106
+ *
107
+ * @throws {@link AppSyncServiceException}
108
+ * <p>Base exception class for all service exceptions from AppSync service.</p>
109
+ *
110
+ * @public
111
+ */
112
+ export declare class UpdateChannelNamespaceCommand extends UpdateChannelNamespaceCommand_base {
113
+ /** @internal type navigation helper, not in runtime. */
114
+ protected static __types: {
115
+ api: {
116
+ input: UpdateChannelNamespaceRequest;
117
+ output: UpdateChannelNamespaceResponse;
118
+ };
119
+ sdk: {
120
+ input: UpdateChannelNamespaceCommandInput;
121
+ output: UpdateChannelNamespaceCommandOutput;
122
+ };
123
+ };
124
+ }
@@ -154,18 +154,19 @@ declare const UpdateDataSourceCommand_base: {
154
154
  * @see {@link AppSyncClientResolvedConfig | config} for AppSyncClient's `config` shape.
155
155
  *
156
156
  * @throws {@link BadRequestException} (client fault)
157
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
158
- * field values, and then try again.</p>
157
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
158
+ * missing. Check the field values, and then try again.</p>
159
159
  *
160
160
  * @throws {@link ConcurrentModificationException} (client fault)
161
- * <p>Another modification is in progress at this time and it must complete before you can make your
162
- * change.</p>
161
+ * <p>Another modification is in progress at this time and it must complete before you can
162
+ * make your change.</p>
163
163
  *
164
164
  * @throws {@link InternalFailureException} (server fault)
165
165
  * <p>An internal AppSync error occurred. Try your request again.</p>
166
166
  *
167
167
  * @throws {@link NotFoundException} (client fault)
168
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
168
+ * <p>The resource specified in the request was not found. Check the resource, and then try
169
+ * again.</p>
169
170
  *
170
171
  * @throws {@link UnauthorizedException} (client fault)
171
172
  * <p>You aren't authorized to perform this operation.</p>
@@ -62,18 +62,19 @@ declare const UpdateDomainNameCommand_base: {
62
62
  * <p>You don't have access to perform this operation on this resource.</p>
63
63
  *
64
64
  * @throws {@link BadRequestException} (client fault)
65
- * <p>The request is not well formed. For example, a value is invalid or a required field is missing. Check the
66
- * field values, and then try again.</p>
65
+ * <p>The request is not well formed. For example, a value is invalid or a required field is
66
+ * missing. Check the field values, and then try again.</p>
67
67
  *
68
68
  * @throws {@link ConcurrentModificationException} (client fault)
69
- * <p>Another modification is in progress at this time and it must complete before you can make your
70
- * change.</p>
69
+ * <p>Another modification is in progress at this time and it must complete before you can
70
+ * make your change.</p>
71
71
  *
72
72
  * @throws {@link InternalFailureException} (server fault)
73
73
  * <p>An internal AppSync error occurred. Try your request again.</p>
74
74
  *
75
75
  * @throws {@link NotFoundException} (client fault)
76
- * <p>The resource specified in the request was not found. Check the resource, and then try again.</p>
76
+ * <p>The resource specified in the request was not found. Check the resource, and then try
77
+ * again.</p>
77
78
  *
78
79
  * @throws {@link AppSyncServiceException}
79
80
  * <p>Base exception class for all service exceptions from AppSync service.</p>