Skip to content

CreateComponentVersionRequest

Source code in docs_src/capo_greengrassv2/types/create_component_version_request.py
class CreateComponentVersionRequest(TypedDict, closed=True):
    inline_recipe: NotRequired["capo_greengrassv2.types.recipe_blob.RecipeBlob"]
    """<p>The recipe to use to create the component. The recipe defines the component's metadata, parameters, dependencies, lifecycle, artifacts, and platform compatibility.</p> <p>You must specify either <code>inlineRecipe</code> or <code>lambdaFunction</code>.</p>"""
    lambda_function: NotRequired[
        "capo_greengrassv2.types.lambda_function_recipe_source.LambdaFunctionRecipeSource"
    ]
    """<p>The parameters to create a component from a Lambda function.</p> <p>You must specify either <code>inlineRecipe</code> or <code>lambdaFunction</code>.</p>"""
    tags: NotRequired["capo_greengrassv2.types.tag_map.TagMap"]
    """<p>A list of key-value pairs that contain metadata for the resource. For more information, see <a href="https://docs.aws.amazon.com/greengrass/v2/developerguide/tag-resources.html">Tag your resources</a> in the <i>IoT Greengrass V2 Developer Guide</i>.</p>"""
    client_token: NotRequired[
        "capo_greengrassv2.types.client_token_string.ClientTokenString"
    ]
    """<p>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.</p>"""

client_token instance-attribute

client_token: NotRequired[ClientTokenString]

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.

inline_recipe instance-attribute

inline_recipe: NotRequired[RecipeBlob]

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.

lambda_function instance-attribute

lambda_function: NotRequired[LambdaFunctionRecipeSource]

The parameters to create a component from a Lambda function.

You must specify either inlineRecipe or lambdaFunction.

tags instance-attribute

tags: NotRequired[TagMap]

A list of key-value pairs that contain metadata for the resource. For more information, see Tag your resources in the IoT Greengrass V2 Developer Guide.