amazonka-codestar-2.0: Amazon CodeStar SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

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 #

Show Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

Methods

showsPrec :: Int -> Code -> ShowS #

show :: Code -> String #

showList :: [Code] -> ShowS #

NFData Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

Methods

rnf :: Code -> () #

Eq Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

Methods

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

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

Hashable Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

Methods

hashWithSalt :: Int -> Code -> Int #

hash :: Code -> Int #

type Rep Code Source # 
Instance details

Defined in Amazonka.CodeStar.Types.Code

type Rep Code = D1 ('MetaData "Code" "Amazonka.CodeStar.Types.Code" "amazonka-codestar-2.0-J6u0QgMrENu7wBmwByxQnV" '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.