Class CfnProject.ProjectCacheProperty
ProjectCache is a property of the AWS CodeBuild Project resource that specifies information about the cache for the build project. If ProjectCache is not specified, then both of its properties default to NO_CACHE .
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnProject.ProjectCacheProperty : CfnProject.IProjectCacheProperty
Syntax (vb)
Public Class CfnProject.ProjectCacheProperty Implements CfnProject.IProjectCacheProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
var projectCacheProperty = new ProjectCacheProperty {
Type = "type",
// the properties below are optional
CacheNamespace = "cacheNamespace",
Location = "location",
Modes = new [] { "modes" }
};
Synopsis
Constructors
| ProjectCacheProperty() |
|
Properties
| CacheNamespace | Defines the scope of the cache. |
| Location | Information about the cache location:. |
| Modes | An array of strings that specify the local cache modes. |
| Type | The type of cache used by the build project. Valid values include:. |
Constructors
ProjectCacheProperty()
ProjectCache is a property of the AWS CodeBuild Project resource that specifies information about the cache for the build project. If ProjectCache is not specified, then both of its properties default to NO_CACHE .
public ProjectCacheProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
var projectCacheProperty = new ProjectCacheProperty {
Type = "type",
// the properties below are optional
CacheNamespace = "cacheNamespace",
Location = "location",
Modes = new [] { "modes" }
};
Properties
CacheNamespace
Defines the scope of the cache.
public string? CacheNamespace { get; set; }
Property Value
Remarks
You can use this namespace to share a cache across multiple projects. For more information, see Cache sharing between projects in the AWS CodeBuild User Guide .
Location
Information about the cache location:.
public string? Location { get; set; }
Property Value
Remarks
Modes
An array of strings that specify the local cache modes.
public string[]? Modes { get; set; }
Property Value
string[]
Remarks
You can use one or more local cache modes at the same time. This is only used for LOCAL cache types.
Possible values are:
<ul></ul>
Type
The type of cache used by the build project. Valid values include:.
public string Type { get; set; }