aws-sdk 2.810.0 → 2.814.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 +35 -1
- package/README.md +2 -3
- package/apis/amp-2020-08-01.examples.json +5 -0
- package/apis/amp-2020-08-01.min.json +211 -0
- package/apis/amp-2020-08-01.paginators.json +10 -0
- package/apis/ce-2017-10-25.min.json +101 -97
- package/apis/config-2014-11-12.min.json +40 -6
- package/apis/dlm-2018-01-12.min.json +104 -16
- package/apis/ec2-2016-11-15.min.json +11 -0
- package/apis/greengrassv2-2020-11-30.examples.json +5 -0
- package/apis/greengrassv2-2020-11-30.min.json +1069 -0
- package/apis/greengrassv2-2020-11-30.paginators.json +40 -0
- package/apis/imagebuilder-2019-12-02.min.json +375 -88
- package/apis/imagebuilder-2019-12-02.paginators.json +24 -9
- package/apis/iot-2015-05-28.min.json +904 -278
- package/apis/iot-2015-05-28.paginators.json +24 -0
- package/apis/iotanalytics-2017-11-27.min.json +79 -27
- package/apis/iotdeviceadvisor-2020-09-18.examples.json +5 -0
- package/apis/iotdeviceadvisor-2020-09-18.min.json +596 -0
- package/apis/iotdeviceadvisor-2020-09-18.paginators.json +19 -0
- package/apis/iotfleethub-2020-11-03.examples.json +5 -0
- package/apis/iotfleethub-2020-11-03.min.json +292 -0
- package/apis/iotfleethub-2020-11-03.paginators.json +9 -0
- package/apis/iotwireless-2020-11-22.examples.json +5 -0
- package/apis/iotwireless-2020-11-22.min.json +1832 -0
- package/apis/iotwireless-2020-11-22.paginators.json +29 -0
- package/apis/kms-2014-11-01.examples.json +7 -4
- package/apis/kms-2014-11-01.min.json +7 -1
- package/apis/lambda-2015-03-31.examples.json +6 -6
- package/apis/lambda-2015-03-31.min.json +140 -100
- package/apis/location-2020-11-19.examples.json +5 -0
- package/apis/location-2020-11-19.min.json +1759 -0
- package/apis/location-2020-11-19.paginators.json +44 -0
- package/apis/metadata.json +21 -0
- package/apis/quicksight-2018-04-01.min.json +120 -119
- package/apis/rds-2014-10-31.min.json +192 -172
- package/apis/route53-2013-04-01.min.json +372 -96
- package/apis/route53resolver-2018-04-01.min.json +81 -6
- package/apis/route53resolver-2018-04-01.paginators.json +6 -0
- package/apis/servicecatalog-2015-12-10.min.json +187 -117
- package/apis/servicecatalog-2015-12-10.paginators.json +5 -0
- package/apis/ssm-2014-11-06.min.json +606 -293
- package/apis/ssm-2014-11-06.paginators.json +12 -0
- package/apis/wellarchitected-2020-03-31.examples.json +5 -0
- package/apis/wellarchitected-2020-03-31.min.json +1329 -0
- package/apis/wellarchitected-2020-03-31.paginators.json +49 -0
- package/clients/all.d.ts +7 -0
- package/clients/all.js +8 -1
- package/clients/amp.d.ts +220 -0
- package/clients/amp.js +18 -0
- package/clients/configservice.d.ts +49 -28
- package/clients/costexplorer.d.ts +3 -2
- package/clients/dlm.d.ts +99 -7
- package/clients/ec2.d.ts +14 -2
- package/clients/greengrassv2.d.ts +1270 -0
- package/clients/greengrassv2.js +18 -0
- package/clients/imagebuilder.d.ts +433 -5
- package/clients/iot.d.ts +770 -60
- package/clients/iotanalytics.d.ts +68 -2
- package/clients/iotdeviceadvisor.d.ts +710 -0
- package/clients/iotdeviceadvisor.js +18 -0
- package/clients/iotfleethub.d.ts +315 -0
- package/clients/iotfleethub.js +18 -0
- package/clients/iotwireless.d.ts +2124 -0
- package/clients/iotwireless.js +18 -0
- package/clients/kms.d.ts +117 -109
- package/clients/lambda.d.ts +63 -17
- package/clients/location.d.ts +1498 -0
- package/clients/location.js +18 -0
- package/clients/quicksight.d.ts +15 -10
- package/clients/rds.d.ts +41 -14
- package/clients/route53.d.ts +247 -1
- package/clients/route53resolver.d.ts +105 -8
- package/clients/servicecatalog.d.ts +122 -14
- package/clients/sqs.d.ts +23 -23
- package/clients/ssm.d.ts +534 -31
- package/clients/wellarchitected.d.ts +871 -0
- package/clients/wellarchitected.js +18 -0
- package/dist/aws-sdk-core-react-native.js +7 -2
- package/dist/aws-sdk-react-native.js +293 -24
- package/dist/aws-sdk.js +2709 -1190
- package/dist/aws-sdk.min.js +81 -81
- package/lib/config_service_placeholders.d.ts +14 -0
- package/lib/core.js +1 -1
- package/lib/util.js +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1270 @@
|
|
|
1
|
+
import {Request} from '../lib/request';
|
|
2
|
+
import {Response} from '../lib/response';
|
|
3
|
+
import {AWSError} from '../lib/error';
|
|
4
|
+
import {Service} from '../lib/service';
|
|
5
|
+
import {ServiceConfigurationOptions} from '../lib/service';
|
|
6
|
+
import {ConfigBase as Config} from '../lib/config-base';
|
|
7
|
+
interface Blob {}
|
|
8
|
+
declare class GreengrassV2 extends Service {
|
|
9
|
+
/**
|
|
10
|
+
* Constructs a service object. This object has one method for each API operation.
|
|
11
|
+
*/
|
|
12
|
+
constructor(options?: GreengrassV2.Types.ClientConfiguration)
|
|
13
|
+
config: Config & GreengrassV2.Types.ClientConfiguration;
|
|
14
|
+
/**
|
|
15
|
+
* Cancels a deployment. This operation cancels the deployment for devices that haven't yet received it. If a device already received the deployment, this operation doesn't change anything for that device.
|
|
16
|
+
*/
|
|
17
|
+
cancelDeployment(params: GreengrassV2.Types.CancelDeploymentRequest, callback?: (err: AWSError, data: GreengrassV2.Types.CancelDeploymentResponse) => void): Request<GreengrassV2.Types.CancelDeploymentResponse, AWSError>;
|
|
18
|
+
/**
|
|
19
|
+
* Cancels a deployment. This operation cancels the deployment for devices that haven't yet received it. If a device already received the deployment, this operation doesn't change anything for that device.
|
|
20
|
+
*/
|
|
21
|
+
cancelDeployment(callback?: (err: AWSError, data: GreengrassV2.Types.CancelDeploymentResponse) => void): Request<GreengrassV2.Types.CancelDeploymentResponse, AWSError>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a component. Components are software that run on AWS IoT Greengrass core devices. After you develop and test a component on your core device, you can use this operation to upload your component to AWS IoT Greengrass. Then, you can deploy the component to other core devices. You can use this operation to do the following: Create components from recipes Create a component from a recipe, which is a file that defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform capability. For more information, see AWS IoT Greengrass component recipe reference in the AWS IoT Greengrass V2 Developer Guide. To create a component from a recipe, specify inlineRecipe when you call this operation. Create components from Lambda functions Create a component from an AWS Lambda function that runs on AWS IoT Greengrass. This creates a recipe and artifacts from the Lambda function's deployment package. You can use this operation to migrate Lambda functions from AWS IoT Greengrass V1 to AWS IoT Greengrass V2. This function only accepts Lambda functions that use the following runtimes: Python 2.7 – python2.7 Python 3.7 – python3.7 Python 3.8 – python3.8 Java 8 – java8 Node.js 10 – nodejs10.x Node.js 12 – nodejs12.x To create a component from a Lambda function, specify lambdaFunction when you call this operation.
|
|
24
|
+
*/
|
|
25
|
+
createComponentVersion(params: GreengrassV2.Types.CreateComponentVersionRequest, callback?: (err: AWSError, data: GreengrassV2.Types.CreateComponentVersionResponse) => void): Request<GreengrassV2.Types.CreateComponentVersionResponse, AWSError>;
|
|
26
|
+
/**
|
|
27
|
+
* Creates a component. Components are software that run on AWS IoT Greengrass core devices. After you develop and test a component on your core device, you can use this operation to upload your component to AWS IoT Greengrass. Then, you can deploy the component to other core devices. You can use this operation to do the following: Create components from recipes Create a component from a recipe, which is a file that defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform capability. For more information, see AWS IoT Greengrass component recipe reference in the AWS IoT Greengrass V2 Developer Guide. To create a component from a recipe, specify inlineRecipe when you call this operation. Create components from Lambda functions Create a component from an AWS Lambda function that runs on AWS IoT Greengrass. This creates a recipe and artifacts from the Lambda function's deployment package. You can use this operation to migrate Lambda functions from AWS IoT Greengrass V1 to AWS IoT Greengrass V2. This function only accepts Lambda functions that use the following runtimes: Python 2.7 – python2.7 Python 3.7 – python3.7 Python 3.8 – python3.8 Java 8 – java8 Node.js 10 – nodejs10.x Node.js 12 – nodejs12.x To create a component from a Lambda function, specify lambdaFunction when you call this operation.
|
|
28
|
+
*/
|
|
29
|
+
createComponentVersion(callback?: (err: AWSError, data: GreengrassV2.Types.CreateComponentVersionResponse) => void): Request<GreengrassV2.Types.CreateComponentVersionResponse, AWSError>;
|
|
30
|
+
/**
|
|
31
|
+
* Creates a continuous deployment for a target, which is a AWS IoT Greengrass core device or group of core devices. When you add a new core device to a group of core devices that has a deployment, AWS IoT Greengrass deploys that group's deployment to the new device. You can define one deployment for each target. When you create a new deployment for a target that has an existing deployment, you replace the previous deployment. AWS IoT Greengrass applies the new deployment to the target devices. Every deployment has a revision number that indicates how many deployment revisions you define for a target. Use this operation to create a new revision of an existing deployment. This operation returns the revision number of the new deployment when you create it. For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide.
|
|
32
|
+
*/
|
|
33
|
+
createDeployment(params: GreengrassV2.Types.CreateDeploymentRequest, callback?: (err: AWSError, data: GreengrassV2.Types.CreateDeploymentResponse) => void): Request<GreengrassV2.Types.CreateDeploymentResponse, AWSError>;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a continuous deployment for a target, which is a AWS IoT Greengrass core device or group of core devices. When you add a new core device to a group of core devices that has a deployment, AWS IoT Greengrass deploys that group's deployment to the new device. You can define one deployment for each target. When you create a new deployment for a target that has an existing deployment, you replace the previous deployment. AWS IoT Greengrass applies the new deployment to the target devices. Every deployment has a revision number that indicates how many deployment revisions you define for a target. Use this operation to create a new revision of an existing deployment. This operation returns the revision number of the new deployment when you create it. For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide.
|
|
36
|
+
*/
|
|
37
|
+
createDeployment(callback?: (err: AWSError, data: GreengrassV2.Types.CreateDeploymentResponse) => void): Request<GreengrassV2.Types.CreateDeploymentResponse, AWSError>;
|
|
38
|
+
/**
|
|
39
|
+
* Deletes a version of a component from AWS IoT Greengrass. This operation deletes the component's recipe and artifacts. As a result, deployments that refer to this component version will fail. If you have deployments that use this component version, you can remove the component from the deployment or update the deployment to use a valid version.
|
|
40
|
+
*/
|
|
41
|
+
deleteComponent(params: GreengrassV2.Types.DeleteComponentRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
|
42
|
+
/**
|
|
43
|
+
* Deletes a version of a component from AWS IoT Greengrass. This operation deletes the component's recipe and artifacts. As a result, deployments that refer to this component version will fail. If you have deployments that use this component version, you can remove the component from the deployment or update the deployment to use a valid version.
|
|
44
|
+
*/
|
|
45
|
+
deleteComponent(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
|
46
|
+
/**
|
|
47
|
+
* Deletes a AWS IoT Greengrass core device, which is an AWS IoT thing. This operation removes the core device from the list of core devices. This operation doesn't delete the AWS IoT thing. For more information about how to delete the AWS IoT thing, see DeleteThing in the AWS IoT API Reference.
|
|
48
|
+
*/
|
|
49
|
+
deleteCoreDevice(params: GreengrassV2.Types.DeleteCoreDeviceRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
|
50
|
+
/**
|
|
51
|
+
* Deletes a AWS IoT Greengrass core device, which is an AWS IoT thing. This operation removes the core device from the list of core devices. This operation doesn't delete the AWS IoT thing. For more information about how to delete the AWS IoT thing, see DeleteThing in the AWS IoT API Reference.
|
|
52
|
+
*/
|
|
53
|
+
deleteCoreDevice(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves metadata for a version of a component.
|
|
56
|
+
*/
|
|
57
|
+
describeComponent(params: GreengrassV2.Types.DescribeComponentRequest, callback?: (err: AWSError, data: GreengrassV2.Types.DescribeComponentResponse) => void): Request<GreengrassV2.Types.DescribeComponentResponse, AWSError>;
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves metadata for a version of a component.
|
|
60
|
+
*/
|
|
61
|
+
describeComponent(callback?: (err: AWSError, data: GreengrassV2.Types.DescribeComponentResponse) => void): Request<GreengrassV2.Types.DescribeComponentResponse, AWSError>;
|
|
62
|
+
/**
|
|
63
|
+
* Gets the recipe for a version of a component. Core devices can call this operation to identify the artifacts and requirements to install a component.
|
|
64
|
+
*/
|
|
65
|
+
getComponent(params: GreengrassV2.Types.GetComponentRequest, callback?: (err: AWSError, data: GreengrassV2.Types.GetComponentResponse) => void): Request<GreengrassV2.Types.GetComponentResponse, AWSError>;
|
|
66
|
+
/**
|
|
67
|
+
* Gets the recipe for a version of a component. Core devices can call this operation to identify the artifacts and requirements to install a component.
|
|
68
|
+
*/
|
|
69
|
+
getComponent(callback?: (err: AWSError, data: GreengrassV2.Types.GetComponentResponse) => void): Request<GreengrassV2.Types.GetComponentResponse, AWSError>;
|
|
70
|
+
/**
|
|
71
|
+
* Gets the pre-signed URL to a component artifact in an S3 bucket. Core devices can call this operation to identify the URL that they can use to download an artifact to install.
|
|
72
|
+
*/
|
|
73
|
+
getComponentVersionArtifact(params: GreengrassV2.Types.GetComponentVersionArtifactRequest, callback?: (err: AWSError, data: GreengrassV2.Types.GetComponentVersionArtifactResponse) => void): Request<GreengrassV2.Types.GetComponentVersionArtifactResponse, AWSError>;
|
|
74
|
+
/**
|
|
75
|
+
* Gets the pre-signed URL to a component artifact in an S3 bucket. Core devices can call this operation to identify the URL that they can use to download an artifact to install.
|
|
76
|
+
*/
|
|
77
|
+
getComponentVersionArtifact(callback?: (err: AWSError, data: GreengrassV2.Types.GetComponentVersionArtifactResponse) => void): Request<GreengrassV2.Types.GetComponentVersionArtifactResponse, AWSError>;
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves metadata for a AWS IoT Greengrass core device.
|
|
80
|
+
*/
|
|
81
|
+
getCoreDevice(params: GreengrassV2.Types.GetCoreDeviceRequest, callback?: (err: AWSError, data: GreengrassV2.Types.GetCoreDeviceResponse) => void): Request<GreengrassV2.Types.GetCoreDeviceResponse, AWSError>;
|
|
82
|
+
/**
|
|
83
|
+
* Retrieves metadata for a AWS IoT Greengrass core device.
|
|
84
|
+
*/
|
|
85
|
+
getCoreDevice(callback?: (err: AWSError, data: GreengrassV2.Types.GetCoreDeviceResponse) => void): Request<GreengrassV2.Types.GetCoreDeviceResponse, AWSError>;
|
|
86
|
+
/**
|
|
87
|
+
* Gets a deployment. Deployments define the components that run on AWS IoT Greengrass core devices.
|
|
88
|
+
*/
|
|
89
|
+
getDeployment(params: GreengrassV2.Types.GetDeploymentRequest, callback?: (err: AWSError, data: GreengrassV2.Types.GetDeploymentResponse) => void): Request<GreengrassV2.Types.GetDeploymentResponse, AWSError>;
|
|
90
|
+
/**
|
|
91
|
+
* Gets a deployment. Deployments define the components that run on AWS IoT Greengrass core devices.
|
|
92
|
+
*/
|
|
93
|
+
getDeployment(callback?: (err: AWSError, data: GreengrassV2.Types.GetDeploymentResponse) => void): Request<GreengrassV2.Types.GetDeploymentResponse, AWSError>;
|
|
94
|
+
/**
|
|
95
|
+
* Retrieves a paginated list of all versions for a component.
|
|
96
|
+
*/
|
|
97
|
+
listComponentVersions(params: GreengrassV2.Types.ListComponentVersionsRequest, callback?: (err: AWSError, data: GreengrassV2.Types.ListComponentVersionsResponse) => void): Request<GreengrassV2.Types.ListComponentVersionsResponse, AWSError>;
|
|
98
|
+
/**
|
|
99
|
+
* Retrieves a paginated list of all versions for a component.
|
|
100
|
+
*/
|
|
101
|
+
listComponentVersions(callback?: (err: AWSError, data: GreengrassV2.Types.ListComponentVersionsResponse) => void): Request<GreengrassV2.Types.ListComponentVersionsResponse, AWSError>;
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves a paginated list of component summaries. This list includes components that you have permission to view.
|
|
104
|
+
*/
|
|
105
|
+
listComponents(params: GreengrassV2.Types.ListComponentsRequest, callback?: (err: AWSError, data: GreengrassV2.Types.ListComponentsResponse) => void): Request<GreengrassV2.Types.ListComponentsResponse, AWSError>;
|
|
106
|
+
/**
|
|
107
|
+
* Retrieves a paginated list of component summaries. This list includes components that you have permission to view.
|
|
108
|
+
*/
|
|
109
|
+
listComponents(callback?: (err: AWSError, data: GreengrassV2.Types.ListComponentsResponse) => void): Request<GreengrassV2.Types.ListComponentsResponse, AWSError>;
|
|
110
|
+
/**
|
|
111
|
+
* Retrieves a paginated list of AWS IoT Greengrass core devices.
|
|
112
|
+
*/
|
|
113
|
+
listCoreDevices(params: GreengrassV2.Types.ListCoreDevicesRequest, callback?: (err: AWSError, data: GreengrassV2.Types.ListCoreDevicesResponse) => void): Request<GreengrassV2.Types.ListCoreDevicesResponse, AWSError>;
|
|
114
|
+
/**
|
|
115
|
+
* Retrieves a paginated list of AWS IoT Greengrass core devices.
|
|
116
|
+
*/
|
|
117
|
+
listCoreDevices(callback?: (err: AWSError, data: GreengrassV2.Types.ListCoreDevicesResponse) => void): Request<GreengrassV2.Types.ListCoreDevicesResponse, AWSError>;
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves a paginated list of deployments.
|
|
120
|
+
*/
|
|
121
|
+
listDeployments(params: GreengrassV2.Types.ListDeploymentsRequest, callback?: (err: AWSError, data: GreengrassV2.Types.ListDeploymentsResponse) => void): Request<GreengrassV2.Types.ListDeploymentsResponse, AWSError>;
|
|
122
|
+
/**
|
|
123
|
+
* Retrieves a paginated list of deployments.
|
|
124
|
+
*/
|
|
125
|
+
listDeployments(callback?: (err: AWSError, data: GreengrassV2.Types.ListDeploymentsResponse) => void): Request<GreengrassV2.Types.ListDeploymentsResponse, AWSError>;
|
|
126
|
+
/**
|
|
127
|
+
* Retrieves a paginated list of deployment jobs that AWS IoT Greengrass sends to AWS IoT Greengrass core devices.
|
|
128
|
+
*/
|
|
129
|
+
listEffectiveDeployments(params: GreengrassV2.Types.ListEffectiveDeploymentsRequest, callback?: (err: AWSError, data: GreengrassV2.Types.ListEffectiveDeploymentsResponse) => void): Request<GreengrassV2.Types.ListEffectiveDeploymentsResponse, AWSError>;
|
|
130
|
+
/**
|
|
131
|
+
* Retrieves a paginated list of deployment jobs that AWS IoT Greengrass sends to AWS IoT Greengrass core devices.
|
|
132
|
+
*/
|
|
133
|
+
listEffectiveDeployments(callback?: (err: AWSError, data: GreengrassV2.Types.ListEffectiveDeploymentsResponse) => void): Request<GreengrassV2.Types.ListEffectiveDeploymentsResponse, AWSError>;
|
|
134
|
+
/**
|
|
135
|
+
* Retrieves a paginated list of the components that a AWS IoT Greengrass core device runs.
|
|
136
|
+
*/
|
|
137
|
+
listInstalledComponents(params: GreengrassV2.Types.ListInstalledComponentsRequest, callback?: (err: AWSError, data: GreengrassV2.Types.ListInstalledComponentsResponse) => void): Request<GreengrassV2.Types.ListInstalledComponentsResponse, AWSError>;
|
|
138
|
+
/**
|
|
139
|
+
* Retrieves a paginated list of the components that a AWS IoT Greengrass core device runs.
|
|
140
|
+
*/
|
|
141
|
+
listInstalledComponents(callback?: (err: AWSError, data: GreengrassV2.Types.ListInstalledComponentsResponse) => void): Request<GreengrassV2.Types.ListInstalledComponentsResponse, AWSError>;
|
|
142
|
+
/**
|
|
143
|
+
* Retrieves the list of tags for an AWS IoT Greengrass resource.
|
|
144
|
+
*/
|
|
145
|
+
listTagsForResource(params: GreengrassV2.Types.ListTagsForResourceRequest, callback?: (err: AWSError, data: GreengrassV2.Types.ListTagsForResourceResponse) => void): Request<GreengrassV2.Types.ListTagsForResourceResponse, AWSError>;
|
|
146
|
+
/**
|
|
147
|
+
* Retrieves the list of tags for an AWS IoT Greengrass resource.
|
|
148
|
+
*/
|
|
149
|
+
listTagsForResource(callback?: (err: AWSError, data: GreengrassV2.Types.ListTagsForResourceResponse) => void): Request<GreengrassV2.Types.ListTagsForResourceResponse, AWSError>;
|
|
150
|
+
/**
|
|
151
|
+
* Retrieves a list of components that meet the component, version, and platform requirements of a deployment. AWS IoT Greengrass core devices call this operation when they receive a deployment to identify the components to install. This operation identifies components that meet all dependency requirements for a deployment. If the requirements conflict, then this operation returns an error and the deployment fails. For example, this occurs if component A requires version >2.0.0 and component B requires version <2.0.0 of a component dependency. When you specify the component candidates to resolve, AWS IoT Greengrass compares each component's digest from the core device with the component's digest in the AWS Cloud. If the digests don't match, then AWS IoT Greengrass specifies to use the version from the AWS Cloud. To use this operation, you must use the data plane API endpoint and authenticate with an AWS IoT device certificate. For more information, see AWS IoT Greengrass endpoints and quotas.
|
|
152
|
+
*/
|
|
153
|
+
resolveComponentCandidates(params: GreengrassV2.Types.ResolveComponentCandidatesRequest, callback?: (err: AWSError, data: GreengrassV2.Types.ResolveComponentCandidatesResponse) => void): Request<GreengrassV2.Types.ResolveComponentCandidatesResponse, AWSError>;
|
|
154
|
+
/**
|
|
155
|
+
* Retrieves a list of components that meet the component, version, and platform requirements of a deployment. AWS IoT Greengrass core devices call this operation when they receive a deployment to identify the components to install. This operation identifies components that meet all dependency requirements for a deployment. If the requirements conflict, then this operation returns an error and the deployment fails. For example, this occurs if component A requires version >2.0.0 and component B requires version <2.0.0 of a component dependency. When you specify the component candidates to resolve, AWS IoT Greengrass compares each component's digest from the core device with the component's digest in the AWS Cloud. If the digests don't match, then AWS IoT Greengrass specifies to use the version from the AWS Cloud. To use this operation, you must use the data plane API endpoint and authenticate with an AWS IoT device certificate. For more information, see AWS IoT Greengrass endpoints and quotas.
|
|
156
|
+
*/
|
|
157
|
+
resolveComponentCandidates(callback?: (err: AWSError, data: GreengrassV2.Types.ResolveComponentCandidatesResponse) => void): Request<GreengrassV2.Types.ResolveComponentCandidatesResponse, AWSError>;
|
|
158
|
+
/**
|
|
159
|
+
* Adds tags to an AWS IoT Greengrass resource. If a tag already exists for the resource, this operation updates the tag's value.
|
|
160
|
+
*/
|
|
161
|
+
tagResource(params: GreengrassV2.Types.TagResourceRequest, callback?: (err: AWSError, data: GreengrassV2.Types.TagResourceResponse) => void): Request<GreengrassV2.Types.TagResourceResponse, AWSError>;
|
|
162
|
+
/**
|
|
163
|
+
* Adds tags to an AWS IoT Greengrass resource. If a tag already exists for the resource, this operation updates the tag's value.
|
|
164
|
+
*/
|
|
165
|
+
tagResource(callback?: (err: AWSError, data: GreengrassV2.Types.TagResourceResponse) => void): Request<GreengrassV2.Types.TagResourceResponse, AWSError>;
|
|
166
|
+
/**
|
|
167
|
+
* Removes a tag from an AWS IoT Greengrass resource.
|
|
168
|
+
*/
|
|
169
|
+
untagResource(params: GreengrassV2.Types.UntagResourceRequest, callback?: (err: AWSError, data: GreengrassV2.Types.UntagResourceResponse) => void): Request<GreengrassV2.Types.UntagResourceResponse, AWSError>;
|
|
170
|
+
/**
|
|
171
|
+
* Removes a tag from an AWS IoT Greengrass resource.
|
|
172
|
+
*/
|
|
173
|
+
untagResource(callback?: (err: AWSError, data: GreengrassV2.Types.UntagResourceResponse) => void): Request<GreengrassV2.Types.UntagResourceResponse, AWSError>;
|
|
174
|
+
}
|
|
175
|
+
declare namespace GreengrassV2 {
|
|
176
|
+
export interface CancelDeploymentRequest {
|
|
177
|
+
/**
|
|
178
|
+
* The ID of the deployment.
|
|
179
|
+
*/
|
|
180
|
+
deploymentId: NonEmptyString;
|
|
181
|
+
}
|
|
182
|
+
export interface CancelDeploymentResponse {
|
|
183
|
+
/**
|
|
184
|
+
* A message that communicates if the cancel was successful.
|
|
185
|
+
*/
|
|
186
|
+
message?: NonEmptyString;
|
|
187
|
+
}
|
|
188
|
+
export type CloudComponentState = "REQUESTED"|"INITIATED"|"DEPLOYABLE"|"FAILED"|"DEPRECATED"|string;
|
|
189
|
+
export interface CloudComponentStatus {
|
|
190
|
+
/**
|
|
191
|
+
* The state of the component.
|
|
192
|
+
*/
|
|
193
|
+
componentState?: CloudComponentState;
|
|
194
|
+
/**
|
|
195
|
+
* A message that communicates details, such as errors, about the status of the component.
|
|
196
|
+
*/
|
|
197
|
+
message?: NonEmptyString;
|
|
198
|
+
/**
|
|
199
|
+
* A dictionary of errors that communicate why the component is in an error state. For example, if AWS IoT Greengrass can't access an artifact for the component, then errors contains the artifact's URI as a key, and the error message as the value for that key.
|
|
200
|
+
*/
|
|
201
|
+
errors?: StringMap;
|
|
202
|
+
}
|
|
203
|
+
export interface Component {
|
|
204
|
+
/**
|
|
205
|
+
* The ARN of the component version.
|
|
206
|
+
*/
|
|
207
|
+
arn?: ComponentARN;
|
|
208
|
+
/**
|
|
209
|
+
* The name of the component.
|
|
210
|
+
*/
|
|
211
|
+
componentName?: ComponentNameString;
|
|
212
|
+
/**
|
|
213
|
+
* The latest version of the component and its details.
|
|
214
|
+
*/
|
|
215
|
+
latestVersion?: ComponentLatestVersion;
|
|
216
|
+
}
|
|
217
|
+
export type ComponentARN = string;
|
|
218
|
+
export interface ComponentCandidate {
|
|
219
|
+
/**
|
|
220
|
+
* The name of the component.
|
|
221
|
+
*/
|
|
222
|
+
componentName?: ComponentNameString;
|
|
223
|
+
/**
|
|
224
|
+
* The version of the component.
|
|
225
|
+
*/
|
|
226
|
+
componentVersion?: ComponentVersionString;
|
|
227
|
+
/**
|
|
228
|
+
* The version requirements for the component's dependencies. AWS IoT Greengrass core devices get the version requirements from component recipes. AWS IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
|
|
229
|
+
*/
|
|
230
|
+
versionRequirements?: ComponentVersionRequirementMap;
|
|
231
|
+
}
|
|
232
|
+
export type ComponentCandidateList = ComponentCandidate[];
|
|
233
|
+
export type ComponentConfigurationPath = string;
|
|
234
|
+
export type ComponentConfigurationPathList = ComponentConfigurationPath[];
|
|
235
|
+
export type ComponentConfigurationString = string;
|
|
236
|
+
export interface ComponentConfigurationUpdate {
|
|
237
|
+
/**
|
|
238
|
+
* A serialized JSON string that contains the configuration object to merge to target devices. The core device merges this configuration with the component's existing configuration. If this is the first time a component deploys on a device, the core device merges this configuration with the component's default configuration. This means that the core device keeps it's existing configuration for keys and values that you don't specify in this object. For more information, see Merge configuration updates in the AWS IoT Greengrass V2 Developer Guide.
|
|
239
|
+
*/
|
|
240
|
+
merge?: ComponentConfigurationString;
|
|
241
|
+
/**
|
|
242
|
+
* The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each node to reset. JSON pointers start with a forward slash (/) and use forward slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the AWS IoT Greengrass V2 Developer Guide.
|
|
243
|
+
*/
|
|
244
|
+
reset?: ComponentConfigurationPathList;
|
|
245
|
+
}
|
|
246
|
+
export type ComponentDependencyMap = {[key: string]: ComponentDependencyRequirement};
|
|
247
|
+
export interface ComponentDependencyRequirement {
|
|
248
|
+
/**
|
|
249
|
+
* The component version requirement for the component dependency. AWS IoT Greengrass V2 uses semantic version constraints. For more information, see Semantic Versioning.
|
|
250
|
+
*/
|
|
251
|
+
versionRequirement?: NonEmptyString;
|
|
252
|
+
/**
|
|
253
|
+
* The type of this dependency. Choose from the following options: SOFT – The component doesn't restart if the dependency changes state. HARD – The component restarts if the dependency changes state. Default: HARD
|
|
254
|
+
*/
|
|
255
|
+
dependencyType?: ComponentDependencyType;
|
|
256
|
+
}
|
|
257
|
+
export type ComponentDependencyType = "HARD"|"SOFT"|string;
|
|
258
|
+
export interface ComponentDeploymentSpecification {
|
|
259
|
+
/**
|
|
260
|
+
* The version of the component.
|
|
261
|
+
*/
|
|
262
|
+
componentVersion?: ComponentVersionString;
|
|
263
|
+
/**
|
|
264
|
+
* The configuration updates to deploy for the component. You can define reset updates and merge updates. A reset updates the keys that you specify to the default configuration for the component. A merge updates the core device's component configuration with the keys and values that you specify. The AWS IoT Greengrass Core software applies reset updates before it applies merge updates. For more information, see Update component configurations in the AWS IoT Greengrass V2 Developer Guide.
|
|
265
|
+
*/
|
|
266
|
+
configurationUpdate?: ComponentConfigurationUpdate;
|
|
267
|
+
/**
|
|
268
|
+
* The system user and group that the AWS IoT Greengrass Core software uses to run component processes on the core device. If you omit this parameter, the AWS IoT Greengrass Core software uses the system user and group that you configure for the core device. For more information, see Configure the user and group that run components in the AWS IoT Greengrass V2 Developer Guide.
|
|
269
|
+
*/
|
|
270
|
+
runWith?: ComponentRunWith;
|
|
271
|
+
}
|
|
272
|
+
export type ComponentDeploymentSpecifications = {[key: string]: ComponentDeploymentSpecification};
|
|
273
|
+
export interface ComponentLatestVersion {
|
|
274
|
+
/**
|
|
275
|
+
* The ARN of the component version.
|
|
276
|
+
*/
|
|
277
|
+
arn?: ComponentVersionARN;
|
|
278
|
+
/**
|
|
279
|
+
* The version of the component.
|
|
280
|
+
*/
|
|
281
|
+
componentVersion?: ComponentVersionString;
|
|
282
|
+
/**
|
|
283
|
+
* The time at which the component was created, expressed in ISO 8601 format.
|
|
284
|
+
*/
|
|
285
|
+
creationTimestamp?: Timestamp;
|
|
286
|
+
/**
|
|
287
|
+
* The description of the component version.
|
|
288
|
+
*/
|
|
289
|
+
description?: NonEmptyString;
|
|
290
|
+
/**
|
|
291
|
+
* The publisher of the component version.
|
|
292
|
+
*/
|
|
293
|
+
publisher?: NonEmptyString;
|
|
294
|
+
/**
|
|
295
|
+
* The platforms that the component version supports.
|
|
296
|
+
*/
|
|
297
|
+
platforms?: ComponentPlatformList;
|
|
298
|
+
}
|
|
299
|
+
export type ComponentList = Component[];
|
|
300
|
+
export type ComponentNameString = string;
|
|
301
|
+
export interface ComponentPlatform {
|
|
302
|
+
/**
|
|
303
|
+
* The friendly name of the platform. This name helps you identify the platform. If you omit this parameter, AWS IoT Greengrass creates a friendly name from the os and architecture of the platform.
|
|
304
|
+
*/
|
|
305
|
+
name?: NonEmptyString;
|
|
306
|
+
/**
|
|
307
|
+
* A dictionary of attributes for the platform. The AWS IoT Greengrass Core software defines the os and platform by default. You can specify additional platform attributes for a core device when you deploy the AWS IoT Greengrass nucleus component. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide.
|
|
308
|
+
*/
|
|
309
|
+
attributes?: PlatformAttributesMap;
|
|
310
|
+
}
|
|
311
|
+
export type ComponentPlatformList = ComponentPlatform[];
|
|
312
|
+
export interface ComponentRunWith {
|
|
313
|
+
/**
|
|
314
|
+
* The POSIX system user and (optional) group to use to run this component. Specify the user and group separated by a colon (:) in the following format: user:group. The group is optional. If you don't specify a group, the AWS IoT Greengrass Core software uses the primary user for the group.
|
|
315
|
+
*/
|
|
316
|
+
posixUser?: NonEmptyString;
|
|
317
|
+
}
|
|
318
|
+
export type ComponentVersionARN = string;
|
|
319
|
+
export type ComponentVersionList = ComponentVersionListItem[];
|
|
320
|
+
export interface ComponentVersionListItem {
|
|
321
|
+
/**
|
|
322
|
+
* The name of the component.
|
|
323
|
+
*/
|
|
324
|
+
componentName?: ComponentNameString;
|
|
325
|
+
/**
|
|
326
|
+
* The version of the component.
|
|
327
|
+
*/
|
|
328
|
+
componentVersion?: ComponentVersionString;
|
|
329
|
+
/**
|
|
330
|
+
* The ARN of the component version.
|
|
331
|
+
*/
|
|
332
|
+
arn?: NonEmptyString;
|
|
333
|
+
}
|
|
334
|
+
export type ComponentVersionRequirementMap = {[key: string]: NonEmptyString};
|
|
335
|
+
export type ComponentVersionString = string;
|
|
336
|
+
export type ComponentVisibilityScope = "PRIVATE"|"PUBLIC"|string;
|
|
337
|
+
export interface CoreDevice {
|
|
338
|
+
/**
|
|
339
|
+
* The name of the core device. This is also the name of the AWS IoT thing.
|
|
340
|
+
*/
|
|
341
|
+
coreDeviceThingName?: CoreDeviceThingName;
|
|
342
|
+
/**
|
|
343
|
+
* The status of the core device. Core devices can have the following statuses: HEALTHY – The AWS IoT Greengrass Core software and all components run on the core device without issue. UNHEALTHY – The AWS IoT Greengrass Core software or a component is in a failed state on the core device.
|
|
344
|
+
*/
|
|
345
|
+
status?: CoreDeviceStatus;
|
|
346
|
+
/**
|
|
347
|
+
* The time at which the core device's status last updated, expressed in ISO 8601 format.
|
|
348
|
+
*/
|
|
349
|
+
lastStatusUpdateTimestamp?: Timestamp;
|
|
350
|
+
}
|
|
351
|
+
export type CoreDeviceArchitectureString = string;
|
|
352
|
+
export type CoreDevicePlatformString = string;
|
|
353
|
+
export type CoreDeviceStatus = "HEALTHY"|"UNHEALTHY"|string;
|
|
354
|
+
export type CoreDeviceThingName = string;
|
|
355
|
+
export type CoreDevicesList = CoreDevice[];
|
|
356
|
+
export interface CreateComponentVersionRequest {
|
|
357
|
+
/**
|
|
358
|
+
* The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility. You must specify either inlineRecipe or lambdaFunction.
|
|
359
|
+
*/
|
|
360
|
+
inlineRecipe?: RecipeBlob;
|
|
361
|
+
/**
|
|
362
|
+
* The parameters to create a component from a Lambda function. You must specify either inlineRecipe or lambdaFunction.
|
|
363
|
+
*/
|
|
364
|
+
lambdaFunction?: LambdaFunctionRecipeSource;
|
|
365
|
+
/**
|
|
366
|
+
* A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.
|
|
367
|
+
*/
|
|
368
|
+
tags?: TagMap;
|
|
369
|
+
}
|
|
370
|
+
export interface CreateComponentVersionResponse {
|
|
371
|
+
/**
|
|
372
|
+
* The ARN of the component version.
|
|
373
|
+
*/
|
|
374
|
+
arn?: ComponentVersionARN;
|
|
375
|
+
/**
|
|
376
|
+
* The name of the component.
|
|
377
|
+
*/
|
|
378
|
+
componentName: ComponentNameString;
|
|
379
|
+
/**
|
|
380
|
+
* The version of the component.
|
|
381
|
+
*/
|
|
382
|
+
componentVersion: ComponentVersionString;
|
|
383
|
+
/**
|
|
384
|
+
* The time at which the component was created, expressed in ISO 8601 format.
|
|
385
|
+
*/
|
|
386
|
+
creationTimestamp: Timestamp;
|
|
387
|
+
/**
|
|
388
|
+
* The status of the component version in AWS IoT Greengrass V2. This status is different from the status of the component on a core device.
|
|
389
|
+
*/
|
|
390
|
+
status: CloudComponentStatus;
|
|
391
|
+
}
|
|
392
|
+
export interface CreateDeploymentRequest {
|
|
393
|
+
/**
|
|
394
|
+
* The ARN of the target AWS IoT thing or thing group.
|
|
395
|
+
*/
|
|
396
|
+
targetArn: TargetARN;
|
|
397
|
+
/**
|
|
398
|
+
* The name of the deployment. You can create deployments without names. If you create a deployment without a name, the AWS IoT Greengrass V2 console shows the deployment name as <targetType>:<targetName>, where targetType and targetName are the type and name of the deployment target.
|
|
399
|
+
*/
|
|
400
|
+
deploymentName?: NonEmptyString;
|
|
401
|
+
/**
|
|
402
|
+
* The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.
|
|
403
|
+
*/
|
|
404
|
+
components?: ComponentDeploymentSpecifications;
|
|
405
|
+
/**
|
|
406
|
+
* The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.
|
|
407
|
+
*/
|
|
408
|
+
iotJobConfiguration?: DeploymentIoTJobConfiguration;
|
|
409
|
+
/**
|
|
410
|
+
* The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.
|
|
411
|
+
*/
|
|
412
|
+
deploymentPolicies?: DeploymentPolicies;
|
|
413
|
+
/**
|
|
414
|
+
* A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.
|
|
415
|
+
*/
|
|
416
|
+
tags?: TagMap;
|
|
417
|
+
}
|
|
418
|
+
export interface CreateDeploymentResponse {
|
|
419
|
+
/**
|
|
420
|
+
* The ID of the deployment.
|
|
421
|
+
*/
|
|
422
|
+
deploymentId?: NonEmptyString;
|
|
423
|
+
/**
|
|
424
|
+
* The ID of the AWS IoT job that applies the deployment to target devices.
|
|
425
|
+
*/
|
|
426
|
+
iotJobId?: NonEmptyString;
|
|
427
|
+
/**
|
|
428
|
+
* The ARN of the AWS IoT job that applies the deployment to target devices.
|
|
429
|
+
*/
|
|
430
|
+
iotJobArn?: IoTJobARN;
|
|
431
|
+
}
|
|
432
|
+
export type DefaultMaxResults = number;
|
|
433
|
+
export interface DeleteComponentRequest {
|
|
434
|
+
/**
|
|
435
|
+
* The ARN of the component version.
|
|
436
|
+
*/
|
|
437
|
+
arn: ComponentVersionARN;
|
|
438
|
+
}
|
|
439
|
+
export interface DeleteCoreDeviceRequest {
|
|
440
|
+
/**
|
|
441
|
+
* The name of the core device. This is also the name of the AWS IoT thing.
|
|
442
|
+
*/
|
|
443
|
+
coreDeviceThingName: CoreDeviceThingName;
|
|
444
|
+
}
|
|
445
|
+
export interface Deployment {
|
|
446
|
+
/**
|
|
447
|
+
* The ARN of the target AWS IoT thing or thing group.
|
|
448
|
+
*/
|
|
449
|
+
targetArn?: TargetARN;
|
|
450
|
+
/**
|
|
451
|
+
* The revision number of the deployment.
|
|
452
|
+
*/
|
|
453
|
+
revisionId?: NonEmptyString;
|
|
454
|
+
/**
|
|
455
|
+
* The ID of the deployment.
|
|
456
|
+
*/
|
|
457
|
+
deploymentId?: NonEmptyString;
|
|
458
|
+
/**
|
|
459
|
+
* The name of the deployment. You can create deployments without names. If you create a deployment without a name, the AWS IoT Greengrass V2 console shows the deployment name as <targetType>:<targetName>, where targetType and targetName are the type and name of the deployment target.
|
|
460
|
+
*/
|
|
461
|
+
deploymentName?: NonEmptyString;
|
|
462
|
+
/**
|
|
463
|
+
* The time at which the deployment was created, expressed in ISO 8601 format.
|
|
464
|
+
*/
|
|
465
|
+
creationTimestamp?: Timestamp;
|
|
466
|
+
/**
|
|
467
|
+
* The status of the deployment.
|
|
468
|
+
*/
|
|
469
|
+
deploymentStatus?: DeploymentStatus;
|
|
470
|
+
/**
|
|
471
|
+
* Whether or not the deployment is the latest revision for its target.
|
|
472
|
+
*/
|
|
473
|
+
isLatestForTarget?: IsLatestForTarget;
|
|
474
|
+
}
|
|
475
|
+
export interface DeploymentComponentUpdatePolicy {
|
|
476
|
+
/**
|
|
477
|
+
* The amount of time in seconds that each component on a device has to report that it's safe to update. If the component waits for longer than this timeout, then the deployment proceeds on the device. Default: 60
|
|
478
|
+
*/
|
|
479
|
+
timeoutInSeconds?: OptionalInteger;
|
|
480
|
+
/**
|
|
481
|
+
* Whether or not to notify components and wait for components to become safe to update. Choose from the following options: NOTIFY_COMPONENTS – The deployment notifies each component before it stops and updates that component. Components can use the SubscribeToComponentUpdates IPC operation to receive these notifications. Then, components can respond with the DeferComponentUpdate IPC operation. For more information, see the Create deployments in the AWS IoT Greengrass V2 Developer Guide. SKIP_NOTIFY_COMPONENTS – The deployment doesn't notify components or wait for them to be safe to update. Default: NOTIFY_COMPONENTS
|
|
482
|
+
*/
|
|
483
|
+
action?: DeploymentComponentUpdatePolicyAction;
|
|
484
|
+
}
|
|
485
|
+
export type DeploymentComponentUpdatePolicyAction = "NOTIFY_COMPONENTS"|"SKIP_NOTIFY_COMPONENTS"|string;
|
|
486
|
+
export interface DeploymentConfigurationValidationPolicy {
|
|
487
|
+
/**
|
|
488
|
+
* The amount of time in seconds that a component can validate its configuration updates. If the validation time exceeds this timeout, then the deployment proceeds for the device. Default: 30
|
|
489
|
+
*/
|
|
490
|
+
timeoutInSeconds?: OptionalInteger;
|
|
491
|
+
}
|
|
492
|
+
export type DeploymentFailureHandlingPolicy = "ROLLBACK"|"DO_NOTHING"|string;
|
|
493
|
+
export type DeploymentHistoryFilter = "ALL"|"LATEST_ONLY"|string;
|
|
494
|
+
export type DeploymentID = string;
|
|
495
|
+
export interface DeploymentIoTJobConfiguration {
|
|
496
|
+
/**
|
|
497
|
+
* The rollout configuration for the job. This configuration defines the rate at which the job rolls out to the fleet of target devices.
|
|
498
|
+
*/
|
|
499
|
+
jobExecutionsRolloutConfig?: IoTJobExecutionsRolloutConfig;
|
|
500
|
+
/**
|
|
501
|
+
* The stop configuration for the job. This configuration defines when and how to stop a job rollout.
|
|
502
|
+
*/
|
|
503
|
+
abortConfig?: IoTJobAbortConfig;
|
|
504
|
+
/**
|
|
505
|
+
* The timeout configuration for the job. This configuration defines the amount of time each device has to complete the job.
|
|
506
|
+
*/
|
|
507
|
+
timeoutConfig?: IoTJobTimeoutConfig;
|
|
508
|
+
}
|
|
509
|
+
export type DeploymentList = Deployment[];
|
|
510
|
+
export type DeploymentName = string;
|
|
511
|
+
export interface DeploymentPolicies {
|
|
512
|
+
/**
|
|
513
|
+
* The failure handling policy for the configuration deployment. This policy defines what to do if the deployment fails. Default: ROLLBACK
|
|
514
|
+
*/
|
|
515
|
+
failureHandlingPolicy?: DeploymentFailureHandlingPolicy;
|
|
516
|
+
/**
|
|
517
|
+
* The component update policy for the configuration deployment. This policy defines when it's safe to deploy the configuration to devices.
|
|
518
|
+
*/
|
|
519
|
+
componentUpdatePolicy?: DeploymentComponentUpdatePolicy;
|
|
520
|
+
/**
|
|
521
|
+
* The configuration validation policy for the configuration deployment. This policy defines how long each component has to validate its configure updates.
|
|
522
|
+
*/
|
|
523
|
+
configurationValidationPolicy?: DeploymentConfigurationValidationPolicy;
|
|
524
|
+
}
|
|
525
|
+
export type DeploymentStatus = "ACTIVE"|"COMPLETED"|"CANCELED"|"FAILED"|"INACTIVE"|string;
|
|
526
|
+
export interface DescribeComponentRequest {
|
|
527
|
+
/**
|
|
528
|
+
* The ARN of the component version.
|
|
529
|
+
*/
|
|
530
|
+
arn: ComponentVersionARN;
|
|
531
|
+
}
|
|
532
|
+
export interface DescribeComponentResponse {
|
|
533
|
+
/**
|
|
534
|
+
* The ARN of the component version.
|
|
535
|
+
*/
|
|
536
|
+
arn?: ComponentVersionARN;
|
|
537
|
+
/**
|
|
538
|
+
* The name of the component.
|
|
539
|
+
*/
|
|
540
|
+
componentName?: ComponentNameString;
|
|
541
|
+
/**
|
|
542
|
+
* The version of the component.
|
|
543
|
+
*/
|
|
544
|
+
componentVersion?: ComponentVersionString;
|
|
545
|
+
/**
|
|
546
|
+
* The time at which the component was created, expressed in ISO 8601 format.
|
|
547
|
+
*/
|
|
548
|
+
creationTimestamp?: Timestamp;
|
|
549
|
+
/**
|
|
550
|
+
* The publisher of the component version.
|
|
551
|
+
*/
|
|
552
|
+
publisher?: PublisherString;
|
|
553
|
+
/**
|
|
554
|
+
* The description of the component version.
|
|
555
|
+
*/
|
|
556
|
+
description?: DescriptionString;
|
|
557
|
+
/**
|
|
558
|
+
* The status of the component version in AWS IoT Greengrass V2. This status is different from the status of the component on a core device.
|
|
559
|
+
*/
|
|
560
|
+
status?: CloudComponentStatus;
|
|
561
|
+
/**
|
|
562
|
+
* The platforms that the component version supports.
|
|
563
|
+
*/
|
|
564
|
+
platforms?: ComponentPlatformList;
|
|
565
|
+
/**
|
|
566
|
+
* A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.
|
|
567
|
+
*/
|
|
568
|
+
tags?: TagMap;
|
|
569
|
+
}
|
|
570
|
+
export type Description = string;
|
|
571
|
+
export type DescriptionString = string;
|
|
572
|
+
export interface EffectiveDeployment {
|
|
573
|
+
/**
|
|
574
|
+
* The ID of the deployment.
|
|
575
|
+
*/
|
|
576
|
+
deploymentId: DeploymentID;
|
|
577
|
+
/**
|
|
578
|
+
* The name of the deployment. You can create deployments without names. If you create a deployment without a name, the AWS IoT Greengrass V2 console shows the deployment name as <targetType>:<targetName>, where targetType and targetName are the type and name of the deployment target.
|
|
579
|
+
*/
|
|
580
|
+
deploymentName: DeploymentName;
|
|
581
|
+
/**
|
|
582
|
+
* The ID of the AWS IoT job that applies the deployment to target devices.
|
|
583
|
+
*/
|
|
584
|
+
iotJobId?: IoTJobId;
|
|
585
|
+
/**
|
|
586
|
+
* The ARN of the AWS IoT job that applies the deployment to target devices.
|
|
587
|
+
*/
|
|
588
|
+
iotJobArn?: IoTJobARN;
|
|
589
|
+
/**
|
|
590
|
+
* The description of the deployment job.
|
|
591
|
+
*/
|
|
592
|
+
description?: Description;
|
|
593
|
+
/**
|
|
594
|
+
* The ARN of the target AWS IoT thing or thing group.
|
|
595
|
+
*/
|
|
596
|
+
targetArn: TargetARN;
|
|
597
|
+
/**
|
|
598
|
+
* The status of the deployment job on the AWS IoT Greengrass core device.
|
|
599
|
+
*/
|
|
600
|
+
coreDeviceExecutionStatus: EffectiveDeploymentExecutionStatus;
|
|
601
|
+
/**
|
|
602
|
+
* The reason code for the update, if the job was updated.
|
|
603
|
+
*/
|
|
604
|
+
reason?: Reason;
|
|
605
|
+
/**
|
|
606
|
+
* The time at which the deployment was created, expressed in ISO 8601 format.
|
|
607
|
+
*/
|
|
608
|
+
creationTimestamp: Timestamp;
|
|
609
|
+
/**
|
|
610
|
+
* The time at which the deployment job was last modified, expressed in ISO 8601 format.
|
|
611
|
+
*/
|
|
612
|
+
modifiedTimestamp: Timestamp;
|
|
613
|
+
}
|
|
614
|
+
export type EffectiveDeploymentExecutionStatus = "IN_PROGRESS"|"QUEUED"|"FAILED"|"COMPLETED"|"TIMED_OUT"|"CANCELED"|"REJECTED"|string;
|
|
615
|
+
export type EffectiveDeploymentsList = EffectiveDeployment[];
|
|
616
|
+
export type FileSystemPath = string;
|
|
617
|
+
export type GGCVersion = string;
|
|
618
|
+
export type GenericV2ARN = string;
|
|
619
|
+
export interface GetComponentRequest {
|
|
620
|
+
/**
|
|
621
|
+
* The format of the recipe.
|
|
622
|
+
*/
|
|
623
|
+
recipeOutputFormat?: RecipeOutputFormat;
|
|
624
|
+
/**
|
|
625
|
+
* The ARN of the component version.
|
|
626
|
+
*/
|
|
627
|
+
arn: ComponentVersionARN;
|
|
628
|
+
}
|
|
629
|
+
export interface GetComponentResponse {
|
|
630
|
+
/**
|
|
631
|
+
* The format of the recipe.
|
|
632
|
+
*/
|
|
633
|
+
recipeOutputFormat: RecipeOutputFormat;
|
|
634
|
+
/**
|
|
635
|
+
* The recipe of the component version.
|
|
636
|
+
*/
|
|
637
|
+
recipe: RecipeBlob;
|
|
638
|
+
/**
|
|
639
|
+
* A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.
|
|
640
|
+
*/
|
|
641
|
+
tags?: TagMap;
|
|
642
|
+
}
|
|
643
|
+
export interface GetComponentVersionArtifactRequest {
|
|
644
|
+
/**
|
|
645
|
+
* The ARN of the component version.
|
|
646
|
+
*/
|
|
647
|
+
arn: ComponentVersionARN;
|
|
648
|
+
/**
|
|
649
|
+
* The name of the artifact.
|
|
650
|
+
*/
|
|
651
|
+
artifactName: NonEmptyString;
|
|
652
|
+
}
|
|
653
|
+
export interface GetComponentVersionArtifactResponse {
|
|
654
|
+
/**
|
|
655
|
+
* The URL to the artifact.
|
|
656
|
+
*/
|
|
657
|
+
preSignedUrl: NonEmptyString;
|
|
658
|
+
}
|
|
659
|
+
export interface GetCoreDeviceRequest {
|
|
660
|
+
/**
|
|
661
|
+
* The name of the core device. This is also the name of the AWS IoT thing.
|
|
662
|
+
*/
|
|
663
|
+
coreDeviceThingName: CoreDeviceThingName;
|
|
664
|
+
}
|
|
665
|
+
export interface GetCoreDeviceResponse {
|
|
666
|
+
/**
|
|
667
|
+
* The name of the core device. This is also the name of the AWS IoT thing.
|
|
668
|
+
*/
|
|
669
|
+
coreDeviceThingName?: CoreDeviceThingName;
|
|
670
|
+
/**
|
|
671
|
+
* The version of the AWS IoT Greengrass Core software that the core device runs. This version is equivalent to the version of the AWS IoT Greengrass nucleus component that runs on the core device. For more information, see the AWS IoT Greengrass nucleus component in the AWS IoT Greengrass V2 Developer Guide.
|
|
672
|
+
*/
|
|
673
|
+
coreVersion?: GGCVersion;
|
|
674
|
+
/**
|
|
675
|
+
* The operating system platform that the core device runs.
|
|
676
|
+
*/
|
|
677
|
+
platform?: CoreDevicePlatformString;
|
|
678
|
+
/**
|
|
679
|
+
* The computer architecture of the core device.
|
|
680
|
+
*/
|
|
681
|
+
architecture?: CoreDeviceArchitectureString;
|
|
682
|
+
/**
|
|
683
|
+
* The status of the core device. The core device status can be: HEALTHY – The AWS IoT Greengrass Core software and all components run on the core device without issue. UNHEALTHY – The AWS IoT Greengrass Core software or a component is in a failed state on the core device.
|
|
684
|
+
*/
|
|
685
|
+
status?: CoreDeviceStatus;
|
|
686
|
+
/**
|
|
687
|
+
* The time at which the core device's status last updated, expressed in ISO 8601 format.
|
|
688
|
+
*/
|
|
689
|
+
lastStatusUpdateTimestamp?: Timestamp;
|
|
690
|
+
/**
|
|
691
|
+
* A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.
|
|
692
|
+
*/
|
|
693
|
+
tags?: TagMap;
|
|
694
|
+
}
|
|
695
|
+
export interface GetDeploymentRequest {
|
|
696
|
+
/**
|
|
697
|
+
* The ID of the deployment.
|
|
698
|
+
*/
|
|
699
|
+
deploymentId: NonEmptyString;
|
|
700
|
+
}
|
|
701
|
+
export interface GetDeploymentResponse {
|
|
702
|
+
/**
|
|
703
|
+
* The ARN of the target AWS IoT thing or thing group.
|
|
704
|
+
*/
|
|
705
|
+
targetArn?: TargetARN;
|
|
706
|
+
/**
|
|
707
|
+
* The revision number of the deployment.
|
|
708
|
+
*/
|
|
709
|
+
revisionId?: NonEmptyString;
|
|
710
|
+
/**
|
|
711
|
+
* The ID of the deployment.
|
|
712
|
+
*/
|
|
713
|
+
deploymentId?: NonEmptyString;
|
|
714
|
+
/**
|
|
715
|
+
* The name of the deployment. You can create deployments without names. If you create a deployment without a name, the AWS IoT Greengrass V2 console shows the deployment name as <targetType>:<targetName>, where targetType and targetName are the type and name of the deployment target.
|
|
716
|
+
*/
|
|
717
|
+
deploymentName?: NullableString;
|
|
718
|
+
/**
|
|
719
|
+
* The status of the deployment.
|
|
720
|
+
*/
|
|
721
|
+
deploymentStatus?: DeploymentStatus;
|
|
722
|
+
/**
|
|
723
|
+
* The ID of the AWS IoT job that applies the deployment to target devices.
|
|
724
|
+
*/
|
|
725
|
+
iotJobId?: NullableString;
|
|
726
|
+
/**
|
|
727
|
+
* The ARN of the AWS IoT job that applies the deployment to target devices.
|
|
728
|
+
*/
|
|
729
|
+
iotJobArn?: IoTJobARN;
|
|
730
|
+
/**
|
|
731
|
+
* The components to deploy. This is a dictionary, where each key is the name of a component, and each key's value is the version and configuration to deploy for that component.
|
|
732
|
+
*/
|
|
733
|
+
components?: ComponentDeploymentSpecifications;
|
|
734
|
+
/**
|
|
735
|
+
* The deployment policies for the deployment. These policies define how the deployment updates components and handles failure.
|
|
736
|
+
*/
|
|
737
|
+
deploymentPolicies?: DeploymentPolicies;
|
|
738
|
+
/**
|
|
739
|
+
* The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration.
|
|
740
|
+
*/
|
|
741
|
+
iotJobConfiguration?: DeploymentIoTJobConfiguration;
|
|
742
|
+
/**
|
|
743
|
+
* The time at which the deployment was created, expressed in ISO 8601 format.
|
|
744
|
+
*/
|
|
745
|
+
creationTimestamp?: Timestamp;
|
|
746
|
+
/**
|
|
747
|
+
* Whether or not the deployment is the latest revision for its target.
|
|
748
|
+
*/
|
|
749
|
+
isLatestForTarget?: IsLatestForTarget;
|
|
750
|
+
/**
|
|
751
|
+
* A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.
|
|
752
|
+
*/
|
|
753
|
+
tags?: TagMap;
|
|
754
|
+
}
|
|
755
|
+
export interface InstalledComponent {
|
|
756
|
+
/**
|
|
757
|
+
* The name of the component.
|
|
758
|
+
*/
|
|
759
|
+
componentName?: ComponentNameString;
|
|
760
|
+
/**
|
|
761
|
+
* The version of the component.
|
|
762
|
+
*/
|
|
763
|
+
componentVersion?: ComponentVersionString;
|
|
764
|
+
/**
|
|
765
|
+
* The lifecycle state of the component.
|
|
766
|
+
*/
|
|
767
|
+
lifecycleState?: InstalledComponentLifecycleState;
|
|
768
|
+
/**
|
|
769
|
+
* The details about the lifecycle state of the component.
|
|
770
|
+
*/
|
|
771
|
+
lifecycleStateDetails?: LifecycleStateDetails;
|
|
772
|
+
/**
|
|
773
|
+
* Whether or not the component is a root component.
|
|
774
|
+
*/
|
|
775
|
+
isRoot?: IsRoot;
|
|
776
|
+
}
|
|
777
|
+
export type InstalledComponentLifecycleState = "NEW"|"INSTALLED"|"STARTING"|"RUNNING"|"STOPPING"|"ERRORED"|"BROKEN"|"FINISHED"|string;
|
|
778
|
+
export type InstalledComponentList = InstalledComponent[];
|
|
779
|
+
export type IoTJobARN = string;
|
|
780
|
+
export type IoTJobAbortAction = "CANCEL"|string;
|
|
781
|
+
export interface IoTJobAbortConfig {
|
|
782
|
+
/**
|
|
783
|
+
* The list of criteria that define when and how to cancel the configuration deployment.
|
|
784
|
+
*/
|
|
785
|
+
criteriaList: IoTJobAbortCriteriaList;
|
|
786
|
+
}
|
|
787
|
+
export interface IoTJobAbortCriteria {
|
|
788
|
+
/**
|
|
789
|
+
* The type of job deployment failure that can cancel a job.
|
|
790
|
+
*/
|
|
791
|
+
failureType: IoTJobExecutionFailureType;
|
|
792
|
+
/**
|
|
793
|
+
* The action to perform when the criteria are met.
|
|
794
|
+
*/
|
|
795
|
+
action: IoTJobAbortAction;
|
|
796
|
+
/**
|
|
797
|
+
* The minimum percentage of failureType failures that occur before the job can cancel. This parameter supports up to two digits after the decimal (for example, you can specify 10.9 or 10.99, but not 10.999).
|
|
798
|
+
*/
|
|
799
|
+
thresholdPercentage: IoTJobAbortThresholdPercentage;
|
|
800
|
+
/**
|
|
801
|
+
* The minimum number of things that receive the configuration before the job can cancel.
|
|
802
|
+
*/
|
|
803
|
+
minNumberOfExecutedThings: IoTJobMinimumNumberOfExecutedThings;
|
|
804
|
+
}
|
|
805
|
+
export type IoTJobAbortCriteriaList = IoTJobAbortCriteria[];
|
|
806
|
+
export type IoTJobAbortThresholdPercentage = number;
|
|
807
|
+
export type IoTJobExecutionFailureType = "FAILED"|"REJECTED"|"TIMED_OUT"|"ALL"|string;
|
|
808
|
+
export interface IoTJobExecutionsRolloutConfig {
|
|
809
|
+
/**
|
|
810
|
+
* The exponential rate to increase the job rollout rate.
|
|
811
|
+
*/
|
|
812
|
+
exponentialRate?: IoTJobExponentialRolloutRate;
|
|
813
|
+
/**
|
|
814
|
+
* The maximum number of devices that receive a pending job notification, per minute.
|
|
815
|
+
*/
|
|
816
|
+
maximumPerMinute?: IoTJobMaxExecutionsPerMin;
|
|
817
|
+
}
|
|
818
|
+
export interface IoTJobExponentialRolloutRate {
|
|
819
|
+
/**
|
|
820
|
+
* The minimum number of devices that receive a pending job notification, per minute, when the job starts. This parameter defines the initial rollout rate of the job.
|
|
821
|
+
*/
|
|
822
|
+
baseRatePerMinute: IoTJobRolloutBaseRatePerMinute;
|
|
823
|
+
/**
|
|
824
|
+
* The exponential factor to increase the rollout rate for the job. This parameter supports up to one digit after the decimal (for example, you can specify 1.5, but not 1.55).
|
|
825
|
+
*/
|
|
826
|
+
incrementFactor: IoTJobRolloutIncrementFactor;
|
|
827
|
+
/**
|
|
828
|
+
* The criteria to increase the rollout rate for the job.
|
|
829
|
+
*/
|
|
830
|
+
rateIncreaseCriteria: IoTJobRateIncreaseCriteria;
|
|
831
|
+
}
|
|
832
|
+
export type IoTJobId = string;
|
|
833
|
+
export type IoTJobInProgressTimeoutInMinutes = number;
|
|
834
|
+
export type IoTJobMaxExecutionsPerMin = number;
|
|
835
|
+
export type IoTJobMinimumNumberOfExecutedThings = number;
|
|
836
|
+
export type IoTJobNumberOfThings = number;
|
|
837
|
+
export interface IoTJobRateIncreaseCriteria {
|
|
838
|
+
/**
|
|
839
|
+
* The number of devices to receive the job notification before the rollout rate increases.
|
|
840
|
+
*/
|
|
841
|
+
numberOfNotifiedThings?: IoTJobNumberOfThings;
|
|
842
|
+
/**
|
|
843
|
+
* The number of devices to successfully run the configuration job before the rollout rate increases.
|
|
844
|
+
*/
|
|
845
|
+
numberOfSucceededThings?: IoTJobNumberOfThings;
|
|
846
|
+
}
|
|
847
|
+
export type IoTJobRolloutBaseRatePerMinute = number;
|
|
848
|
+
export type IoTJobRolloutIncrementFactor = number;
|
|
849
|
+
export interface IoTJobTimeoutConfig {
|
|
850
|
+
/**
|
|
851
|
+
* The amount of time, in minutes, that devices have to complete the job. The timer starts when the job status is set to IN_PROGRESS. If the job status doesn't change to a terminal state before the time expires, then the job status is set to TIMED_OUT. The timeout interval must be between 1 minute and 7 days (10080 minutes).
|
|
852
|
+
*/
|
|
853
|
+
inProgressTimeoutInMinutes?: IoTJobInProgressTimeoutInMinutes;
|
|
854
|
+
}
|
|
855
|
+
export type IsLatestForTarget = boolean;
|
|
856
|
+
export type IsRoot = boolean;
|
|
857
|
+
export interface LambdaContainerParams {
|
|
858
|
+
/**
|
|
859
|
+
* The memory size of the container, expressed in kilobytes. Default: 16384 (16 MB)
|
|
860
|
+
*/
|
|
861
|
+
memorySizeInKB?: OptionalInteger;
|
|
862
|
+
/**
|
|
863
|
+
* Whether or not the container can read information from the device's /sys folder. Default: false
|
|
864
|
+
*/
|
|
865
|
+
mountROSysfs?: OptionalBoolean;
|
|
866
|
+
/**
|
|
867
|
+
* The list of volumes that the container can access.
|
|
868
|
+
*/
|
|
869
|
+
volumes?: LambdaVolumeList;
|
|
870
|
+
/**
|
|
871
|
+
* The list of system devices that the container can access.
|
|
872
|
+
*/
|
|
873
|
+
devices?: LambdaDeviceList;
|
|
874
|
+
}
|
|
875
|
+
export type LambdaDeviceList = LambdaDeviceMount[];
|
|
876
|
+
export interface LambdaDeviceMount {
|
|
877
|
+
/**
|
|
878
|
+
* The mount path for the device in the file system.
|
|
879
|
+
*/
|
|
880
|
+
path: FileSystemPath;
|
|
881
|
+
/**
|
|
882
|
+
* The permission to access the device: read/only (ro) or read/write (rw). Default: ro
|
|
883
|
+
*/
|
|
884
|
+
permission?: LambdaFilesystemPermission;
|
|
885
|
+
/**
|
|
886
|
+
* Whether or not to add the component's system user as an owner of the device. Default: false
|
|
887
|
+
*/
|
|
888
|
+
addGroupOwner?: OptionalBoolean;
|
|
889
|
+
}
|
|
890
|
+
export type LambdaEnvironmentVariables = {[key: string]: String};
|
|
891
|
+
export interface LambdaEventSource {
|
|
892
|
+
/**
|
|
893
|
+
* The topic to which to subscribe to receive event messages.
|
|
894
|
+
*/
|
|
895
|
+
topic: TopicString;
|
|
896
|
+
/**
|
|
897
|
+
* The type of event source. Choose from the following options: PUB_SUB – Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+ and #) in the event source topic. IOT_CORE – Subscribe to AWS IoT Core MQTT messages. This event source type supports MQTT wildcards (+ and #) in the event source topic.
|
|
898
|
+
*/
|
|
899
|
+
type: LambdaEventSourceType;
|
|
900
|
+
}
|
|
901
|
+
export type LambdaEventSourceList = LambdaEventSource[];
|
|
902
|
+
export type LambdaEventSourceType = "PUB_SUB"|"IOT_CORE"|string;
|
|
903
|
+
export type LambdaExecArg = string;
|
|
904
|
+
export type LambdaExecArgsList = LambdaExecArg[];
|
|
905
|
+
export interface LambdaExecutionParameters {
|
|
906
|
+
/**
|
|
907
|
+
* The list of event sources to which to subscribe to receive work messages. The Lambda function runs when it receives a message from an event source. You can subscribe this function to local publish/subscribe messages and AWS IoT Core MQTT messages.
|
|
908
|
+
*/
|
|
909
|
+
eventSources?: LambdaEventSourceList;
|
|
910
|
+
/**
|
|
911
|
+
* The maximum size of the message queue for the Lambda function component. The AWS IoT Greengrass core stores messages in a FIFO (first-in-first-out) queue until it can run the Lambda function to consume each message.
|
|
912
|
+
*/
|
|
913
|
+
maxQueueSize?: OptionalInteger;
|
|
914
|
+
/**
|
|
915
|
+
* The maximum number of instances that a non-pinned Lambda function can run at the same time.
|
|
916
|
+
*/
|
|
917
|
+
maxInstancesCount?: OptionalInteger;
|
|
918
|
+
/**
|
|
919
|
+
* The maximum amount of time in seconds that a non-pinned Lambda function can idle before the AWS IoT Greengrass Core software stops its process.
|
|
920
|
+
*/
|
|
921
|
+
maxIdleTimeInSeconds?: OptionalInteger;
|
|
922
|
+
/**
|
|
923
|
+
* The maximum amount of time in seconds that the Lambda function can process a work item.
|
|
924
|
+
*/
|
|
925
|
+
timeoutInSeconds?: OptionalInteger;
|
|
926
|
+
/**
|
|
927
|
+
* The interval in seconds at which a pinned (also known as long-lived) Lambda function component sends status updates to the Lambda manager component.
|
|
928
|
+
*/
|
|
929
|
+
statusTimeoutInSeconds?: OptionalInteger;
|
|
930
|
+
/**
|
|
931
|
+
* Whether or not the Lambda function is pinned, or long-lived. A pinned Lambda function starts when AWS IoT Greengrass starts and keeps running in its own container. A non-pinned Lambda function starts only when it receives a work item and exists after it idles for maxIdleTimeInSeconds. If the function has multiple work items, the AWS IoT Greengrass Core software creates multiple instances of the function. Default: true
|
|
932
|
+
*/
|
|
933
|
+
pinned?: OptionalBoolean;
|
|
934
|
+
/**
|
|
935
|
+
* The encoding type that the Lambda function supports. Default: json
|
|
936
|
+
*/
|
|
937
|
+
inputPayloadEncodingType?: LambdaInputPayloadEncodingType;
|
|
938
|
+
/**
|
|
939
|
+
* The list of arguments to pass to the Lambda function when it runs.
|
|
940
|
+
*/
|
|
941
|
+
execArgs?: LambdaExecArgsList;
|
|
942
|
+
/**
|
|
943
|
+
* The map of environment variables that are available to the Lambda function when it runs.
|
|
944
|
+
*/
|
|
945
|
+
environmentVariables?: LambdaEnvironmentVariables;
|
|
946
|
+
/**
|
|
947
|
+
* The parameters for the Linux process that contains the Lambda function.
|
|
948
|
+
*/
|
|
949
|
+
linuxProcessParams?: LambdaLinuxProcessParams;
|
|
950
|
+
}
|
|
951
|
+
export type LambdaFilesystemPermission = "ro"|"rw"|string;
|
|
952
|
+
export type LambdaFunctionARNWithVersionNumber = string;
|
|
953
|
+
export interface LambdaFunctionRecipeSource {
|
|
954
|
+
/**
|
|
955
|
+
* The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like $LATEST.
|
|
956
|
+
*/
|
|
957
|
+
lambdaArn: LambdaFunctionARNWithVersionNumber;
|
|
958
|
+
/**
|
|
959
|
+
* The name of the component. Defaults to the name of the Lambda function.
|
|
960
|
+
*/
|
|
961
|
+
componentName?: ComponentNameString;
|
|
962
|
+
/**
|
|
963
|
+
* The version of the component. Defaults to the version of the Lambda function as a semantic version. For example, if your function version is 3, the component version becomes 3.0.0.
|
|
964
|
+
*/
|
|
965
|
+
componentVersion?: ComponentVersionString;
|
|
966
|
+
/**
|
|
967
|
+
* The platforms that the component version supports.
|
|
968
|
+
*/
|
|
969
|
+
componentPlatforms?: ComponentPlatformList;
|
|
970
|
+
/**
|
|
971
|
+
* The component versions on which this Lambda function component depends.
|
|
972
|
+
*/
|
|
973
|
+
componentDependencies?: ComponentDependencyMap;
|
|
974
|
+
/**
|
|
975
|
+
* The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
|
|
976
|
+
*/
|
|
977
|
+
componentLambdaParameters?: LambdaExecutionParameters;
|
|
978
|
+
}
|
|
979
|
+
export type LambdaInputPayloadEncodingType = "json"|"binary"|string;
|
|
980
|
+
export type LambdaIsolationMode = "GreengrassContainer"|"NoContainer"|string;
|
|
981
|
+
export interface LambdaLinuxProcessParams {
|
|
982
|
+
/**
|
|
983
|
+
* The isolation mode for the process that contains the Lambda function. The process can run in an isolated runtime environment inside the AWS IoT Greengrass container, or as a regular process outside any container. Default: GreengrassContainer
|
|
984
|
+
*/
|
|
985
|
+
isolationMode?: LambdaIsolationMode;
|
|
986
|
+
/**
|
|
987
|
+
* The parameters for the container in which the Lambda function runs.
|
|
988
|
+
*/
|
|
989
|
+
containerParams?: LambdaContainerParams;
|
|
990
|
+
}
|
|
991
|
+
export type LambdaVolumeList = LambdaVolumeMount[];
|
|
992
|
+
export interface LambdaVolumeMount {
|
|
993
|
+
/**
|
|
994
|
+
* The path to the physical volume in the file system.
|
|
995
|
+
*/
|
|
996
|
+
sourcePath: FileSystemPath;
|
|
997
|
+
/**
|
|
998
|
+
* The path to the logical volume in the file system.
|
|
999
|
+
*/
|
|
1000
|
+
destinationPath: FileSystemPath;
|
|
1001
|
+
/**
|
|
1002
|
+
* The permission to access the volume: read/only (ro) or read/write (rw). Default: ro
|
|
1003
|
+
*/
|
|
1004
|
+
permission?: LambdaFilesystemPermission;
|
|
1005
|
+
/**
|
|
1006
|
+
* Whether or not to add the AWS IoT Greengrass user group as an owner of the volume. Default: false
|
|
1007
|
+
*/
|
|
1008
|
+
addGroupOwner?: OptionalBoolean;
|
|
1009
|
+
}
|
|
1010
|
+
export type LifecycleStateDetails = string;
|
|
1011
|
+
export interface ListComponentVersionsRequest {
|
|
1012
|
+
/**
|
|
1013
|
+
* The ARN of the component version.
|
|
1014
|
+
*/
|
|
1015
|
+
arn: ComponentARN;
|
|
1016
|
+
/**
|
|
1017
|
+
* The maximum number of results to be returned per paginated request.
|
|
1018
|
+
*/
|
|
1019
|
+
maxResults?: DefaultMaxResults;
|
|
1020
|
+
/**
|
|
1021
|
+
* The token to be used for the next set of paginated results.
|
|
1022
|
+
*/
|
|
1023
|
+
nextToken?: NextTokenString;
|
|
1024
|
+
}
|
|
1025
|
+
export interface ListComponentVersionsResponse {
|
|
1026
|
+
/**
|
|
1027
|
+
* A list of versions that exist for the component.
|
|
1028
|
+
*/
|
|
1029
|
+
componentVersions?: ComponentVersionList;
|
|
1030
|
+
/**
|
|
1031
|
+
* The token for the next set of results, or null if there are no additional results.
|
|
1032
|
+
*/
|
|
1033
|
+
nextToken?: NextTokenString;
|
|
1034
|
+
}
|
|
1035
|
+
export interface ListComponentsRequest {
|
|
1036
|
+
/**
|
|
1037
|
+
* The scope of the components to list. Default: PRIVATE
|
|
1038
|
+
*/
|
|
1039
|
+
scope?: ComponentVisibilityScope;
|
|
1040
|
+
/**
|
|
1041
|
+
* The maximum number of results to be returned per paginated request.
|
|
1042
|
+
*/
|
|
1043
|
+
maxResults?: DefaultMaxResults;
|
|
1044
|
+
/**
|
|
1045
|
+
* The token to be used for the next set of paginated results.
|
|
1046
|
+
*/
|
|
1047
|
+
nextToken?: NextTokenString;
|
|
1048
|
+
}
|
|
1049
|
+
export interface ListComponentsResponse {
|
|
1050
|
+
/**
|
|
1051
|
+
* A list that summarizes each component.
|
|
1052
|
+
*/
|
|
1053
|
+
components?: ComponentList;
|
|
1054
|
+
/**
|
|
1055
|
+
* The token for the next set of results, or null if there are no additional results.
|
|
1056
|
+
*/
|
|
1057
|
+
nextToken?: NextTokenString;
|
|
1058
|
+
}
|
|
1059
|
+
export interface ListCoreDevicesRequest {
|
|
1060
|
+
/**
|
|
1061
|
+
* The ARN of the AWS IoT thing group by which to filter. If you specify this parameter, the list includes only core devices that are members of this thing group.
|
|
1062
|
+
*/
|
|
1063
|
+
thingGroupArn?: ThingGroupARN;
|
|
1064
|
+
/**
|
|
1065
|
+
* The core device status by which to filter. If you specify this parameter, the list includes only core devices that have this status. Choose one of the following options: HEALTHY – The AWS IoT Greengrass Core software and all components run on the core device without issue. UNHEALTHY – The AWS IoT Greengrass Core software or a component is in a failed state on the core device.
|
|
1066
|
+
*/
|
|
1067
|
+
status?: CoreDeviceStatus;
|
|
1068
|
+
/**
|
|
1069
|
+
* The maximum number of results to be returned per paginated request.
|
|
1070
|
+
*/
|
|
1071
|
+
maxResults?: DefaultMaxResults;
|
|
1072
|
+
/**
|
|
1073
|
+
* The token to be used for the next set of paginated results.
|
|
1074
|
+
*/
|
|
1075
|
+
nextToken?: NextTokenString;
|
|
1076
|
+
}
|
|
1077
|
+
export interface ListCoreDevicesResponse {
|
|
1078
|
+
/**
|
|
1079
|
+
* A list that summarizes each core device.
|
|
1080
|
+
*/
|
|
1081
|
+
coreDevices?: CoreDevicesList;
|
|
1082
|
+
/**
|
|
1083
|
+
* The token for the next set of results, or null if there are no additional results.
|
|
1084
|
+
*/
|
|
1085
|
+
nextToken?: NextTokenString;
|
|
1086
|
+
}
|
|
1087
|
+
export interface ListDeploymentsRequest {
|
|
1088
|
+
/**
|
|
1089
|
+
* The ARN of the target AWS IoT thing or thing group.
|
|
1090
|
+
*/
|
|
1091
|
+
targetArn?: TargetARN;
|
|
1092
|
+
/**
|
|
1093
|
+
* The filter for the list of deployments. Choose one of the following options: ALL – The list includes all deployments. LATEST_ONLY – The list includes only the latest revision of each deployment. Default: LATEST_ONLY
|
|
1094
|
+
*/
|
|
1095
|
+
historyFilter?: DeploymentHistoryFilter;
|
|
1096
|
+
/**
|
|
1097
|
+
* The maximum number of results to be returned per paginated request.
|
|
1098
|
+
*/
|
|
1099
|
+
maxResults?: DefaultMaxResults;
|
|
1100
|
+
/**
|
|
1101
|
+
* The token to be used for the next set of paginated results.
|
|
1102
|
+
*/
|
|
1103
|
+
nextToken?: NextTokenString;
|
|
1104
|
+
}
|
|
1105
|
+
export interface ListDeploymentsResponse {
|
|
1106
|
+
/**
|
|
1107
|
+
* A list that summarizes each deployment.
|
|
1108
|
+
*/
|
|
1109
|
+
deployments?: DeploymentList;
|
|
1110
|
+
/**
|
|
1111
|
+
* The token for the next set of results, or null if there are no additional results.
|
|
1112
|
+
*/
|
|
1113
|
+
nextToken?: NextTokenString;
|
|
1114
|
+
}
|
|
1115
|
+
export interface ListEffectiveDeploymentsRequest {
|
|
1116
|
+
/**
|
|
1117
|
+
* The name of the core device. This is also the name of the AWS IoT thing.
|
|
1118
|
+
*/
|
|
1119
|
+
coreDeviceThingName: CoreDeviceThingName;
|
|
1120
|
+
/**
|
|
1121
|
+
* The maximum number of results to be returned per paginated request.
|
|
1122
|
+
*/
|
|
1123
|
+
maxResults?: DefaultMaxResults;
|
|
1124
|
+
/**
|
|
1125
|
+
* The token to be used for the next set of paginated results.
|
|
1126
|
+
*/
|
|
1127
|
+
nextToken?: NextTokenString;
|
|
1128
|
+
}
|
|
1129
|
+
export interface ListEffectiveDeploymentsResponse {
|
|
1130
|
+
/**
|
|
1131
|
+
* A list that summarizes each deployment on the core device.
|
|
1132
|
+
*/
|
|
1133
|
+
effectiveDeployments?: EffectiveDeploymentsList;
|
|
1134
|
+
/**
|
|
1135
|
+
* The token for the next set of results, or null if there are no additional results.
|
|
1136
|
+
*/
|
|
1137
|
+
nextToken?: NextTokenString;
|
|
1138
|
+
}
|
|
1139
|
+
export interface ListInstalledComponentsRequest {
|
|
1140
|
+
/**
|
|
1141
|
+
* The name of the core device. This is also the name of the AWS IoT thing.
|
|
1142
|
+
*/
|
|
1143
|
+
coreDeviceThingName: CoreDeviceThingName;
|
|
1144
|
+
/**
|
|
1145
|
+
* The maximum number of results to be returned per paginated request.
|
|
1146
|
+
*/
|
|
1147
|
+
maxResults?: DefaultMaxResults;
|
|
1148
|
+
/**
|
|
1149
|
+
* The token to be used for the next set of paginated results.
|
|
1150
|
+
*/
|
|
1151
|
+
nextToken?: NextTokenString;
|
|
1152
|
+
}
|
|
1153
|
+
export interface ListInstalledComponentsResponse {
|
|
1154
|
+
/**
|
|
1155
|
+
* A list that summarizes each component on the core device.
|
|
1156
|
+
*/
|
|
1157
|
+
installedComponents?: InstalledComponentList;
|
|
1158
|
+
/**
|
|
1159
|
+
* The token for the next set of results, or null if there are no additional results.
|
|
1160
|
+
*/
|
|
1161
|
+
nextToken?: NextTokenString;
|
|
1162
|
+
}
|
|
1163
|
+
export interface ListTagsForResourceRequest {
|
|
1164
|
+
/**
|
|
1165
|
+
* The ARN of the resource.
|
|
1166
|
+
*/
|
|
1167
|
+
resourceArn: GenericV2ARN;
|
|
1168
|
+
}
|
|
1169
|
+
export interface ListTagsForResourceResponse {
|
|
1170
|
+
/**
|
|
1171
|
+
* A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.
|
|
1172
|
+
*/
|
|
1173
|
+
tags?: TagMap;
|
|
1174
|
+
}
|
|
1175
|
+
export type NextTokenString = string;
|
|
1176
|
+
export type NonEmptyString = string;
|
|
1177
|
+
export type NullableString = string;
|
|
1178
|
+
export type OptionalBoolean = boolean;
|
|
1179
|
+
export type OptionalInteger = number;
|
|
1180
|
+
export type PlatformAttributesMap = {[key: string]: NonEmptyString};
|
|
1181
|
+
export type PublisherString = string;
|
|
1182
|
+
export type Reason = string;
|
|
1183
|
+
export type RecipeBlob = Buffer|Uint8Array|Blob|string;
|
|
1184
|
+
export type RecipeOutputFormat = "JSON"|"YAML"|string;
|
|
1185
|
+
export interface ResolveComponentCandidatesRequest {
|
|
1186
|
+
/**
|
|
1187
|
+
* The platform to use to resolve compatible components.
|
|
1188
|
+
*/
|
|
1189
|
+
platform: ComponentPlatform;
|
|
1190
|
+
/**
|
|
1191
|
+
* The list of components to resolve.
|
|
1192
|
+
*/
|
|
1193
|
+
componentCandidates: ComponentCandidateList;
|
|
1194
|
+
}
|
|
1195
|
+
export interface ResolveComponentCandidatesResponse {
|
|
1196
|
+
/**
|
|
1197
|
+
* A list of components that meet the requirements that you specify in the request. This list includes each component's recipe that you can use to install the component.
|
|
1198
|
+
*/
|
|
1199
|
+
resolvedComponentVersions?: ResolvedComponentVersionsList;
|
|
1200
|
+
}
|
|
1201
|
+
export interface ResolvedComponentVersion {
|
|
1202
|
+
/**
|
|
1203
|
+
* The ARN of the component version.
|
|
1204
|
+
*/
|
|
1205
|
+
arn?: ComponentVersionARN;
|
|
1206
|
+
/**
|
|
1207
|
+
* The name of the component.
|
|
1208
|
+
*/
|
|
1209
|
+
componentName?: ComponentNameString;
|
|
1210
|
+
/**
|
|
1211
|
+
* The version of the component.
|
|
1212
|
+
*/
|
|
1213
|
+
componentVersion?: ComponentVersionString;
|
|
1214
|
+
/**
|
|
1215
|
+
* The recipe of the component version.
|
|
1216
|
+
*/
|
|
1217
|
+
recipe?: RecipeBlob;
|
|
1218
|
+
}
|
|
1219
|
+
export type ResolvedComponentVersionsList = ResolvedComponentVersion[];
|
|
1220
|
+
export type String = string;
|
|
1221
|
+
export type StringMap = {[key: string]: NonEmptyString};
|
|
1222
|
+
export type TagKey = string;
|
|
1223
|
+
export type TagKeyList = TagKey[];
|
|
1224
|
+
export type TagMap = {[key: string]: TagValue};
|
|
1225
|
+
export interface TagResourceRequest {
|
|
1226
|
+
/**
|
|
1227
|
+
* The ARN of the resource to tag.
|
|
1228
|
+
*/
|
|
1229
|
+
resourceArn: GenericV2ARN;
|
|
1230
|
+
/**
|
|
1231
|
+
* A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the AWS IoT Greengrass V2 Developer Guide.
|
|
1232
|
+
*/
|
|
1233
|
+
tags: TagMap;
|
|
1234
|
+
}
|
|
1235
|
+
export interface TagResourceResponse {
|
|
1236
|
+
}
|
|
1237
|
+
export type TagValue = string;
|
|
1238
|
+
export type TargetARN = string;
|
|
1239
|
+
export type ThingGroupARN = string;
|
|
1240
|
+
export type Timestamp = Date;
|
|
1241
|
+
export type TopicString = string;
|
|
1242
|
+
export interface UntagResourceRequest {
|
|
1243
|
+
/**
|
|
1244
|
+
* The ARN of the resource to untag.
|
|
1245
|
+
*/
|
|
1246
|
+
resourceArn: GenericV2ARN;
|
|
1247
|
+
/**
|
|
1248
|
+
* A list of keys for tags to remove from the resource.
|
|
1249
|
+
*/
|
|
1250
|
+
tagKeys: TagKeyList;
|
|
1251
|
+
}
|
|
1252
|
+
export interface UntagResourceResponse {
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|
|
1256
|
+
*/
|
|
1257
|
+
export type apiVersion = "2020-11-30"|"latest"|string;
|
|
1258
|
+
export interface ClientApiVersions {
|
|
1259
|
+
/**
|
|
1260
|
+
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
|
|
1261
|
+
*/
|
|
1262
|
+
apiVersion?: apiVersion;
|
|
1263
|
+
}
|
|
1264
|
+
export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
|
1265
|
+
/**
|
|
1266
|
+
* Contains interfaces for use with the GreengrassV2 client.
|
|
1267
|
+
*/
|
|
1268
|
+
export import Types = GreengrassV2;
|
|
1269
|
+
}
|
|
1270
|
+
export = GreengrassV2;
|