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

Class: Aws::CodeBuild::Types::CreateProjectInput

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

Overview

Note:

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

{
  name: "ProjectName", # required
  description: "ProjectDescription",
  source: { # required
    type: "CODECOMMIT", # required, accepts CODECOMMIT, CODEPIPELINE, GITHUB, S3, BITBUCKET
    location: "String",
    buildspec: "String",
    auth: {
      type: "OAUTH", # required, accepts OAUTH
      resource: "String",
    },
  },
  artifacts: { # required
    type: "CODEPIPELINE", # required, accepts CODEPIPELINE, S3, NO_ARTIFACTS
    location: "String",
    path: "String",
    namespace_type: "NONE", # accepts NONE, BUILD_ID
    name: "String",
    packaging: "NONE", # accepts NONE, ZIP
  },
  environment: { # required
    type: "LINUX_CONTAINER", # required, accepts LINUX_CONTAINER
    image: "NonEmptyString", # required
    compute_type: "BUILD_GENERAL1_SMALL", # required, accepts BUILD_GENERAL1_SMALL, BUILD_GENERAL1_MEDIUM, BUILD_GENERAL1_LARGE
    environment_variables: [
      {
        name: "NonEmptyString", # required
        value: "String", # required
        type: "PLAINTEXT", # accepts PLAINTEXT, PARAMETER_STORE
      },
    ],
    privileged_mode: false,
  },
  service_role: "NonEmptyString",
  timeout_in_minutes: 1,
  encryption_key: "NonEmptyString",
  tags: [
    {
      key: "KeyInput",
      value: "ValueInput",
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#artifactsTypes::ProjectArtifacts

Information about the build output artifacts for the build project.



459
460
461
462
463
464
465
466
467
468
469
470
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 459

class CreateProjectInput < Struct.new(
  :name,
  :description,
  :source,
  :artifacts,
  :environment,
  :service_role,
  :timeout_in_minutes,
  :encryption_key,
  :tags)
  include Aws::Structure
end

#descriptionString

A description that makes the build project easy to identify.

Returns:

  • (String)


459
460
461
462
463
464
465
466
467
468
469
470
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 459

class CreateProjectInput < Struct.new(
  :name,
  :description,
  :source,
  :artifacts,
  :environment,
  :service_role,
  :timeout_in_minutes,
  :encryption_key,
  :tags)
  include Aws::Structure
end

#encryption_keyString

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used for encrypting the build output artifacts.

You can specify either the CMK's Amazon Resource Name (ARN) or, if available, the CMK's alias (using the format alias/alias-name).

Returns:

  • (String)


459
460
461
462
463
464
465
466
467
468
469
470
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 459

class CreateProjectInput < Struct.new(
  :name,
  :description,
  :source,
  :artifacts,
  :environment,
  :service_role,
  :timeout_in_minutes,
  :encryption_key,
  :tags)
  include Aws::Structure
end

#environmentTypes::ProjectEnvironment

Information about the build environment for the build project.



459
460
461
462
463
464
465
466
467
468
469
470
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 459

class CreateProjectInput < Struct.new(
  :name,
  :description,
  :source,
  :artifacts,
  :environment,
  :service_role,
  :timeout_in_minutes,
  :encryption_key,
  :tags)
  include Aws::Structure
end

#nameString

The name of the build project.

Returns:

  • (String)


459
460
461
462
463
464
465
466
467
468
469
470
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 459

class CreateProjectInput < Struct.new(
  :name,
  :description,
  :source,
  :artifacts,
  :environment,
  :service_role,
  :timeout_in_minutes,
  :encryption_key,
  :tags)
  include Aws::Structure
end

#service_roleString

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.

Returns:

  • (String)


459
460
461
462
463
464
465
466
467
468
469
470
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 459

class CreateProjectInput < Struct.new(
  :name,
  :description,
  :source,
  :artifacts,
  :environment,
  :service_role,
  :timeout_in_minutes,
  :encryption_key,
  :tags)
  include Aws::Structure
end

#sourceTypes::ProjectSource

Information about the build input source code for the build project.



459
460
461
462
463
464
465
466
467
468
469
470
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 459

class CreateProjectInput < Struct.new(
  :name,
  :description,
  :source,
  :artifacts,
  :environment,
  :service_role,
  :timeout_in_minutes,
  :encryption_key,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

A set of tags for this build project.

These tags are available for use by AWS services that support AWS CodeBuild build project tags.

Returns:



459
460
461
462
463
464
465
466
467
468
469
470
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 459

class CreateProjectInput < Struct.new(
  :name,
  :description,
  :source,
  :artifacts,
  :environment,
  :service_role,
  :timeout_in_minutes,
  :encryption_key,
  :tags)
  include Aws::Structure
end

#timeout_in_minutesInteger

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any build that has not been marked as completed. The default is 60 minutes.

Returns:

  • (Integer)


459
460
461
462
463
464
465
466
467
468
469
470
# File 'gems/aws-sdk-codebuild/lib/aws-sdk-codebuild/types.rb', line 459

class CreateProjectInput < Struct.new(
  :name,
  :description,
  :source,
  :artifacts,
  :environment,
  :service_role,
  :timeout_in_minutes,
  :encryption_key,
  :tags)
  include Aws::Structure
end