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 Source #

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 Source #

See: createProject smart constructor.

Instances

Eq CreateProject Source # 
Data CreateProject Source # 

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 Source # 
Show CreateProject Source # 
Generic CreateProject Source # 

Associated Types

type Rep CreateProject :: * -> * #

Hashable CreateProject Source # 
ToJSON CreateProject Source # 
NFData CreateProject Source # 

Methods

rnf :: CreateProject -> () #

AWSRequest CreateProject Source # 
ToHeaders CreateProject Source # 
ToPath CreateProject Source # 
ToQuery CreateProject Source # 
type Rep CreateProject Source # 
type Rep CreateProject = D1 * (MetaData "CreateProject" "Network.AWS.CodeBuild.CreateProject" "amazonka-codebuild-1.6.0-3VlWGhdhReJGNFnMlVFSyp" 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 Source # 

Request Lenses

cpBadgeEnabled :: Lens' CreateProject (Maybe Bool) Source #

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

cpCache :: Lens' CreateProject (Maybe ProjectCache) Source #

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

cpVpcConfig :: Lens' CreateProject (Maybe VPCConfig) Source #

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

cpEncryptionKey :: Lens' CreateProject (Maybe Text) Source #

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) Source #

A description that makes the build project easy to identify.

cpServiceRole :: Lens' CreateProject (Maybe Text) Source #

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] Source #

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) Source #

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 Source #

The name of the build project.

cpSource :: Lens' CreateProject ProjectSource Source #

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

cpArtifacts :: Lens' CreateProject ProjectArtifacts Source #

Information about the build output artifacts for the build project.

cpEnvironment :: Lens' CreateProject ProjectEnvironment Source #

Information about the build environment for the build project.

Destructuring the Response

createProjectResponse Source #

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 Source #

See: createProjectResponse smart constructor.

Instances

Eq CreateProjectResponse Source # 
Data CreateProjectResponse Source # 

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 Source # 
Show CreateProjectResponse Source # 
Generic CreateProjectResponse Source # 
NFData CreateProjectResponse Source # 

Methods

rnf :: CreateProjectResponse -> () #

type Rep CreateProjectResponse Source # 
type Rep CreateProjectResponse = D1 * (MetaData "CreateProjectResponse" "Network.AWS.CodeBuild.CreateProject" "amazonka-codebuild-1.6.0-3VlWGhdhReJGNFnMlVFSyp" 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) Source #

Information about the build project that was created.

cprsResponseStatus :: Lens' CreateProjectResponse Int Source #

  • - | The response status code.