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

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type CreateRepositoryInput struct { RepositoryDescription *string `locationName:"repositoryDescription" type:"string"` RepositoryName *string `locationName:"repositoryName" min:"1" type:"string" required:"true"` }

Represents the input of a create repository operation.


Type: *string

A comment or description about the new repository.

The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.


Type: *string

The name of the new repository to be created.

The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For a full description of the limits on repository names, see Limits ( in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.

RepositoryName is a required field



func (s CreateRepositoryInput) GoString() string

GoString returns the string representation


func (s *CreateRepositoryInput) SetRepositoryDescription(v string) *CreateRepositoryInput

SetRepositoryDescription sets the RepositoryDescription field's value.


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

SetRepositoryName sets the RepositoryName field's value.


func (s CreateRepositoryInput) String() string

String returns the string representation


func (s *CreateRepositoryInput) Validate() error

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

On this page: