You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-codecommit/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.

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.

Returns:

  • (String)


233
234
235
236
237
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 233

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

#repository_nameString

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.

Returns:

  • (String)


233
234
235
236
237
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 233

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