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.

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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Code as input to an Aws::Client method, you can use a vanilla 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.

Returns:

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

  • (Types::CodeSource)

    The location where the source code files provided with the project request are stored.