Greengrassv2
This page documents function available when using the Greengrassv2
module, created with @service Greengrassv2
.
Index
Main.Greengrassv2.cancel_deployment
Main.Greengrassv2.create_component_version
Main.Greengrassv2.create_deployment
Main.Greengrassv2.delete_component
Main.Greengrassv2.delete_core_device
Main.Greengrassv2.describe_component
Main.Greengrassv2.get_component
Main.Greengrassv2.get_component_version_artifact
Main.Greengrassv2.get_core_device
Main.Greengrassv2.get_deployment
Main.Greengrassv2.list_component_versions
Main.Greengrassv2.list_components
Main.Greengrassv2.list_core_devices
Main.Greengrassv2.list_deployments
Main.Greengrassv2.list_effective_deployments
Main.Greengrassv2.list_installed_components
Main.Greengrassv2.list_tags_for_resource
Main.Greengrassv2.resolve_component_candidates
Main.Greengrassv2.tag_resource
Main.Greengrassv2.untag_resource
Documentation
Main.Greengrassv2.cancel_deployment
— Methodcancel_deployment(deployment_id)
cancel_deployment(deployment_id, params::Dict{String,<:Any})
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.
Arguments
deployment_id
: The ID of the deployment.
Main.Greengrassv2.create_component_version
— Methodcreate_component_version()
create_component_version(params::Dict{String,<:Any})
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.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"inlineRecipe"
: 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"
: The parameters to create a component from a Lambda function. You must specify either inlineRecipe or lambdaFunction."tags"
: 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.
Main.Greengrassv2.create_deployment
— Methodcreate_deployment(target_arn)
create_deployment(target_arn, params::Dict{String,<:Any})
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.
Arguments
target_arn
: The ARN of the target AWS IoT thing or thing group.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"components"
: 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."deploymentName"
: 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."deploymentPolicies"
: The deployment policies for the deployment. These policies define how the deployment updates components and handles failure."iotJobConfiguration"
: The job configuration for the deployment configuration. The job configuration specifies the rollout, timeout, and stop configurations for the deployment configuration."tags"
: 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.
Main.Greengrassv2.delete_component
— Methoddelete_component(arn)
delete_component(arn, params::Dict{String,<:Any})
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.
Arguments
arn
: The ARN of the component version.
Main.Greengrassv2.delete_core_device
— Methoddelete_core_device(core_device_thing_name)
delete_core_device(core_device_thing_name, params::Dict{String,<:Any})
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.
Arguments
core_device_thing_name
: The name of the core device. This is also the name of the AWS IoT thing.
Main.Greengrassv2.describe_component
— Methoddescribe_component(arn)
describe_component(arn, params::Dict{String,<:Any})
Retrieves metadata for a version of a component.
Arguments
arn
: The ARN of the component version.
Main.Greengrassv2.get_component
— Methodget_component(arn)
get_component(arn, params::Dict{String,<:Any})
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.
Arguments
arn
: The ARN of the component version.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"recipeOutputFormat"
: The format of the recipe.
Main.Greengrassv2.get_component_version_artifact
— Methodget_component_version_artifact(arn, artifact_name)
get_component_version_artifact(arn, artifact_name, params::Dict{String,<:Any})
Gets the pre-signed URL to download a public component artifact. Core devices call this operation to identify the URL that they can use to download an artifact to install.
Arguments
arn
: The ARN of the component version. Specify the ARN of a public component version.artifact_name
: The name of the artifact. You can use the GetComponent operation to download the component recipe, which includes the URI of the artifact. The artifact name is the section of the URI after the scheme. For example, in the artifact URI greengrass:SomeArtifact.zip, the artifact name is SomeArtifact.zip.
Main.Greengrassv2.get_core_device
— Methodget_core_device(core_device_thing_name)
get_core_device(core_device_thing_name, params::Dict{String,<:Any})
Retrieves metadata for a AWS IoT Greengrass core device.
Arguments
core_device_thing_name
: The name of the core device. This is also the name of the AWS IoT thing.
Main.Greengrassv2.get_deployment
— Methodget_deployment(deployment_id)
get_deployment(deployment_id, params::Dict{String,<:Any})
Gets a deployment. Deployments define the components that run on AWS IoT Greengrass core devices.
Arguments
deployment_id
: The ID of the deployment.
Main.Greengrassv2.list_component_versions
— Methodlist_component_versions(arn)
list_component_versions(arn, params::Dict{String,<:Any})
Retrieves a paginated list of all versions for a component.
Arguments
arn
: The ARN of the component version.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"maxResults"
: The maximum number of results to be returned per paginated request."nextToken"
: The token to be used for the next set of paginated results.
Main.Greengrassv2.list_components
— Methodlist_components()
list_components(params::Dict{String,<:Any})
Retrieves a paginated list of component summaries. This list includes components that you have permission to view.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"maxResults"
: The maximum number of results to be returned per paginated request."nextToken"
: The token to be used for the next set of paginated results."scope"
: The scope of the components to list. Default: PRIVATE
Main.Greengrassv2.list_core_devices
— Methodlist_core_devices()
list_core_devices(params::Dict{String,<:Any})
Retrieves a paginated list of AWS IoT Greengrass core devices.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"maxResults"
: The maximum number of results to be returned per paginated request."nextToken"
: The token to be used for the next set of paginated results."status"
: 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."thingGroupArn"
: 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.
Main.Greengrassv2.list_deployments
— Methodlist_deployments()
list_deployments(params::Dict{String,<:Any})
Retrieves a paginated list of deployments.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"historyFilter"
: The filter for the list of deployments. Choose one of the following options: ALL – The list includes all deployments. LATESTONLY – The list includes only the latest revision of each deployment. Default: LATESTONLY"maxResults"
: The maximum number of results to be returned per paginated request."nextToken"
: The token to be used for the next set of paginated results."targetArn"
: The ARN of the target AWS IoT thing or thing group.
Main.Greengrassv2.list_effective_deployments
— Methodlist_effective_deployments(core_device_thing_name)
list_effective_deployments(core_device_thing_name, params::Dict{String,<:Any})
Retrieves a paginated list of deployment jobs that AWS IoT Greengrass sends to AWS IoT Greengrass core devices.
Arguments
core_device_thing_name
: The name of the core device. This is also the name of the AWS IoT thing.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"maxResults"
: The maximum number of results to be returned per paginated request."nextToken"
: The token to be used for the next set of paginated results.
Main.Greengrassv2.list_installed_components
— Methodlist_installed_components(core_device_thing_name)
list_installed_components(core_device_thing_name, params::Dict{String,<:Any})
Retrieves a paginated list of the components that a AWS IoT Greengrass core device runs.
Arguments
core_device_thing_name
: The name of the core device. This is also the name of the AWS IoT thing.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"maxResults"
: The maximum number of results to be returned per paginated request."nextToken"
: The token to be used for the next set of paginated results.
Main.Greengrassv2.list_tags_for_resource
— Methodlist_tags_for_resource(resource_arn)
list_tags_for_resource(resource_arn, params::Dict{String,<:Any})
Retrieves the list of tags for an AWS IoT Greengrass resource.
Arguments
resource_arn
: The ARN of the resource.
Main.Greengrassv2.resolve_component_candidates
— Methodresolve_component_candidates(component_candidates, platform)
resolve_component_candidates(component_candidates, platform, params::Dict{String,<:Any})
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.
Arguments
component_candidates
: The list of components to resolve.platform
: The platform to use to resolve compatible components.
Main.Greengrassv2.tag_resource
— Methodtag_resource(resource_arn, tags)
tag_resource(resource_arn, tags, params::Dict{String,<:Any})
Adds tags to an AWS IoT Greengrass resource. If a tag already exists for the resource, this operation updates the tag's value.
Arguments
resource_arn
: The ARN of the resource to tag.tags
: 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.
Main.Greengrassv2.untag_resource
— Methoduntag_resource(resource_arn, tag_keys)
untag_resource(resource_arn, tag_keys, params::Dict{String,<:Any})
Removes a tag from an AWS IoT Greengrass resource.
Arguments
resource_arn
: The ARN of the resource to untag.tag_keys
: A list of keys for tags to remove from the resource.