libZSservicesZSamazonka-codecommitZSamazonka-codecommit
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.CodeCommit.Types.Target

Description

 
Synopsis

Documentation

data Target Source #

Returns information about a target for a pull request.

See: newTarget smart constructor.

Constructors

Target' 

Fields

  • destinationReference :: Maybe Text

    The branch of the repository where the pull request changes are merged. Also known as the destination branch.

  • repositoryName :: Text

    The name of the repository that contains the pull request.

  • sourceReference :: Text

    The branch of the repository that contains the changes for the pull request. Also known as the source branch.

Instances

Instances details
Eq Target Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Target

Methods

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

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

Read Target Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Target

Show Target Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Target

Generic Target Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Target

Associated Types

type Rep Target :: Type -> Type #

Methods

from :: Target -> Rep Target x #

to :: Rep Target x -> Target #

NFData Target Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Target

Methods

rnf :: Target -> () #

Hashable Target Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Target

Methods

hashWithSalt :: Int -> Target -> Int #

hash :: Target -> Int #

ToJSON Target Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Target

type Rep Target Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.Target

type Rep Target = D1 ('MetaData "Target" "Amazonka.CodeCommit.Types.Target" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "Target'" 'PrefixI 'True) (S1 ('MetaSel ('Just "destinationReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sourceReference") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newTarget Source #

Create a value of Target 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:destinationReference:Target', target_destinationReference - The branch of the repository where the pull request changes are merged. Also known as the destination branch.

$sel:repositoryName:Target', target_repositoryName - The name of the repository that contains the pull request.

$sel:sourceReference:Target', target_sourceReference - The branch of the repository that contains the changes for the pull request. Also known as the source branch.

target_destinationReference :: Lens' Target (Maybe Text) Source #

The branch of the repository where the pull request changes are merged. Also known as the destination branch.

target_repositoryName :: Lens' Target Text Source #

The name of the repository that contains the pull request.

target_sourceReference :: Lens' Target Text Source #

The branch of the repository that contains the changes for the pull request. Also known as the source branch.