Paws::CodeCommit::GetFile - Arguments for method GetFile on Paws::CodeCommit


This class represents the parameters used for calling the method GetFile on the AWS CodeCommit service. Use the attributes of this class as arguments to method GetFile.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetFile.


    my $codecommit = Paws->service('CodeCommit');
    my $GetFileOutput = $codecommit->GetFile(
      FilePath        => 'MyPath',
      RepositoryName  => 'MyRepositoryName',
      CommitSpecifier => 'MyCommitName',       # OPTIONAL

    # Results:
    my $BlobId      = $GetFileOutput->BlobId;
    my $CommitId    = $GetFileOutput->CommitId;
    my $FileContent = $GetFileOutput->FileContent;
    my $FileMode    = $GetFileOutput->FileMode;
    my $FilePath    = $GetFileOutput->FilePath;
    my $FileSize    = $GetFileOutput->FileSize;

    # Returns a L<Paws::CodeCommit::GetFileOutput> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


CommitSpecifier => Str

The fully quaified reference that identifies the commit that contains the file. For example, you can specify a full commit ID, a tag, a branch name, or a reference such as refs/heads/master. If none is provided, the head commit is used.

REQUIRED FilePath => Str

The fully qualified path to the file, including the full name and extension of the file. For example, /examples/ is the fully qualified path to a file named in a folder named examples.

REQUIRED RepositoryName => Str

The name of the repository that contains the file.


This class forms part of Paws, documenting arguments for method GetFile in Paws::CodeCommit


The source code is located here:

Please report bugs to: