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.

CreateCommitInput

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

type CreateCommitInput struct { AuthorName *string `locationName:"authorName" type:"string"` BranchName *string `locationName:"branchName" min:"1" type:"string" required:"true"` CommitMessage *string `locationName:"commitMessage" type:"string"` DeleteFiles []*DeleteFileEntry `locationName:"deleteFiles" type:"list"` Email *string `locationName:"email" type:"string"` KeepEmptyFolders *bool `locationName:"keepEmptyFolders" type:"boolean"` ParentCommitId *string `locationName:"parentCommitId" type:"string"` PutFiles []*PutFileEntry `locationName:"putFiles" type:"list"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` SetFileModes []*SetFileModeEntry `locationName:"setFileModes" type:"list"` }

AuthorName

Type: *string

The name of the author who created the commit. This information will be used as both the author and committer for the commit.

BranchName

Type: *string

The name of the branch where you will create the commit.

BranchName is a required field

CommitMessage

Type: *string

The commit message you want to include as part of creating the commit. Commit messages are limited to 256 KB. If no message is specified, a default message will be used.

DeleteFiles

A file that will be deleted as part of a commit.

Email

Type: *string

The email address of the person who created the commit.

KeepEmptyFolders

Type: *bool

If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If this is specified as true, a .gitkeep file will be created for empty folders.

ParentCommitId

Type: *string

The ID of the commit that is the parent of the commit you will create. If this is an empty repository, this is not required.

PutFiles

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

RepositoryName

Type: *string

The name of the repository where you will create the commit.

RepositoryName is a required field

SetFileModes

Information about the file mode changes.

Method

GoString

func (s CreateCommitInput) GoString() string

GoString returns the string representation

SetAuthorName

func (s *CreateCommitInput) SetAuthorName(v string) *CreateCommitInput

SetAuthorName sets the AuthorName field's value.

SetBranchName

func (s *CreateCommitInput) SetBranchName(v string) *CreateCommitInput

SetBranchName sets the BranchName field's value.

SetCommitMessage

func (s *CreateCommitInput) SetCommitMessage(v string) *CreateCommitInput

SetCommitMessage sets the CommitMessage field's value.

SetDeleteFiles

func (s *CreateCommitInput) SetDeleteFiles(v []*DeleteFileEntry) *CreateCommitInput

SetDeleteFiles sets the DeleteFiles field's value.

SetEmail

func (s *CreateCommitInput) SetEmail(v string) *CreateCommitInput

SetEmail sets the Email field's value.

SetKeepEmptyFolders

func (s *CreateCommitInput) SetKeepEmptyFolders(v bool) *CreateCommitInput

SetKeepEmptyFolders sets the KeepEmptyFolders field's value.

SetParentCommitId

func (s *CreateCommitInput) SetParentCommitId(v string) *CreateCommitInput

SetParentCommitId sets the ParentCommitId field's value.

SetPutFiles

func (s *CreateCommitInput) SetPutFiles(v []*PutFileEntry) *CreateCommitInput

SetPutFiles sets the PutFiles field's value.

SetRepositoryName

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

SetRepositoryName sets the RepositoryName field's value.

SetSetFileModes

func (s *CreateCommitInput) SetSetFileModes(v []*SetFileModeEntry) *CreateCommitInput

SetSetFileModes sets the SetFileModes field's value.

String

func (s CreateCommitInput) String() string

String returns the string representation

Validate

func (s *CreateCommitInput) Validate() error

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

On this page: