:doc:`GreengrassV2 <../../greengrassv2>` / Client / get_component_version_artifact

******************************
get_component_version_artifact
******************************



.. py:method:: 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 <https://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/GetComponentVersionArtifact>`_  


  **Request Syntax**
  ::

    response = client.get_component_version_artifact(
        arn='string',
        artifactName='string',
        s3EndpointType='REGIONAL'|'GLOBAL',
        iotEndpointType='fips'|'standard'
    )
    
  :type arn: string
  :param arn: **[REQUIRED]** 

    The `ARN <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__ of the component version. Specify the ARN of a public or a Lambda component version.

    

  
  :type artifactName: string
  :param artifactName: **[REQUIRED]** 

    The name of the artifact.

     

    You can use the `GetComponent <https://docs.aws.amazon.com/greengrass/v2/APIReference/API_GetComponent.html>`__ 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``.

    

  
  :type s3EndpointType: string
  :param s3EndpointType: 

    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.

    

  
  :type iotEndpointType: string
  :param iotEndpointType: 

    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``.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'preSignedUrl': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **preSignedUrl** *(string) --* 

        The URL of the artifact.

        
  
  **Exceptions**
  
  *   :py:class:`GreengrassV2.Client.exceptions.ValidationException`

  
  *   :py:class:`GreengrassV2.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`GreengrassV2.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`GreengrassV2.Client.exceptions.ThrottlingException`

  
  *   :py:class:`GreengrassV2.Client.exceptions.InternalServerException`

  