amazonka-codebuild-1.6.0: Amazon CodeBuild SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeBuild.CreateProject

Contents

Description

Creates a build project.

Synopsis

Creating a Request

createProject #

Creates a value of CreateProject with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cpBadgeEnabled - Set this to true to generate a publicly-accessible URL for your project's build badge.
  • cpCache - Stores recently used information so that it can be quickly accessed at a later time.
  • cpVpcConfig - VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.
  • cpEncryptionKey - The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format alias/alias-name ).
  • cpDescription - A description that makes the build project easy to identify.
  • cpServiceRole - The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.
  • cpTags - A set of tags for this build project. These tags are available for use by AWS services that support AWS CodeBuild build project tags.
  • cpTimeoutInMinutes - How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any build that has not been marked as completed. The default is 60 minutes.
  • cpName - The name of the build project.
  • cpSource - Information about the build input source code for the build project.
  • cpArtifacts - Information about the build output artifacts for the build project.
  • cpEnvironment - Information about the build environment for the build project.

data CreateProject #

See: createProject smart constructor.

Instances

Eq CreateProject # 
Data CreateProject # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateProject -> c CreateProject #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateProject #

toConstr :: CreateProject -> Constr #

dataTypeOf :: CreateProject -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateProject) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateProject) #

gmapT :: (forall b. Data b => b -> b) -> CreateProject -> CreateProject #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateProject -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateProject -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateProject -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateProject -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateProject -> m CreateProject #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateProject -> m CreateProject #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateProject -> m CreateProject #

Read CreateProject # 
Show CreateProject # 
Generic CreateProject # 

Associated Types

type Rep CreateProject :: * -> * #

Hashable CreateProject # 
ToJSON CreateProject # 
NFData CreateProject # 

Methods

rnf :: CreateProject -> () #

AWSRequest CreateProject # 
ToHeaders CreateProject # 
ToPath CreateProject # 
ToQuery CreateProject # 
type Rep CreateProject # 
type Rep CreateProject = D1 * (MetaData "CreateProject" "Network.AWS.CodeBuild.CreateProject" "amazonka-codebuild-1.6.0-62IjQJ65exL5j9C1qdgcsU" False) (C1 * (MetaCons "CreateProject'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cpBadgeEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cpCache") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ProjectCache))) (S1 * (MetaSel (Just Symbol "_cpVpcConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe VPCConfig))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cpEncryptionKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cpDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cpServiceRole") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cpTags") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Tag]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cpTimeoutInMinutes") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))) (S1 * (MetaSel (Just Symbol "_cpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cpSource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ProjectSource)) ((:*:) * (S1 * (MetaSel (Just Symbol "_cpArtifacts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ProjectArtifacts)) (S1 * (MetaSel (Just Symbol "_cpEnvironment") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * ProjectEnvironment)))))))
type Rs CreateProject # 

Request Lenses

cpBadgeEnabled :: Lens' CreateProject (Maybe Bool) #

Set this to true to generate a publicly-accessible URL for your project's build badge.

cpCache :: Lens' CreateProject (Maybe ProjectCache) #

Stores recently used information so that it can be quickly accessed at a later time.

cpVpcConfig :: Lens' CreateProject (Maybe VPCConfig) #

VpcConfig enables AWS CodeBuild to access resources in an Amazon VPC.

cpEncryptionKey :: Lens' CreateProject (Maybe Text) #

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts. You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format alias/alias-name ).

cpDescription :: Lens' CreateProject (Maybe Text) #

A description that makes the build project easy to identify.

cpServiceRole :: Lens' CreateProject (Maybe Text) #

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

cpTags :: Lens' CreateProject [Tag] #

A set of tags for this build project. These tags are available for use by AWS services that support AWS CodeBuild build project tags.

cpTimeoutInMinutes :: Lens' CreateProject (Maybe Natural) #

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any build that has not been marked as completed. The default is 60 minutes.

cpName :: Lens' CreateProject Text #

The name of the build project.

cpSource :: Lens' CreateProject ProjectSource #

Information about the build input source code for the build project.

cpArtifacts :: Lens' CreateProject ProjectArtifacts #

Information about the build output artifacts for the build project.

cpEnvironment :: Lens' CreateProject ProjectEnvironment #

Information about the build environment for the build project.

Destructuring the Response

createProjectResponse #

Creates a value of CreateProjectResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateProjectResponse #

See: createProjectResponse smart constructor.

Instances

Eq CreateProjectResponse # 
Data CreateProjectResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateProjectResponse -> c CreateProjectResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateProjectResponse #

toConstr :: CreateProjectResponse -> Constr #

dataTypeOf :: CreateProjectResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CreateProjectResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateProjectResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateProjectResponse -> CreateProjectResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateProjectResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateProjectResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateProjectResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateProjectResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateProjectResponse -> m CreateProjectResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateProjectResponse -> m CreateProjectResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateProjectResponse -> m CreateProjectResponse #

Read CreateProjectResponse # 
Show CreateProjectResponse # 
Generic CreateProjectResponse # 
NFData CreateProjectResponse # 

Methods

rnf :: CreateProjectResponse -> () #

type Rep CreateProjectResponse # 
type Rep CreateProjectResponse = D1 * (MetaData "CreateProjectResponse" "Network.AWS.CodeBuild.CreateProject" "amazonka-codebuild-1.6.0-62IjQJ65exL5j9C1qdgcsU" False) (C1 * (MetaCons "CreateProjectResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cprsProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Project))) (S1 * (MetaSel (Just Symbol "_cprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

cprsProject :: Lens' CreateProjectResponse (Maybe Project) #

Information about the build project that was created.

cprsResponseStatus :: Lens' CreateProjectResponse Int #

  • - | The response status code.