@aws-sdk/client-greengrassv2 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/GreengrassV2.js +0 -1
- package/dist-cjs/GreengrassV2Client.js +0 -1
- package/dist-cjs/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/CancelDeploymentCommand.js +0 -1
- package/dist-cjs/commands/CreateComponentVersionCommand.js +0 -1
- package/dist-cjs/commands/CreateDeploymentCommand.js +0 -1
- package/dist-cjs/commands/DeleteComponentCommand.js +0 -1
- package/dist-cjs/commands/DeleteCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/DescribeComponentCommand.js +0 -1
- package/dist-cjs/commands/GetComponentCommand.js +0 -1
- package/dist-cjs/commands/GetComponentVersionArtifactCommand.js +0 -1
- package/dist-cjs/commands/GetCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/GetDeploymentCommand.js +0 -1
- package/dist-cjs/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +0 -1
- package/dist-cjs/commands/ListComponentVersionsCommand.js +0 -1
- package/dist-cjs/commands/ListComponentsCommand.js +0 -1
- package/dist-cjs/commands/ListCoreDevicesCommand.js +0 -1
- package/dist-cjs/commands/ListDeploymentsCommand.js +0 -1
- package/dist-cjs/commands/ListEffectiveDeploymentsCommand.js +0 -1
- package/dist-cjs/commands/ListInstalledComponentsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ResolveComponentCandidatesCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.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/ListClientDevicesAssociatedWithCoreDevicePaginator.js +0 -1
- package/dist-cjs/pagination/ListComponentVersionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListComponentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListCoreDevicesPaginator.js +0 -1
- package/dist-cjs/pagination/ListDeploymentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListEffectiveDeploymentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListInstalledComponentsPaginator.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-es/GreengrassV2.js +0 -1
- package/dist-es/GreengrassV2Client.js +0 -1
- package/dist-es/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js +0 -1
- package/dist-es/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js +0 -1
- package/dist-es/commands/CancelDeploymentCommand.js +0 -1
- package/dist-es/commands/CreateComponentVersionCommand.js +0 -1
- package/dist-es/commands/CreateDeploymentCommand.js +0 -1
- package/dist-es/commands/DeleteComponentCommand.js +0 -1
- package/dist-es/commands/DeleteCoreDeviceCommand.js +0 -1
- package/dist-es/commands/DescribeComponentCommand.js +0 -1
- package/dist-es/commands/GetComponentCommand.js +0 -1
- package/dist-es/commands/GetComponentVersionArtifactCommand.js +0 -1
- package/dist-es/commands/GetCoreDeviceCommand.js +0 -1
- package/dist-es/commands/GetDeploymentCommand.js +0 -1
- package/dist-es/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js +0 -1
- package/dist-es/commands/ListComponentVersionsCommand.js +0 -1
- package/dist-es/commands/ListComponentsCommand.js +0 -1
- package/dist-es/commands/ListCoreDevicesCommand.js +0 -1
- package/dist-es/commands/ListDeploymentsCommand.js +0 -1
- package/dist-es/commands/ListEffectiveDeploymentsCommand.js +0 -1
- package/dist-es/commands/ListInstalledComponentsCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/ResolveComponentCandidatesCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.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/ListClientDevicesAssociatedWithCoreDevicePaginator.js +0 -1
- package/dist-es/pagination/ListComponentVersionsPaginator.js +0 -1
- package/dist-es/pagination/ListComponentsPaginator.js +0 -1
- package/dist-es/pagination/ListCoreDevicesPaginator.js +0 -1
- package/dist-es/pagination/ListDeploymentsPaginator.js +0 -1
- package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js +0 -1
- package/dist-es/pagination/ListInstalledComponentsPaginator.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/package.json +33 -30
- package/dist-cjs/GreengrassV2.js.map +0 -1
- package/dist-cjs/GreengrassV2Client.js.map +0 -1
- package/dist-cjs/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js.map +0 -1
- package/dist-cjs/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js.map +0 -1
- package/dist-cjs/commands/CancelDeploymentCommand.js.map +0 -1
- package/dist-cjs/commands/CreateComponentVersionCommand.js.map +0 -1
- package/dist-cjs/commands/CreateDeploymentCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteComponentCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteCoreDeviceCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeComponentCommand.js.map +0 -1
- package/dist-cjs/commands/GetComponentCommand.js.map +0 -1
- package/dist-cjs/commands/GetComponentVersionArtifactCommand.js.map +0 -1
- package/dist-cjs/commands/GetCoreDeviceCommand.js.map +0 -1
- package/dist-cjs/commands/GetDeploymentCommand.js.map +0 -1
- package/dist-cjs/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js.map +0 -1
- package/dist-cjs/commands/ListComponentVersionsCommand.js.map +0 -1
- package/dist-cjs/commands/ListComponentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListCoreDevicesCommand.js.map +0 -1
- package/dist-cjs/commands/ListDeploymentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListEffectiveDeploymentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListInstalledComponentsCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/ResolveComponentCandidatesCommand.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/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/ListClientDevicesAssociatedWithCoreDevicePaginator.js.map +0 -1
- package/dist-cjs/pagination/ListComponentVersionsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListComponentsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListCoreDevicesPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListDeploymentsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListEffectiveDeploymentsPaginator.js.map +0 -1
- package/dist-cjs/pagination/ListInstalledComponentsPaginator.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-es/GreengrassV2.js.map +0 -1
- package/dist-es/GreengrassV2Client.js.map +0 -1
- package/dist-es/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.js.map +0 -1
- package/dist-es/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.js.map +0 -1
- package/dist-es/commands/CancelDeploymentCommand.js.map +0 -1
- package/dist-es/commands/CreateComponentVersionCommand.js.map +0 -1
- package/dist-es/commands/CreateDeploymentCommand.js.map +0 -1
- package/dist-es/commands/DeleteComponentCommand.js.map +0 -1
- package/dist-es/commands/DeleteCoreDeviceCommand.js.map +0 -1
- package/dist-es/commands/DescribeComponentCommand.js.map +0 -1
- package/dist-es/commands/GetComponentCommand.js.map +0 -1
- package/dist-es/commands/GetComponentVersionArtifactCommand.js.map +0 -1
- package/dist-es/commands/GetCoreDeviceCommand.js.map +0 -1
- package/dist-es/commands/GetDeploymentCommand.js.map +0 -1
- package/dist-es/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.js.map +0 -1
- package/dist-es/commands/ListComponentVersionsCommand.js.map +0 -1
- package/dist-es/commands/ListComponentsCommand.js.map +0 -1
- package/dist-es/commands/ListCoreDevicesCommand.js.map +0 -1
- package/dist-es/commands/ListDeploymentsCommand.js.map +0 -1
- package/dist-es/commands/ListEffectiveDeploymentsCommand.js.map +0 -1
- package/dist-es/commands/ListInstalledComponentsCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/ResolveComponentCandidatesCommand.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/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/ListClientDevicesAssociatedWithCoreDevicePaginator.js.map +0 -1
- package/dist-es/pagination/ListComponentVersionsPaginator.js.map +0 -1
- package/dist-es/pagination/ListComponentsPaginator.js.map +0 -1
- package/dist-es/pagination/ListCoreDevicesPaginator.js.map +0 -1
- package/dist-es/pagination/ListDeploymentsPaginator.js.map +0 -1
- package/dist-es/pagination/ListEffectiveDeploymentsPaginator.js.map +0 -1
- package/dist-es/pagination/ListInstalledComponentsPaginator.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/jest.config.js +0 -4
- package/src/GreengrassV2.ts +0 -970
- package/src/GreengrassV2Client.ts +0 -345
- package/src/commands/BatchAssociateClientDeviceWithCoreDeviceCommand.ts +0 -122
- package/src/commands/BatchDisassociateClientDeviceFromCoreDeviceCommand.ts +0 -112
- package/src/commands/CancelDeploymentCommand.ts +0 -97
- package/src/commands/CreateComponentVersionCommand.ts +0 -148
- package/src/commands/CreateDeploymentCommand.ts +0 -105
- package/src/commands/DeleteComponentCommand.ts +0 -101
- package/src/commands/DeleteCoreDeviceCommand.ts +0 -98
- package/src/commands/DescribeComponentCommand.ts +0 -95
- package/src/commands/GetComponentCommand.ts +0 -96
- package/src/commands/GetComponentVersionArtifactCommand.ts +0 -101
- package/src/commands/GetCoreDeviceCommand.ts +0 -95
- package/src/commands/GetDeploymentCommand.ts +0 -95
- package/src/commands/ListClientDevicesAssociatedWithCoreDeviceCommand.ts +0 -111
- package/src/commands/ListComponentVersionsCommand.ts +0 -95
- package/src/commands/ListComponentsCommand.ts +0 -96
- package/src/commands/ListCoreDevicesCommand.ts +0 -95
- package/src/commands/ListDeploymentsCommand.ts +0 -95
- package/src/commands/ListEffectiveDeploymentsCommand.ts +0 -96
- package/src/commands/ListInstalledComponentsCommand.ts +0 -95
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/ResolveComponentCandidatesCommand.ts +0 -112
- package/src/commands/TagResourceCommand.ts +0 -96
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/endpoints.ts +0 -84
- package/src/index.ts +0 -34
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2867
- package/src/pagination/Interfaces.ts +0 -8
- package/src/pagination/ListClientDevicesAssociatedWithCoreDevicePaginator.ts +0 -59
- package/src/pagination/ListComponentVersionsPaginator.ts +0 -59
- package/src/pagination/ListComponentsPaginator.ts +0 -59
- package/src/pagination/ListCoreDevicesPaginator.ts +0 -59
- package/src/pagination/ListDeploymentsPaginator.ts +0 -59
- package/src/pagination/ListEffectiveDeploymentsPaginator.ts +0 -59
- package/src/pagination/ListInstalledComponentsPaginator.ts +0 -59
- package/src/protocols/Aws_restJson1.ts +0 -4401
- 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/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,101 +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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
|
|
15
|
-
import { GetComponentVersionArtifactRequest, GetComponentVersionArtifactResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1GetComponentVersionArtifactCommand,
|
|
18
|
-
serializeAws_restJson1GetComponentVersionArtifactCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface GetComponentVersionArtifactCommandInput extends GetComponentVersionArtifactRequest {}
|
|
22
|
-
export interface GetComponentVersionArtifactCommandOutput
|
|
23
|
-
extends GetComponentVersionArtifactResponse,
|
|
24
|
-
__MetadataBearer {}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* <p>Gets the pre-signed URL to download a public component artifact. Core devices call this
|
|
28
|
-
* operation to identify the URL that they can use to download an artifact to install.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { GreengrassV2Client, GetComponentVersionArtifactCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
33
|
-
* // const { GreengrassV2Client, GetComponentVersionArtifactCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
34
|
-
* const client = new GreengrassV2Client(config);
|
|
35
|
-
* const command = new GetComponentVersionArtifactCommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link GetComponentVersionArtifactCommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link GetComponentVersionArtifactCommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class GetComponentVersionArtifactCommand extends $Command<
|
|
45
|
-
GetComponentVersionArtifactCommandInput,
|
|
46
|
-
GetComponentVersionArtifactCommandOutput,
|
|
47
|
-
GreengrassV2ClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: GetComponentVersionArtifactCommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: GreengrassV2ClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<GetComponentVersionArtifactCommandInput, GetComponentVersionArtifactCommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "GreengrassV2Client";
|
|
72
|
-
const commandName = "GetComponentVersionArtifactCommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: GetComponentVersionArtifactRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: GetComponentVersionArtifactResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: GetComponentVersionArtifactCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_restJson1GetComponentVersionArtifactCommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(
|
|
93
|
-
output: __HttpResponse,
|
|
94
|
-
context: __SerdeContext
|
|
95
|
-
): Promise<GetComponentVersionArtifactCommandOutput> {
|
|
96
|
-
return deserializeAws_restJson1GetComponentVersionArtifactCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|
|
@@ -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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
|
|
15
|
-
import { GetCoreDeviceRequest, GetCoreDeviceResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1GetCoreDeviceCommand,
|
|
18
|
-
serializeAws_restJson1GetCoreDeviceCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface GetCoreDeviceCommandInput extends GetCoreDeviceRequest {}
|
|
22
|
-
export interface GetCoreDeviceCommandOutput extends GetCoreDeviceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves metadata for a Greengrass core device.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { GreengrassV2Client, GetCoreDeviceCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
30
|
-
* // const { GreengrassV2Client, GetCoreDeviceCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
31
|
-
* const client = new GreengrassV2Client(config);
|
|
32
|
-
* const command = new GetCoreDeviceCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link GetCoreDeviceCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link GetCoreDeviceCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class GetCoreDeviceCommand extends $Command<
|
|
42
|
-
GetCoreDeviceCommandInput,
|
|
43
|
-
GetCoreDeviceCommandOutput,
|
|
44
|
-
GreengrassV2ClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: GetCoreDeviceCommandInput) {
|
|
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: GreengrassV2ClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<GetCoreDeviceCommandInput, GetCoreDeviceCommandOutput> {
|
|
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 = "GreengrassV2Client";
|
|
69
|
-
const commandName = "GetCoreDeviceCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: GetCoreDeviceRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: GetCoreDeviceResponse.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: GetCoreDeviceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1GetCoreDeviceCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetCoreDeviceCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1GetCoreDeviceCommand(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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
|
|
15
|
-
import { GetDeploymentRequest, GetDeploymentResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1GetDeploymentCommand,
|
|
18
|
-
serializeAws_restJson1GetDeploymentCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface GetDeploymentCommandInput extends GetDeploymentRequest {}
|
|
22
|
-
export interface GetDeploymentCommandOutput extends GetDeploymentResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Gets a deployment. Deployments define the components that run on Greengrass core devices.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { GreengrassV2Client, GetDeploymentCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
30
|
-
* // const { GreengrassV2Client, GetDeploymentCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
31
|
-
* const client = new GreengrassV2Client(config);
|
|
32
|
-
* const command = new GetDeploymentCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link GetDeploymentCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link GetDeploymentCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class GetDeploymentCommand extends $Command<
|
|
42
|
-
GetDeploymentCommandInput,
|
|
43
|
-
GetDeploymentCommandOutput,
|
|
44
|
-
GreengrassV2ClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: GetDeploymentCommandInput) {
|
|
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: GreengrassV2ClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<GetDeploymentCommandInput, GetDeploymentCommandOutput> {
|
|
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 = "GreengrassV2Client";
|
|
69
|
-
const commandName = "GetDeploymentCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: GetDeploymentRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: GetDeploymentResponse.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: GetDeploymentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1GetDeploymentCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetDeploymentCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1GetDeploymentCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,111 +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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
|
|
15
|
-
import {
|
|
16
|
-
ListClientDevicesAssociatedWithCoreDeviceRequest,
|
|
17
|
-
ListClientDevicesAssociatedWithCoreDeviceResponse,
|
|
18
|
-
} from "../models/models_0";
|
|
19
|
-
import {
|
|
20
|
-
deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand,
|
|
21
|
-
serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand,
|
|
22
|
-
} from "../protocols/Aws_restJson1";
|
|
23
|
-
|
|
24
|
-
export interface ListClientDevicesAssociatedWithCoreDeviceCommandInput
|
|
25
|
-
extends ListClientDevicesAssociatedWithCoreDeviceRequest {}
|
|
26
|
-
export interface ListClientDevicesAssociatedWithCoreDeviceCommandOutput
|
|
27
|
-
extends ListClientDevicesAssociatedWithCoreDeviceResponse,
|
|
28
|
-
__MetadataBearer {}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* <p>Retrieves a paginated list of client devices that are associated with a core
|
|
32
|
-
* device.</p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { GreengrassV2Client, ListClientDevicesAssociatedWithCoreDeviceCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
37
|
-
* // const { GreengrassV2Client, ListClientDevicesAssociatedWithCoreDeviceCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
38
|
-
* const client = new GreengrassV2Client(config);
|
|
39
|
-
* const command = new ListClientDevicesAssociatedWithCoreDeviceCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link ListClientDevicesAssociatedWithCoreDeviceCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link ListClientDevicesAssociatedWithCoreDeviceCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class ListClientDevicesAssociatedWithCoreDeviceCommand extends $Command<
|
|
49
|
-
ListClientDevicesAssociatedWithCoreDeviceCommandInput,
|
|
50
|
-
ListClientDevicesAssociatedWithCoreDeviceCommandOutput,
|
|
51
|
-
GreengrassV2ClientResolvedConfig
|
|
52
|
-
> {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
|
|
56
|
-
constructor(readonly input: ListClientDevicesAssociatedWithCoreDeviceCommandInput) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
|
-
super();
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
resolveMiddleware(
|
|
66
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
67
|
-
configuration: GreengrassV2ClientResolvedConfig,
|
|
68
|
-
options?: __HttpHandlerOptions
|
|
69
|
-
): Handler<
|
|
70
|
-
ListClientDevicesAssociatedWithCoreDeviceCommandInput,
|
|
71
|
-
ListClientDevicesAssociatedWithCoreDeviceCommandOutput
|
|
72
|
-
> {
|
|
73
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
74
|
-
|
|
75
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
76
|
-
|
|
77
|
-
const { logger } = configuration;
|
|
78
|
-
const clientName = "GreengrassV2Client";
|
|
79
|
-
const commandName = "ListClientDevicesAssociatedWithCoreDeviceCommand";
|
|
80
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
81
|
-
logger,
|
|
82
|
-
clientName,
|
|
83
|
-
commandName,
|
|
84
|
-
inputFilterSensitiveLog: ListClientDevicesAssociatedWithCoreDeviceRequest.filterSensitiveLog,
|
|
85
|
-
outputFilterSensitiveLog: ListClientDevicesAssociatedWithCoreDeviceResponse.filterSensitiveLog,
|
|
86
|
-
};
|
|
87
|
-
const { requestHandler } = configuration;
|
|
88
|
-
return stack.resolve(
|
|
89
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
90
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
91
|
-
handlerExecutionContext
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private serialize(
|
|
96
|
-
input: ListClientDevicesAssociatedWithCoreDeviceCommandInput,
|
|
97
|
-
context: __SerdeContext
|
|
98
|
-
): Promise<__HttpRequest> {
|
|
99
|
-
return serializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand(input, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private deserialize(
|
|
103
|
-
output: __HttpResponse,
|
|
104
|
-
context: __SerdeContext
|
|
105
|
-
): Promise<ListClientDevicesAssociatedWithCoreDeviceCommandOutput> {
|
|
106
|
-
return deserializeAws_restJson1ListClientDevicesAssociatedWithCoreDeviceCommand(output, context);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// Start section: command_body_extra
|
|
110
|
-
// End section: command_body_extra
|
|
111
|
-
}
|
|
@@ -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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
|
|
15
|
-
import { ListComponentVersionsRequest, ListComponentVersionsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListComponentVersionsCommand,
|
|
18
|
-
serializeAws_restJson1ListComponentVersionsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListComponentVersionsCommandInput extends ListComponentVersionsRequest {}
|
|
22
|
-
export interface ListComponentVersionsCommandOutput extends ListComponentVersionsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a paginated list of all versions for a component. Greater versions are listed first.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { GreengrassV2Client, ListComponentVersionsCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
30
|
-
* // const { GreengrassV2Client, ListComponentVersionsCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
31
|
-
* const client = new GreengrassV2Client(config);
|
|
32
|
-
* const command = new ListComponentVersionsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListComponentVersionsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListComponentVersionsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListComponentVersionsCommand extends $Command<
|
|
42
|
-
ListComponentVersionsCommandInput,
|
|
43
|
-
ListComponentVersionsCommandOutput,
|
|
44
|
-
GreengrassV2ClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListComponentVersionsCommandInput) {
|
|
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: GreengrassV2ClientResolvedConfig,
|
|
61
|
-
options?: __HttpHandlerOptions
|
|
62
|
-
): Handler<ListComponentVersionsCommandInput, ListComponentVersionsCommandOutput> {
|
|
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 = "GreengrassV2Client";
|
|
69
|
-
const commandName = "ListComponentVersionsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListComponentVersionsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListComponentVersionsResponse.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: ListComponentVersionsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListComponentVersionsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListComponentVersionsCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListComponentVersionsCommand(output, context);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// Start section: command_body_extra
|
|
94
|
-
// End section: command_body_extra
|
|
95
|
-
}
|
|
@@ -1,96 +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 { GreengrassV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GreengrassV2Client";
|
|
15
|
-
import { ListComponentsRequest, ListComponentsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListComponentsCommand,
|
|
18
|
-
serializeAws_restJson1ListComponentsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListComponentsCommandInput extends ListComponentsRequest {}
|
|
22
|
-
export interface ListComponentsCommandOutput extends ListComponentsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a paginated list of component summaries. This list includes components that you
|
|
26
|
-
* have permission to view.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { GreengrassV2Client, ListComponentsCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
31
|
-
* // const { GreengrassV2Client, ListComponentsCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
32
|
-
* const client = new GreengrassV2Client(config);
|
|
33
|
-
* const command = new ListComponentsCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link ListComponentsCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link ListComponentsCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class ListComponentsCommand extends $Command<
|
|
43
|
-
ListComponentsCommandInput,
|
|
44
|
-
ListComponentsCommandOutput,
|
|
45
|
-
GreengrassV2ClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: ListComponentsCommandInput) {
|
|
51
|
-
// Start section: command_constructor
|
|
52
|
-
super();
|
|
53
|
-
// End section: command_constructor
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
resolveMiddleware(
|
|
60
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
61
|
-
configuration: GreengrassV2ClientResolvedConfig,
|
|
62
|
-
options?: __HttpHandlerOptions
|
|
63
|
-
): Handler<ListComponentsCommandInput, ListComponentsCommandOutput> {
|
|
64
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "GreengrassV2Client";
|
|
70
|
-
const commandName = "ListComponentsCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: ListComponentsRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: ListComponentsResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve(
|
|
80
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
81
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
82
|
-
handlerExecutionContext
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private serialize(input: ListComponentsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1ListComponentsCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListComponentsCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1ListComponentsCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|