Values.CreateComponentVersionRequestSourceCreates a component. Components are software that run on Greengrass core devices. After you develop and test a component on your core device, you can use this operation to upload your component to 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 IoT Greengrass component recipe reference in the 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 Lambda function that runs on 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 IoT Greengrass V1 to IoT Greengrass V2. This function accepts Lambda functions in all supported versions of Python, Node.js, and Java runtimes. IoT Greengrass doesn't apply any additional restrictions on deprecated Lambda runtime versions. To create a component from a Lambda function, specify lambdaFunction when you call this operation. IoT Greengrass currently supports Lambda functions on only Linux core devices.
type nonrec t = {inlineRecipe : RecipeBlob.t option;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.
*)lambdaFunction : LambdaFunctionRecipeSource.t option;The parameters to create a component from a Lambda function. You must specify either inlineRecipe or lambdaFunction.
*)clientToken : ClientTokenString.t option;A unique, case-sensitive identifier that you can provide to ensure that the request is idempotent. Idempotency means that the request is successfully processed only once, even if you send the request multiple times. When a request succeeds, and you specify the same client token for subsequent successful requests, the IoT Greengrass V2 service returns the successful response that it caches from the previous request. IoT Greengrass V2 caches successful responses for idempotent requests for up to 8 hours.
*)}val to_value :
t ->
[> `Structure of
(string
* [> `Blob of RecipeBlob.t
| `Map of
([> `String of TagKey.t ] * [> `String of TagValue.t ]) list
| `String of ClientTokenString.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Map of
([> `String of NonEmptyString.t ]
* [> `String of NonEmptyString.t ])
list
| `String of NonEmptyString.t ])
list ]
list
| `Map of
([> `String of NonEmptyString.t ]
* [> `Structure of
(string
* [> `Enum of string | `String of NonEmptyString.t ])
list ])
list
| `String of NonEmptyString.t
| `Structure of
(string
* [> `Boolean of OptionalBoolean.t
| `Enum of string
| `Integer of OptionalInteger.t
| `List of
[> `String of LambdaExecArg.t
| `Structure of
(string
* [> `Enum of string | `String of TopicString.t ])
list ]
list
| `Map of
([> `String of NonEmptyString.t ]
* [> `String of String_.t ])
list
| `Structure of
(string
* [> `Enum of string
| `Structure of
(string
* [> `Boolean of OptionalBoolean.t
| `Integer of OptionalInteger.t
| `List of
[> `Structure of
(string
* [> `Boolean of OptionalBoolean.t
| `Enum of string
| `String of FileSystemPath.t ])
list ]
list ])
list ])
list ])
list ])
list ])
list ]