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

Class: Aws::CodeStar::Types::Code

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-codestar/lib/aws-sdk-codestar/types.rb

Overview

Note:

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

{
  source: { # required
    s3: { # required
      bucket_name: "BucketName",
      bucket_key: "BucketKey",
    },
  },
  destination: { # required
    code_commit: {
      name: "RepositoryName", # required
    },
    git_hub: {
      name: "RepositoryName", # required
      description: "RepositoryDescription",
      type: "RepositoryType", # required
      owner: "RepositoryOwner", # required
      private_repository: false, # required
      issues_enabled: false, # required
      token: "GitHubPersonalToken", # required
    },
  },
}

Location and destination information about the source code files provided with the project request. The source code is uploaded to the new project source repository after project creation.

Instance Attribute Summary collapse

Instance Attribute Details

#destinationTypes::CodeDestination

The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit or GitHub. After AWS CodeStar provisions the new repository, the source code files provided with the project request are placed in the repository.



117
118
119
120
121
# File 'gems/aws-sdk-codestar/lib/aws-sdk-codestar/types.rb', line 117

class Code < Struct.new(
  :source,
  :destination)
  include Aws::Structure
end

#sourceTypes::CodeSource

The location where the source code files provided with the project request are stored. AWS CodeStar retrieves the files during project creation.

Returns:



117
118
119
120
121
# File 'gems/aws-sdk-codestar/lib/aws-sdk-codestar/types.rb', line 117

class Code < Struct.new(
  :source,
  :destination)
  include Aws::Structure
end