Show / Hide Table of Contents

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 .

Inheritance
object
CfnProject.ProjectCacheProperty
Implements
CfnProject.IProjectCacheProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html

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()

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 .

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html

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

string

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-cachenamespace

Location

Information about the cache location:.

public string? Location { get; set; }
Property Value

string

Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-location

    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>
      

        See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-modes

        Type

        The type of cache used by the build project. Valid values include:.

        public string Type { get; set; }
        Property Value

        string

        Remarks

          See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-projectcache.html#cfn-codebuild-project-projectcache-type

          Implements

          CfnProject.IProjectCacheProperty
          Back to top Generated by DocFX