AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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",
  tags: {
    "TagKey" => "TagValue",
  },
}

Represents the input of a create repository operation.

Constant Summary collapse

SENSITIVE =
[]

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 webpage can 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 webpage.

Returns:

  • (String)


1799
1800
1801
1802
1803
1804
1805
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 1799

class CreateRepositoryInput < Struct.new(
  :repository_name,
  :repository_description,
  :tags)
  SENSITIVE = []
  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. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For more information about the limits on repository names, see Limits in the AWS CodeCommit User Guide. The suffix .git is prohibited.

Returns:

  • (String)


1799
1800
1801
1802
1803
1804
1805
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 1799

class CreateRepositoryInput < Struct.new(
  :repository_name,
  :repository_description,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsHash<String,String>

One or more tag key-value pairs to use when tagging this repository.

Returns:

  • (Hash<String,String>)


1799
1800
1801
1802
1803
1804
1805
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 1799

class CreateRepositoryInput < Struct.new(
  :repository_name,
  :repository_description,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end