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.

CreateRepositoryInput

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

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.

RepositoryDescription

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.

RepositoryName

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 (https://docs.aws.amazon.com/codecommit/latest/userguide/limits.html) in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.

RepositoryName is a required field

Method

GoString

func (s CreateRepositoryInput) GoString() string

GoString returns the string representation

SetRepositoryDescription

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

SetRepositoryDescription sets the RepositoryDescription field's value.

SetRepositoryName

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

SetRepositoryName sets the RepositoryName field's value.

String

func (s CreateRepositoryInput) String() string

String returns the string representation

Validate

func (s *CreateRepositoryInput) Validate() error

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

On this page: