Class: Aws::CodeCommit::Types::CreateRepositoryInput

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-codecommit/types.rb

Overview

Note:

When making an API call, you may pass CreateRepositoryInput data as a hash:

{
  repository_name: "RepositoryName", # required
  repository_description: "RepositoryDescription",
}

Represents the input of a create repository operation.

Instance Attribute Summary collapse

Instance Attribute Details

#repository_descriptionString

A comment or description about the new repository.

<note markdown=“1”> 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.

</note>

Returns:

  • (String)


228
229
230
231
232
# File 'lib/aws-sdk-codecommit/types.rb', line 228

class CreateRepositoryInput < Struct.new(
  :repository_name,
  :repository_description)
  include Aws::Structure
end

#repository_nameString

The name of the new repository to be created.

<note markdown=“1”> 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][1

in the AWS CodeCommit User Guide. The suffix “.git” is

prohibited.

</note>

[1]: docs.aws.amazon.com/codecommit/latest/userguide/limits.html

Returns:

  • (String)


228
229
230
231
232
# File 'lib/aws-sdk-codecommit/types.rb', line 228

class CreateRepositoryInput < Struct.new(
  :repository_name,
  :repository_description)
  include Aws::Structure
end