AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

GetFileInput

import "github.com/aws/aws-sdk-go/service/codecommit"

type GetFileInput struct { CommitSpecifier *string `locationName:"commitSpecifier" type:"string"` FilePath *string `locationName:"filePath" type:"string" required:"true"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` }

CommitSpecifier

Type: *string

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

FilePath

Type: *string

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

FilePath is a required field

RepositoryName

Type: *string

The name of the repository that contains the file.

RepositoryName is a required field

Method

GoString

func (s GetFileInput) GoString() string

GoString returns the string representation

SetCommitSpecifier

func (s *GetFileInput) SetCommitSpecifier(v string) *GetFileInput

SetCommitSpecifier sets the CommitSpecifier field's value.

SetFilePath

func (s *GetFileInput) SetFilePath(v string) *GetFileInput

SetFilePath sets the FilePath field's value.

SetRepositoryName

func (s *GetFileInput) SetRepositoryName(v string) *GetFileInput

SetRepositoryName sets the RepositoryName field's value.

String

func (s GetFileInput) String() string

String returns the string representation

Validate

func (s *GetFileInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: