@aws-sdk/client-schemas 3.35.0 → 3.36.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.
- package/CHANGELOG.md +13 -0
- package/dist-cjs/Schemas.js +0 -1
- package/dist-cjs/SchemasClient.js +0 -1
- package/dist-cjs/commands/CreateDiscovererCommand.js +0 -1
- package/dist-cjs/commands/CreateRegistryCommand.js +0 -1
- package/dist-cjs/commands/CreateSchemaCommand.js +0 -1
- package/dist-cjs/commands/DeleteDiscovererCommand.js +0 -1
- package/dist-cjs/commands/DeleteRegistryCommand.js +0 -1
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteSchemaCommand.js +0 -1
- package/dist-cjs/commands/DeleteSchemaVersionCommand.js +0 -1
- package/dist-cjs/commands/DescribeCodeBindingCommand.js +0 -1
- package/dist-cjs/commands/DescribeDiscovererCommand.js +0 -1
- package/dist-cjs/commands/DescribeRegistryCommand.js +0 -1
- package/dist-cjs/commands/DescribeSchemaCommand.js +0 -1
- package/dist-cjs/commands/ExportSchemaCommand.js +0 -1
- package/dist-cjs/commands/GetCodeBindingSourceCommand.js +0 -1
- package/dist-cjs/commands/GetDiscoveredSchemaCommand.js +0 -1
- package/dist-cjs/commands/GetResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/ListDiscoverersCommand.js +0 -1
- package/dist-cjs/commands/ListRegistriesCommand.js +0 -1
- package/dist-cjs/commands/ListSchemaVersionsCommand.js +0 -1
- package/dist-cjs/commands/ListSchemasCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PutCodeBindingCommand.js +0 -1
- package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/SearchSchemasCommand.js +0 -1
- package/dist-cjs/commands/StartDiscovererCommand.js +0 -1
- package/dist-cjs/commands/StopDiscovererCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateDiscovererCommand.js +0 -1
- package/dist-cjs/commands/UpdateRegistryCommand.js +0 -1
- package/dist-cjs/commands/UpdateSchemaCommand.js +0 -1
- package/dist-cjs/endpoints.js +0 -1
- package/dist-cjs/index.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListDiscoverersPaginator.js +0 -1
- package/dist-cjs/pagination/ListRegistriesPaginator.js +0 -1
- package/dist-cjs/pagination/ListSchemaVersionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListSchemasPaginator.js +0 -1
- package/dist-cjs/pagination/SearchSchemasPaginator.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeConfig.browser.js +2 -3
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-cjs/runtimeConfig.native.js +0 -1
- package/dist-cjs/runtimeConfig.shared.js +0 -1
- package/dist-cjs/waiters/waitForCodeBindingExists.js +0 -1
- package/dist-es/Schemas.js +0 -1
- package/dist-es/SchemasClient.js +0 -1
- package/dist-es/commands/CreateDiscovererCommand.js +0 -1
- package/dist-es/commands/CreateRegistryCommand.js +0 -1
- package/dist-es/commands/CreateSchemaCommand.js +0 -1
- package/dist-es/commands/DeleteDiscovererCommand.js +0 -1
- package/dist-es/commands/DeleteRegistryCommand.js +0 -1
- package/dist-es/commands/DeleteResourcePolicyCommand.js +0 -1
- package/dist-es/commands/DeleteSchemaCommand.js +0 -1
- package/dist-es/commands/DeleteSchemaVersionCommand.js +0 -1
- package/dist-es/commands/DescribeCodeBindingCommand.js +0 -1
- package/dist-es/commands/DescribeDiscovererCommand.js +0 -1
- package/dist-es/commands/DescribeRegistryCommand.js +0 -1
- package/dist-es/commands/DescribeSchemaCommand.js +0 -1
- package/dist-es/commands/ExportSchemaCommand.js +0 -1
- package/dist-es/commands/GetCodeBindingSourceCommand.js +0 -1
- package/dist-es/commands/GetDiscoveredSchemaCommand.js +0 -1
- package/dist-es/commands/GetResourcePolicyCommand.js +0 -1
- package/dist-es/commands/ListDiscoverersCommand.js +0 -1
- package/dist-es/commands/ListRegistriesCommand.js +0 -1
- package/dist-es/commands/ListSchemaVersionsCommand.js +0 -1
- package/dist-es/commands/ListSchemasCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutCodeBindingCommand.js +0 -1
- package/dist-es/commands/PutResourcePolicyCommand.js +0 -1
- package/dist-es/commands/SearchSchemasCommand.js +0 -1
- package/dist-es/commands/StartDiscovererCommand.js +0 -1
- package/dist-es/commands/StopDiscovererCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UpdateDiscovererCommand.js +0 -1
- package/dist-es/commands/UpdateRegistryCommand.js +0 -1
- package/dist-es/commands/UpdateSchemaCommand.js +0 -1
- package/dist-es/endpoints.js +0 -1
- package/dist-es/index.js +0 -1
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/ListDiscoverersPaginator.js +0 -1
- package/dist-es/pagination/ListRegistriesPaginator.js +0 -1
- package/dist-es/pagination/ListSchemaVersionsPaginator.js +0 -1
- package/dist-es/pagination/ListSchemasPaginator.js +0 -1
- package/dist-es/pagination/SearchSchemasPaginator.js +0 -1
- package/dist-es/protocols/Aws_restJson1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-es/waiters/waitForCodeBindingExists.js +0 -1
- package/package.json +34 -31
- package/dist-cjs/Schemas.js.map +0 -1
- package/dist-cjs/SchemasClient.js.map +0 -1
- package/dist-cjs/commands/CreateDiscovererCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRegistryCommand.js.map +0 -1
- package/dist-cjs/commands/CreateSchemaCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteDiscovererCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRegistryCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSchemaCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteSchemaVersionCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeCodeBindingCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeDiscovererCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRegistryCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeSchemaCommand.js.map +0 -1
- package/dist-cjs/commands/ExportSchemaCommand.js.map +0 -1
- package/dist-cjs/commands/GetCodeBindingSourceCommand.js.map +0 -1
- package/dist-cjs/commands/GetDiscoveredSchemaCommand.js.map +0 -1
- package/dist-cjs/commands/GetResourcePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/ListDiscoverersCommand.js.map +0 -1
- package/dist-cjs/commands/ListRegistriesCommand.js.map +0 -1
- package/dist-cjs/commands/ListSchemaVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListSchemasCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutCodeBindingCommand.js.map +0 -1
- package/dist-cjs/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist-cjs/commands/SearchSchemasCommand.js.map +0 -1
- package/dist-cjs/commands/StartDiscovererCommand.js.map +0 -1
- package/dist-cjs/commands/StopDiscovererCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateDiscovererCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateRegistryCommand.js.map +0 -1
- package/dist-cjs/commands/UpdateSchemaCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/pagination/ListDiscoverersPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListRegistriesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSchemaVersionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListSchemasPaginator.js.map +0 -1
- package/dist-cjs/pagination/SearchSchemasPaginator.js.map +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-cjs/waiters/waitForCodeBindingExists.js.map +0 -1
- package/dist-es/Schemas.js.map +0 -1
- package/dist-es/SchemasClient.js.map +0 -1
- package/dist-es/commands/CreateDiscovererCommand.js.map +0 -1
- package/dist-es/commands/CreateRegistryCommand.js.map +0 -1
- package/dist-es/commands/CreateSchemaCommand.js.map +0 -1
- package/dist-es/commands/DeleteDiscovererCommand.js.map +0 -1
- package/dist-es/commands/DeleteRegistryCommand.js.map +0 -1
- package/dist-es/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist-es/commands/DeleteSchemaCommand.js.map +0 -1
- package/dist-es/commands/DeleteSchemaVersionCommand.js.map +0 -1
- package/dist-es/commands/DescribeCodeBindingCommand.js.map +0 -1
- package/dist-es/commands/DescribeDiscovererCommand.js.map +0 -1
- package/dist-es/commands/DescribeRegistryCommand.js.map +0 -1
- package/dist-es/commands/DescribeSchemaCommand.js.map +0 -1
- package/dist-es/commands/ExportSchemaCommand.js.map +0 -1
- package/dist-es/commands/GetCodeBindingSourceCommand.js.map +0 -1
- package/dist-es/commands/GetDiscoveredSchemaCommand.js.map +0 -1
- package/dist-es/commands/GetResourcePolicyCommand.js.map +0 -1
- package/dist-es/commands/ListDiscoverersCommand.js.map +0 -1
- package/dist-es/commands/ListRegistriesCommand.js.map +0 -1
- package/dist-es/commands/ListSchemaVersionsCommand.js.map +0 -1
- package/dist-es/commands/ListSchemasCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutCodeBindingCommand.js.map +0 -1
- package/dist-es/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist-es/commands/SearchSchemasCommand.js.map +0 -1
- package/dist-es/commands/StartDiscovererCommand.js.map +0 -1
- package/dist-es/commands/StopDiscovererCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UpdateDiscovererCommand.js.map +0 -1
- package/dist-es/commands/UpdateRegistryCommand.js.map +0 -1
- package/dist-es/commands/UpdateSchemaCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/pagination/ListDiscoverersPaginator.js.map +0 -1
- package/dist-es/pagination/ListRegistriesPaginator.js.map +0 -1
- package/dist-es/pagination/ListSchemaVersionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListSchemasPaginator.js.map +0 -1
- package/dist-es/pagination/SearchSchemasPaginator.js.map +0 -1
- package/dist-es/protocols/Aws_restJson1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/dist-es/waiters/waitForCodeBindingExists.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/Schemas.ts +0 -1120
- package/src/SchemasClient.ts +0 -347
- package/src/commands/CreateDiscovererCommand.ts +0 -95
- package/src/commands/CreateRegistryCommand.ts +0 -95
- package/src/commands/CreateSchemaCommand.ts +0 -95
- package/src/commands/DeleteDiscovererCommand.ts +0 -95
- package/src/commands/DeleteRegistryCommand.ts +0 -95
- package/src/commands/DeleteResourcePolicyCommand.ts +0 -95
- package/src/commands/DeleteSchemaCommand.ts +0 -95
- package/src/commands/DeleteSchemaVersionCommand.ts +0 -95
- package/src/commands/DescribeCodeBindingCommand.ts +0 -95
- package/src/commands/DescribeDiscovererCommand.ts +0 -95
- package/src/commands/DescribeRegistryCommand.ts +0 -95
- package/src/commands/DescribeSchemaCommand.ts +0 -95
- package/src/commands/ExportSchemaCommand.ts +0 -78
- package/src/commands/GetCodeBindingSourceCommand.ts +0 -95
- package/src/commands/GetDiscoveredSchemaCommand.ts +0 -95
- package/src/commands/GetResourcePolicyCommand.ts +0 -95
- package/src/commands/ListDiscoverersCommand.ts +0 -95
- package/src/commands/ListRegistriesCommand.ts +0 -95
- package/src/commands/ListSchemaVersionsCommand.ts +0 -95
- package/src/commands/ListSchemasCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PutCodeBindingCommand.ts +0 -95
- package/src/commands/PutResourcePolicyCommand.ts +0 -95
- package/src/commands/SearchSchemasCommand.ts +0 -95
- package/src/commands/StartDiscovererCommand.ts +0 -95
- package/src/commands/StopDiscovererCommand.ts +0 -95
- package/src/commands/TagResourceCommand.ts +0 -95
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UpdateDiscovererCommand.ts +0 -95
- package/src/commands/UpdateRegistryCommand.ts +0 -95
- package/src/commands/UpdateSchemaCommand.ts +0 -95
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -41
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -1901
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListDiscoverersPaginator.ts +0 -59
- package/src/pagination/ListRegistriesPaginator.ts +0 -59
- package/src/pagination/ListSchemaVersionsPaginator.ts +0 -59
- package/src/pagination/ListSchemasPaginator.ts +0 -55
- package/src/pagination/SearchSchemasPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -4748
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/src/waiters/waitForCodeBindingExists.ts +0 -66
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListRegistriesRequest, ListRegistriesResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1ListRegistriesCommand,
|
|
17
|
-
serializeAws_restJson1ListRegistriesCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
|
|
20
|
-
|
|
21
|
-
export interface ListRegistriesCommandInput extends ListRegistriesRequest {}
|
|
22
|
-
export interface ListRegistriesCommandOutput extends ListRegistriesResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>List the registries.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { SchemasClient, ListRegistriesCommand } from "@aws-sdk/client-schemas"; // ES Modules import
|
|
30
|
-
* // const { SchemasClient, ListRegistriesCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
|
|
31
|
-
* const client = new SchemasClient(config);
|
|
32
|
-
* const command = new ListRegistriesCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListRegistriesCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListRegistriesCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link SchemasClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListRegistriesCommand extends $Command<
|
|
42
|
-
ListRegistriesCommandInput,
|
|
43
|
-
ListRegistriesCommandOutput,
|
|
44
|
-
SchemasClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListRegistriesCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: SchemasClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListRegistriesCommandInput, ListRegistriesCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "SchemasClient";
|
|
69
|
-
const commandName = "ListRegistriesCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListRegistriesRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListRegistriesResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListRegistriesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListRegistriesCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListRegistriesCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListRegistriesCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListSchemaVersionsRequest, ListSchemaVersionsResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1ListSchemaVersionsCommand,
|
|
17
|
-
serializeAws_restJson1ListSchemaVersionsCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
|
|
20
|
-
|
|
21
|
-
export interface ListSchemaVersionsCommandInput extends ListSchemaVersionsRequest {}
|
|
22
|
-
export interface ListSchemaVersionsCommandOutput extends ListSchemaVersionsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Provides a list of the schema versions and related information.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { SchemasClient, ListSchemaVersionsCommand } from "@aws-sdk/client-schemas"; // ES Modules import
|
|
30
|
-
* // const { SchemasClient, ListSchemaVersionsCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
|
|
31
|
-
* const client = new SchemasClient(config);
|
|
32
|
-
* const command = new ListSchemaVersionsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListSchemaVersionsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListSchemaVersionsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link SchemasClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListSchemaVersionsCommand extends $Command<
|
|
42
|
-
ListSchemaVersionsCommandInput,
|
|
43
|
-
ListSchemaVersionsCommandOutput,
|
|
44
|
-
SchemasClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListSchemaVersionsCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: SchemasClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListSchemaVersionsCommandInput, ListSchemaVersionsCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "SchemasClient";
|
|
69
|
-
const commandName = "ListSchemaVersionsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListSchemaVersionsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListSchemaVersionsResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListSchemaVersionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListSchemaVersionsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListSchemaVersionsCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListSchemaVersionsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListSchemasRequest, ListSchemasResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1ListSchemasCommand,
|
|
17
|
-
serializeAws_restJson1ListSchemasCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
|
|
20
|
-
|
|
21
|
-
export interface ListSchemasCommandInput extends ListSchemasRequest {}
|
|
22
|
-
export interface ListSchemasCommandOutput extends ListSchemasResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>List the schemas.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { SchemasClient, ListSchemasCommand } from "@aws-sdk/client-schemas"; // ES Modules import
|
|
30
|
-
* // const { SchemasClient, ListSchemasCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
|
|
31
|
-
* const client = new SchemasClient(config);
|
|
32
|
-
* const command = new ListSchemasCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListSchemasCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListSchemasCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link SchemasClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListSchemasCommand extends $Command<
|
|
42
|
-
ListSchemasCommandInput,
|
|
43
|
-
ListSchemasCommandOutput,
|
|
44
|
-
SchemasClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListSchemasCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: SchemasClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListSchemasCommandInput, ListSchemasCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "SchemasClient";
|
|
69
|
-
const commandName = "ListSchemasCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListSchemasRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListSchemasResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListSchemasCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListSchemasCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListSchemasCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListSchemasCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1ListTagsForResourceCommand,
|
|
17
|
-
serializeAws_restJson1ListTagsForResourceCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
|
|
20
|
-
|
|
21
|
-
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
|
|
22
|
-
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Get tags for resource.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { SchemasClient, ListTagsForResourceCommand } from "@aws-sdk/client-schemas"; // ES Modules import
|
|
30
|
-
* // const { SchemasClient, ListTagsForResourceCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
|
|
31
|
-
* const client = new SchemasClient(config);
|
|
32
|
-
* const command = new ListTagsForResourceCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link SchemasClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListTagsForResourceCommand extends $Command<
|
|
42
|
-
ListTagsForResourceCommandInput,
|
|
43
|
-
ListTagsForResourceCommandOutput,
|
|
44
|
-
SchemasClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListTagsForResourceCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: SchemasClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "SchemasClient";
|
|
69
|
-
const commandName = "ListTagsForResourceCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListTagsForResourceCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { PutCodeBindingRequest, PutCodeBindingResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1PutCodeBindingCommand,
|
|
17
|
-
serializeAws_restJson1PutCodeBindingCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
|
|
20
|
-
|
|
21
|
-
export interface PutCodeBindingCommandInput extends PutCodeBindingRequest {}
|
|
22
|
-
export interface PutCodeBindingCommandOutput extends PutCodeBindingResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Put code binding URI</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { SchemasClient, PutCodeBindingCommand } from "@aws-sdk/client-schemas"; // ES Modules import
|
|
30
|
-
* // const { SchemasClient, PutCodeBindingCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
|
|
31
|
-
* const client = new SchemasClient(config);
|
|
32
|
-
* const command = new PutCodeBindingCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link PutCodeBindingCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link PutCodeBindingCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link SchemasClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class PutCodeBindingCommand extends $Command<
|
|
42
|
-
PutCodeBindingCommandInput,
|
|
43
|
-
PutCodeBindingCommandOutput,
|
|
44
|
-
SchemasClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: PutCodeBindingCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: SchemasClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<PutCodeBindingCommandInput, PutCodeBindingCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "SchemasClient";
|
|
69
|
-
const commandName = "PutCodeBindingCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: PutCodeBindingRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: PutCodeBindingResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: PutCodeBindingCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1PutCodeBindingCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutCodeBindingCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1PutCodeBindingCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1PutResourcePolicyCommand,
|
|
17
|
-
serializeAws_restJson1PutResourcePolicyCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
|
|
20
|
-
|
|
21
|
-
export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest {}
|
|
22
|
-
export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>The name of the policy.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { SchemasClient, PutResourcePolicyCommand } from "@aws-sdk/client-schemas"; // ES Modules import
|
|
30
|
-
* // const { SchemasClient, PutResourcePolicyCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
|
|
31
|
-
* const client = new SchemasClient(config);
|
|
32
|
-
* const command = new PutResourcePolicyCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link SchemasClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class PutResourcePolicyCommand extends $Command<
|
|
42
|
-
PutResourcePolicyCommandInput,
|
|
43
|
-
PutResourcePolicyCommandOutput,
|
|
44
|
-
SchemasClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: PutResourcePolicyCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: SchemasClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "SchemasClient";
|
|
69
|
-
const commandName = "PutResourcePolicyCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: PutResourcePolicyRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: PutResourcePolicyResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: PutResourcePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1PutResourcePolicyCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutResourcePolicyCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1PutResourcePolicyCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import { SearchSchemasRequest, SearchSchemasResponse } from "../models/models_0";
|
|
15
|
-
import {
|
|
16
|
-
deserializeAws_restJson1SearchSchemasCommand,
|
|
17
|
-
serializeAws_restJson1SearchSchemasCommand,
|
|
18
|
-
} from "../protocols/Aws_restJson1";
|
|
19
|
-
import { SchemasClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SchemasClient";
|
|
20
|
-
|
|
21
|
-
export interface SearchSchemasCommandInput extends SearchSchemasRequest {}
|
|
22
|
-
export interface SearchSchemasCommandOutput extends SearchSchemasResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Search the schemas</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { SchemasClient, SearchSchemasCommand } from "@aws-sdk/client-schemas"; // ES Modules import
|
|
30
|
-
* // const { SchemasClient, SearchSchemasCommand } = require("@aws-sdk/client-schemas"); // CommonJS import
|
|
31
|
-
* const client = new SchemasClient(config);
|
|
32
|
-
* const command = new SearchSchemasCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link SearchSchemasCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link SearchSchemasCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link SchemasClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class SearchSchemasCommand extends $Command<
|
|
42
|
-
SearchSchemasCommandInput,
|
|
43
|
-
SearchSchemasCommandOutput,
|
|
44
|
-
SchemasClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: SearchSchemasCommandInput) {
|
|
50
|
-
// Start section: command_constructor
|
|
51
|
-
super();
|
|
52
|
-
// End section: command_constructor
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* @internal
|
|
57
|
-
*/
|
|
58
|
-
resolveMiddleware(
|
|
59
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
60
|
-
configuration: SchemasClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<SearchSchemasCommandInput, SearchSchemasCommandOutput> {
|
|
63
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
64
|
-
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "SchemasClient";
|
|
69
|
-
const commandName = "SearchSchemasCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: SearchSchemasRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: SearchSchemasResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve(
|
|
79
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
80
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
81
|
-
handlerExecutionContext
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private serialize(input: SearchSchemasCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1SearchSchemasCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<SearchSchemasCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1SearchSchemasCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|