@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,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 { ListCoreDevicesRequest, ListCoreDevicesResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListCoreDevicesCommand,
|
|
18
|
-
serializeAws_restJson1ListCoreDevicesCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListCoreDevicesCommandInput extends ListCoreDevicesRequest {}
|
|
22
|
-
export interface ListCoreDevicesCommandOutput extends ListCoreDevicesResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a paginated list of 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, ListCoreDevicesCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
30
|
-
* // const { GreengrassV2Client, ListCoreDevicesCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
31
|
-
* const client = new GreengrassV2Client(config);
|
|
32
|
-
* const command = new ListCoreDevicesCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListCoreDevicesCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListCoreDevicesCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListCoreDevicesCommand extends $Command<
|
|
42
|
-
ListCoreDevicesCommandInput,
|
|
43
|
-
ListCoreDevicesCommandOutput,
|
|
44
|
-
GreengrassV2ClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListCoreDevicesCommandInput) {
|
|
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<ListCoreDevicesCommandInput, ListCoreDevicesCommandOutput> {
|
|
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 = "ListCoreDevicesCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListCoreDevicesRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListCoreDevicesResponse.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: ListCoreDevicesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListCoreDevicesCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListCoreDevicesCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListCoreDevicesCommand(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 { ListDeploymentsRequest, ListDeploymentsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListDeploymentsCommand,
|
|
18
|
-
serializeAws_restJson1ListDeploymentsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListDeploymentsCommandInput extends ListDeploymentsRequest {}
|
|
22
|
-
export interface ListDeploymentsCommandOutput extends ListDeploymentsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a paginated list of deployments.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { GreengrassV2Client, ListDeploymentsCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
30
|
-
* // const { GreengrassV2Client, ListDeploymentsCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
31
|
-
* const client = new GreengrassV2Client(config);
|
|
32
|
-
* const command = new ListDeploymentsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListDeploymentsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListDeploymentsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListDeploymentsCommand extends $Command<
|
|
42
|
-
ListDeploymentsCommandInput,
|
|
43
|
-
ListDeploymentsCommandOutput,
|
|
44
|
-
GreengrassV2ClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListDeploymentsCommandInput) {
|
|
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<ListDeploymentsCommandInput, ListDeploymentsCommandOutput> {
|
|
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 = "ListDeploymentsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListDeploymentsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListDeploymentsResponse.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: ListDeploymentsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListDeploymentsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListDeploymentsCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListDeploymentsCommand(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 { ListEffectiveDeploymentsRequest, ListEffectiveDeploymentsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListEffectiveDeploymentsCommand,
|
|
18
|
-
serializeAws_restJson1ListEffectiveDeploymentsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListEffectiveDeploymentsCommandInput extends ListEffectiveDeploymentsRequest {}
|
|
22
|
-
export interface ListEffectiveDeploymentsCommandOutput extends ListEffectiveDeploymentsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a paginated list of deployment jobs that IoT Greengrass sends to Greengrass core
|
|
26
|
-
* devices.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { GreengrassV2Client, ListEffectiveDeploymentsCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
31
|
-
* // const { GreengrassV2Client, ListEffectiveDeploymentsCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
32
|
-
* const client = new GreengrassV2Client(config);
|
|
33
|
-
* const command = new ListEffectiveDeploymentsCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link ListEffectiveDeploymentsCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link ListEffectiveDeploymentsCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export class ListEffectiveDeploymentsCommand extends $Command<
|
|
43
|
-
ListEffectiveDeploymentsCommandInput,
|
|
44
|
-
ListEffectiveDeploymentsCommandOutput,
|
|
45
|
-
GreengrassV2ClientResolvedConfig
|
|
46
|
-
> {
|
|
47
|
-
// Start section: command_properties
|
|
48
|
-
// End section: command_properties
|
|
49
|
-
|
|
50
|
-
constructor(readonly input: ListEffectiveDeploymentsCommandInput) {
|
|
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<ListEffectiveDeploymentsCommandInput, ListEffectiveDeploymentsCommandOutput> {
|
|
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 = "ListEffectiveDeploymentsCommand";
|
|
71
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: ListEffectiveDeploymentsRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: ListEffectiveDeploymentsResponse.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: ListEffectiveDeploymentsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
87
|
-
return serializeAws_restJson1ListEffectiveDeploymentsCommand(input, context);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListEffectiveDeploymentsCommandOutput> {
|
|
91
|
-
return deserializeAws_restJson1ListEffectiveDeploymentsCommand(output, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Start section: command_body_extra
|
|
95
|
-
// End section: command_body_extra
|
|
96
|
-
}
|
|
@@ -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 { ListInstalledComponentsRequest, ListInstalledComponentsResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListInstalledComponentsCommand,
|
|
18
|
-
serializeAws_restJson1ListInstalledComponentsCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListInstalledComponentsCommandInput extends ListInstalledComponentsRequest {}
|
|
22
|
-
export interface ListInstalledComponentsCommandOutput extends ListInstalledComponentsResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a paginated list of the components that a Greengrass core device runs.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { GreengrassV2Client, ListInstalledComponentsCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
30
|
-
* // const { GreengrassV2Client, ListInstalledComponentsCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
31
|
-
* const client = new GreengrassV2Client(config);
|
|
32
|
-
* const command = new ListInstalledComponentsCommand(input);
|
|
33
|
-
* const response = await client.send(command);
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* @see {@link ListInstalledComponentsCommandInput} for command's `input` shape.
|
|
37
|
-
* @see {@link ListInstalledComponentsCommandOutput} for command's `response` shape.
|
|
38
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListInstalledComponentsCommand extends $Command<
|
|
42
|
-
ListInstalledComponentsCommandInput,
|
|
43
|
-
ListInstalledComponentsCommandOutput,
|
|
44
|
-
GreengrassV2ClientResolvedConfig
|
|
45
|
-
> {
|
|
46
|
-
// Start section: command_properties
|
|
47
|
-
// End section: command_properties
|
|
48
|
-
|
|
49
|
-
constructor(readonly input: ListInstalledComponentsCommandInput) {
|
|
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<ListInstalledComponentsCommandInput, ListInstalledComponentsCommandOutput> {
|
|
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 = "ListInstalledComponentsCommand";
|
|
70
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: ListInstalledComponentsRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: ListInstalledComponentsResponse.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: ListInstalledComponentsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
86
|
-
return serializeAws_restJson1ListInstalledComponentsCommand(input, context);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListInstalledComponentsCommandOutput> {
|
|
90
|
-
return deserializeAws_restJson1ListInstalledComponentsCommand(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 { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ListTagsForResourceCommand,
|
|
18
|
-
serializeAws_restJson1ListTagsForResourceCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {}
|
|
22
|
-
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves the list of tags for an IoT Greengrass resource.</p>
|
|
26
|
-
* @example
|
|
27
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
-
* ```javascript
|
|
29
|
-
* import { GreengrassV2Client, ListTagsForResourceCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
30
|
-
* // const { GreengrassV2Client, ListTagsForResourceCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
31
|
-
* const client = new GreengrassV2Client(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 GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
export class ListTagsForResourceCommand extends $Command<
|
|
42
|
-
ListTagsForResourceCommandInput,
|
|
43
|
-
ListTagsForResourceCommandOutput,
|
|
44
|
-
GreengrassV2ClientResolvedConfig
|
|
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: GreengrassV2ClientResolvedConfig,
|
|
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 = "GreengrassV2Client";
|
|
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,112 +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 { ResolveComponentCandidatesRequest, ResolveComponentCandidatesResponse } from "../models/models_0";
|
|
16
|
-
import {
|
|
17
|
-
deserializeAws_restJson1ResolveComponentCandidatesCommand,
|
|
18
|
-
serializeAws_restJson1ResolveComponentCandidatesCommand,
|
|
19
|
-
} from "../protocols/Aws_restJson1";
|
|
20
|
-
|
|
21
|
-
export interface ResolveComponentCandidatesCommandInput extends ResolveComponentCandidatesRequest {}
|
|
22
|
-
export interface ResolveComponentCandidatesCommandOutput extends ResolveComponentCandidatesResponse, __MetadataBearer {}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* <p>Retrieves a list of components that meet the component, version, and platform requirements
|
|
26
|
-
* of a deployment. Greengrass core devices call this operation when they receive a deployment to
|
|
27
|
-
* identify the components to install.</p>
|
|
28
|
-
* <p>This operation identifies components that meet all dependency requirements for a
|
|
29
|
-
* deployment. If the requirements conflict, then this operation returns an error and the
|
|
30
|
-
* deployment fails. For example, this occurs if component <code>A</code> requires version
|
|
31
|
-
* <code>>2.0.0</code> and component <code>B</code> requires version <code><2.0.0</code>
|
|
32
|
-
* of a component dependency.</p>
|
|
33
|
-
* <p>When you specify the component candidates to resolve, IoT Greengrass compares each component's
|
|
34
|
-
* digest from the core device with the component's digest in the Amazon Web Services Cloud. If the digests don't
|
|
35
|
-
* match, then IoT Greengrass specifies to use the version from the Amazon Web Services Cloud.</p>
|
|
36
|
-
* <important>
|
|
37
|
-
* <p>To use this operation, you must use the data plane API endpoint and authenticate with an
|
|
38
|
-
* IoT device certificate. For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/greengrass.html">IoT Greengrass endpoints and quotas</a>.</p>
|
|
39
|
-
* </important>
|
|
40
|
-
* @example
|
|
41
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
-
* ```javascript
|
|
43
|
-
* import { GreengrassV2Client, ResolveComponentCandidatesCommand } from "@aws-sdk/client-greengrassv2"; // ES Modules import
|
|
44
|
-
* // const { GreengrassV2Client, ResolveComponentCandidatesCommand } = require("@aws-sdk/client-greengrassv2"); // CommonJS import
|
|
45
|
-
* const client = new GreengrassV2Client(config);
|
|
46
|
-
* const command = new ResolveComponentCandidatesCommand(input);
|
|
47
|
-
* const response = await client.send(command);
|
|
48
|
-
* ```
|
|
49
|
-
*
|
|
50
|
-
* @see {@link ResolveComponentCandidatesCommandInput} for command's `input` shape.
|
|
51
|
-
* @see {@link ResolveComponentCandidatesCommandOutput} for command's `response` shape.
|
|
52
|
-
* @see {@link GreengrassV2ClientResolvedConfig | config} for command's `input` shape.
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
export class ResolveComponentCandidatesCommand extends $Command<
|
|
56
|
-
ResolveComponentCandidatesCommandInput,
|
|
57
|
-
ResolveComponentCandidatesCommandOutput,
|
|
58
|
-
GreengrassV2ClientResolvedConfig
|
|
59
|
-
> {
|
|
60
|
-
// Start section: command_properties
|
|
61
|
-
// End section: command_properties
|
|
62
|
-
|
|
63
|
-
constructor(readonly input: ResolveComponentCandidatesCommandInput) {
|
|
64
|
-
// Start section: command_constructor
|
|
65
|
-
super();
|
|
66
|
-
// End section: command_constructor
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
resolveMiddleware(
|
|
73
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
74
|
-
configuration: GreengrassV2ClientResolvedConfig,
|
|
75
|
-
options?: __HttpHandlerOptions
|
|
76
|
-
): Handler<ResolveComponentCandidatesCommandInput, ResolveComponentCandidatesCommandOutput> {
|
|
77
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
78
|
-
|
|
79
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
80
|
-
|
|
81
|
-
const { logger } = configuration;
|
|
82
|
-
const clientName = "GreengrassV2Client";
|
|
83
|
-
const commandName = "ResolveComponentCandidatesCommand";
|
|
84
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
85
|
-
logger,
|
|
86
|
-
clientName,
|
|
87
|
-
commandName,
|
|
88
|
-
inputFilterSensitiveLog: ResolveComponentCandidatesRequest.filterSensitiveLog,
|
|
89
|
-
outputFilterSensitiveLog: ResolveComponentCandidatesResponse.filterSensitiveLog,
|
|
90
|
-
};
|
|
91
|
-
const { requestHandler } = configuration;
|
|
92
|
-
return stack.resolve(
|
|
93
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
94
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
95
|
-
handlerExecutionContext
|
|
96
|
-
);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
private serialize(input: ResolveComponentCandidatesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
100
|
-
return serializeAws_restJson1ResolveComponentCandidatesCommand(input, context);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
private deserialize(
|
|
104
|
-
output: __HttpResponse,
|
|
105
|
-
context: __SerdeContext
|
|
106
|
-
): Promise<ResolveComponentCandidatesCommandOutput> {
|
|
107
|
-
return deserializeAws_restJson1ResolveComponentCandidatesCommand(output, context);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Start section: command_body_extra
|
|
111
|
-
// End section: command_body_extra
|
|
112
|
-
}
|