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.PutFileEntry

Description

 
Synopsis

Documentation

data PutFileEntry Source #

Information about a file added or updated as part of a commit.

See: newPutFileEntry smart constructor.

Constructors

PutFileEntry' 

Fields

  • fileContent :: Maybe Base64

    The content of the file, if a source file is not specified.

  • fileMode :: Maybe FileModeTypeEnum

    The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.

  • sourceFile :: Maybe SourceFileSpecifier

    The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.

  • filePath :: Text

    The full path to the file in the repository, including the name of the file.

Instances

Instances details
Eq PutFileEntry Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PutFileEntry

Read PutFileEntry Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PutFileEntry

Show PutFileEntry Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PutFileEntry

Generic PutFileEntry Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PutFileEntry

Associated Types

type Rep PutFileEntry :: Type -> Type #

NFData PutFileEntry Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PutFileEntry

Methods

rnf :: PutFileEntry -> () #

Hashable PutFileEntry Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PutFileEntry

ToJSON PutFileEntry Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PutFileEntry

type Rep PutFileEntry Source # 
Instance details

Defined in Amazonka.CodeCommit.Types.PutFileEntry

type Rep PutFileEntry = D1 ('MetaData "PutFileEntry" "Amazonka.CodeCommit.Types.PutFileEntry" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "PutFileEntry'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fileContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Base64)) :*: S1 ('MetaSel ('Just "fileMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FileModeTypeEnum))) :*: (S1 ('MetaSel ('Just "sourceFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SourceFileSpecifier)) :*: S1 ('MetaSel ('Just "filePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newPutFileEntry Source #

Create a value of PutFileEntry 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:fileContent:PutFileEntry', putFileEntry_fileContent - The content of the file, if a source file is not specified.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

$sel:fileMode:PutFileEntry', putFileEntry_fileMode - The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.

$sel:sourceFile:PutFileEntry', putFileEntry_sourceFile - The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.

$sel:filePath:PutFileEntry', putFileEntry_filePath - The full path to the file in the repository, including the name of the file.

putFileEntry_fileContent :: Lens' PutFileEntry (Maybe ByteString) Source #

The content of the file, if a source file is not specified.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

putFileEntry_fileMode :: Lens' PutFileEntry (Maybe FileModeTypeEnum) Source #

The extrapolated file mode permissions for the file. Valid values include EXECUTABLE and NORMAL.

putFileEntry_sourceFile :: Lens' PutFileEntry (Maybe SourceFileSpecifier) Source #

The name and full path of the file that contains the changes you want to make as part of the commit, if you are not providing the file content directly.

putFileEntry_filePath :: Lens' PutFileEntry Text Source #

The full path to the file in the repository, including the name of the file.