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

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

Overview

Represents the input of a create repository operation.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#kms_key_idString

The ID of the encryption key. You can view the ID of an encryption key in the KMS console, or use the KMS APIs to programmatically retrieve a key ID. For more information about acceptable values for kmsKeyID, see [KeyId] in the Decrypt API description in the *Key Management Service API Reference*.

If no key is specified, the default ‘aws/codecommit` Amazon Web Services managed key is used.

[1]: docs.aws.amazon.com/APIReference/API_Decrypt.html#KMS-Decrypt-request-KeyId

Returns:

  • (String)


1685
1686
1687
1688
1689
1690
1691
1692
# File 'lib/aws-sdk-codecommit/types.rb', line 1685

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

#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 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.

</note>

Returns:

  • (String)


1685
1686
1687
1688
1689
1690
1691
1692
# File 'lib/aws-sdk-codecommit/types.rb', line 1685

class CreateRepositoryInput < Struct.new(
  :repository_name,
  :repository_description,
  :tags,
  :kms_key_id)
  SENSITIVE = []
  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 Amazon Web Services 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 [Quotas] in the *CodeCommit User Guide*. The suffix .git is prohibited.

</note>

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

Returns:

  • (String)


1685
1686
1687
1688
1689
1690
1691
1692
# File 'lib/aws-sdk-codecommit/types.rb', line 1685

class CreateRepositoryInput < Struct.new(
  :repository_name,
  :repository_description,
  :tags,
  :kms_key_id)
  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>)


1685
1686
1687
1688
1689
1690
1691
1692
# File 'lib/aws-sdk-codecommit/types.rb', line 1685

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