get_component_version_artifact
async
¶
get_component_version_artifact(
arn: ComponentVersionARN,
artifact_name: NonEmptyString,
*,
config_overrides: Optional[AsyncGreengrassV2ClientConfig] = None,
s3_endpoint_type: Optional[S3EndpointType] = None,
iot_endpoint_type: Optional[IotEndpointType] = None,
) -> GetComponentVersionArtifactResponse
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:
-
arn(ComponentVersionARN) –The ARN of the component version. Specify the ARN of a public or a Lambda component version.
-
artifact_name(NonEmptyString) –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 isSomeArtifact.zip. -
s3_endpoint_type(Optional[S3EndpointType], default:None) –Specifies the endpoint to use when getting Amazon S3 pre-signed URLs.
All Amazon Web Services Regions except US East (N. Virginia) use
REGIONALin all cases. In the US East (N. Virginia) Region the default isGLOBAL, but you can change it toREGIONALwith this parameter. -
iot_endpoint_type(Optional[IotEndpointType], default:None) –Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint. Specify
fipsif 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 isstandard.
Raises:
-
AccessDeniedException–You don't have permission to perform the action.
-
InternalServerException–IoT Greengrass can't process your request right now. Try again later.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a request rate quota. For example, you might have exceeded the amount of times that you can retrieve device or deployment status per second.
-
ValidationException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters.
-
UnknownServiceError–The service returned an error code this client does not model.