GetArtifactUrlCommand

Returns the artifact info that corresponds to an artifact id.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { AmplifyClient, GetArtifactUrlCommand } from "@aws-sdk/client-amplify"; // ES Modules import
// const { AmplifyClient, GetArtifactUrlCommand } = require("@aws-sdk/client-amplify"); // CommonJS import
const client = new AmplifyClient(config);
const input = { // GetArtifactUrlRequest
  artifactId: "STRING_VALUE", // required
};
const command = new GetArtifactUrlCommand(input);
const response = await client.send(command);
// { // GetArtifactUrlResult
//   artifactId: "STRING_VALUE", // required
//   artifactUrl: "STRING_VALUE", // required
// };

GetArtifactUrlCommand Input

See GetArtifactUrlCommandInput for more details

Parameter
Type
Description
artifactId
Required
string | undefined

The unique ID for an artifact.

GetArtifactUrlCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
artifactId
Required
string | undefined

The unique ID for an artifact.

artifactUrl
Required
string | undefined

The presigned URL for the artifact.

Throws

Name
Fault
Details
BadRequestException
client

A request contains unexpected data.

InternalFailureException
server

The service failed to perform an operation due to an internal issue.

LimitExceededException
client

A resource could not be created because service quotas were exceeded.

NotFoundException
client

An entity was not found during an operation.

UnauthorizedException
client

An operation failed due to a lack of access.

AmplifyServiceException
Base exception class for all service exceptions from Amplify service.