component_version_artifacts
Creates, updates, deletes, gets or lists a component_version_artifacts resource.
Overview
| Name | component_version_artifacts |
| Type | Resource |
| Id | aws.greengrassv2.component_version_artifacts |
Fields
The following fields are returned by SELECT queries:
- get_component_version_artifact
| Name | Datatype | Description |
|---|---|---|
pre_signed_url | string | The URL of the artifact. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_component_version_artifact | select | arn, artifact_name, region | s3EndpointType, x-amz-iot-endpoint-type | Gets the pre-signed URL to download a public or a Lambda component artifact. Core devices call this operation to identify the URL that they can use to download an artifact to install. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
arn | string | The ARN of the component version. Specify the ARN of a public or a Lambda component version. |
artifact_name | string | 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. |
region | string | AWS region (default: us-east-1) |
s3EndpointType | string | Specifies the endpoint to use when getting Amazon S3 pre-signed URLs. All Amazon Web Services Regions except US East (N. Virginia) use REGIONAL in all cases. In the US East (N. Virginia) Region the default is GLOBAL, but you can change it to REGIONAL with this parameter. |
x-amz-iot-endpoint-type | string | Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint. Specify fips if you want the returned Amazon S3 pre-signed URL to point to an Amazon S3 FIPS endpoint. If you don't specify a value, the default is standard. |
SELECT examples
- get_component_version_artifact
Gets the pre-signed URL to download a public or a Lambda component artifact. Core devices call this operation to identify the URL that they can use to download an artifact to install.
SELECT
pre_signed_url
FROM aws.greengrassv2.component_version_artifacts
WHERE arn = '{{ arn }}' -- required
AND artifact_name = '{{ artifact_name }}' -- required
AND region = '{{ region }}' -- required
AND s3EndpointType = '{{ s3EndpointType }}'
AND `x-amz-iot-endpoint-type` = '{{ x-amz-iot-endpoint-type }}'
;