get_component_version_artifact

GreengrassV2.Client.get_component_version_artifact(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.get_component_version_artifact(
    arn='string',
    artifactName='string'
)
Parameters
  • arn (string) --

    [REQUIRED]

    The ARN of the component version. Specify the ARN of a public or a Lambda component version.

  • artifactName (string) --

    [REQUIRED]

    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 .

Return type

dict

Returns

Response Syntax

{
    'preSignedUrl': 'string'
}

Response Structure

  • (dict) --

    • preSignedUrl (string) --

      The URL of the artifact.

Exceptions

  • GreengrassV2.Client.exceptions.ValidationException
  • GreengrassV2.Client.exceptions.AccessDeniedException
  • GreengrassV2.Client.exceptions.ResourceNotFoundException
  • GreengrassV2.Client.exceptions.ThrottlingException
  • GreengrassV2.Client.exceptions.InternalServerException