"smithy.api#documentation": "<p>An array of strings that specify the local cache modes. You can use one or more local\n cache modes at the same time. This is only used for <code>LOCAL</code> cache\n types.</p>\n <p>Possible values are:</p>\n <dl>\n <dt>LOCAL_SOURCE_CACHE</dt>\n <dd>\n <p>Caches Git metadata for primary and secondary sources. After the cache is\n created, subsequent builds pull only the change between commits. This mode\n is a good choice for projects with a clean working directory and a source\n that is a large Git repository. If you choose this option and your project\n does not use a Git repository (GitHub, GitHub Enterprise, or Bitbucket), the\n option is ignored. </p>\n </dd>\n <dt>LOCAL_DOCKER_LAYER_CACHE</dt>\n <dd>\n <p>Caches existing Docker layers. This mode is a good choice for projects\n that build or pull large Docker images. It can prevent the performance\n issues caused by pulling large Docker images down from the network. </p>\n <note>\n <ul>\n <li>\n <p>You can use a Docker layer cache in the Linux environment\n only. </p>\n </li>\n <li>\n <p>The <code>privileged</code> flag must be set so that your\n project has the required Docker permissions. </p>\n </li>\n <li>\n <p>You should consider the security implications before you use a\n Docker layer cache. </p>\n </li>\n </ul>\n </note>\n </dd>\n <dt>LOCAL_CUSTOM_CACHE</dt>\n <dd>\n <p>Caches directories you specify in the buildspec file. This mode is a good\n choice if your build scenario is not suited to one of the other three local\n cache modes. If you use a custom cache: </p>\n <ul>\n <li>\n <p>Only directories can be specified for caching. You cannot specify\n individual files. </p>\n </li>\n <li>\n <p>Symlinks are used to reference cached directories. </p>\n </li>\n <li>\n <p>Cached directories are linked to your build before it downloads\n its project sources. Cached items are overridden if a source item\n has the same name. Directories are specified using cache paths in\n the buildspec file. </p>\n </li>\n </ul>\n </dd>\n </dl>"
0 commit comments