How to use the @aws-cdk/cx-api.ASSET_PREFIX_SEPARATOR function in @aws-cdk/cx-api

To help you get started, we’ve selected a few @aws-cdk/cx-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws / aws-cdk / packages / aws-cdk / lib / assets.ts View on Github external
contentType
  });

  const relativePath = path.relative(process.cwd(), asset.path);

  const s3url = `s3://${toolkitInfo.bucketName}/${key}`;
  debug(`S3 url for ${relativePath}: ${s3url}`);
  if (changed) {
    success(`Updated: ${colors.bold(relativePath)} (${asset.packaging})`);
  } else {
    debug(`Up-to-date: ${colors.bold(relativePath)} (${asset.packaging})`);
  }

  return [
    { ParameterKey: asset.s3BucketParameter, ParameterValue: toolkitInfo.bucketName },
    { ParameterKey: asset.s3KeyParameter, ParameterValue: `${s3KeyPrefix}${cxapi.ASSET_PREFIX_SEPARATOR}${filename}` },
    { ParameterKey: asset.artifactHashParameter, ParameterValue: hash },
  ];
}