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

Class: Aws::CodeCommit::Types::CreateBranchInput

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 CreateBranchInput data as a hash:

{
  repository_name: "RepositoryName", # required
  branch_name: "BranchName", # required
  commit_id: "CommitId", # required
}

Represents the input of a create branch operation.

Instance Attribute Summary collapse

Instance Attribute Details

#branch_nameString

The name of the new branch to create.

Returns:

  • (String)


179
180
181
182
183
184
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 179

class CreateBranchInput < Struct.new(
  :repository_name,
  :branch_name,
  :commit_id)
  include Aws::Structure
end

#commit_idString

The ID of the commit to point the new branch to.

Returns:

  • (String)


179
180
181
182
183
184
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 179

class CreateBranchInput < Struct.new(
  :repository_name,
  :branch_name,
  :commit_id)
  include Aws::Structure
end

#repository_nameString

The name of the repository in which you want to create the new branch.

Returns:

  • (String)


179
180
181
182
183
184
# File 'gems/aws-sdk-codecommit/lib/aws-sdk-codecommit/types.rb', line 179

class CreateBranchInput < Struct.new(
  :repository_name,
  :branch_name,
  :commit_id)
  include Aws::Structure
end