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

Amazonka.CodeStar.Types.Code

Description

 
Synopsis

Documentation

data Code Source #

Location and destination information about the source code files provided with the project request. The source code is uploaded to the new project source repository after project creation.

See: newCode smart constructor.

Constructors

Code' 

Fields

  • source :: CodeSource

    The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.

  • destination :: CodeDestination

    The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.

Instances

Instances details
Eq Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

Methods

(==) :: Code -> Code -> Bool #

(/=) :: Code -> Code -> Bool #

Show Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

Methods

showsPrec :: Int -> Code -> ShowS #

show :: Code -> String #

showList :: [Code] -> ShowS #

Generic Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

Associated Types

type Rep Code :: Type -> Type #

Methods

from :: Code -> Rep Code x #

to :: Rep Code x -> Code #

NFData Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

Methods

rnf :: Code -> () #

Hashable Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

Methods

hashWithSalt :: Int -> Code -> Int #

hash :: Code -> Int #

ToJSON Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

type Rep Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

type Rep Code = D1 ('MetaData "Code" "Amazonka.CodeStar.Types.Code" "libZSservicesZSamazonka-codestarZSamazonka-codestar" 'False) (C1 ('MetaCons "Code'" 'PrefixI 'True) (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CodeSource) :*: S1 ('MetaSel ('Just "destination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 CodeDestination)))

newCode Source #

Create a value of Code with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:source:Code', code_source - The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.

$sel:destination:Code', code_destination - The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.

code_source :: Lens' Code CodeSource Source #

The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.

code_destination :: Lens' Code CodeDestination Source #

The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.