codebuild

package
v1.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package codebuild provides a client for AWS CodeBuild.

Index

Examples

Constants

View Source
const (
	// ArtifactNamespaceNone is a ArtifactNamespace enum value
	ArtifactNamespaceNone = "NONE"

	// ArtifactNamespaceBuildId is a ArtifactNamespace enum value
	ArtifactNamespaceBuildId = "BUILD_ID"
)
View Source
const (
	// ArtifactPackagingNone is a ArtifactPackaging enum value
	ArtifactPackagingNone = "NONE"

	// ArtifactPackagingZip is a ArtifactPackaging enum value
	ArtifactPackagingZip = "ZIP"
)
View Source
const (
	// ArtifactsTypeCodepipeline is a ArtifactsType enum value
	ArtifactsTypeCodepipeline = "CODEPIPELINE"

	// ArtifactsTypeS3 is a ArtifactsType enum value
	ArtifactsTypeS3 = "S3"

	// ArtifactsTypeNoArtifacts is a ArtifactsType enum value
	ArtifactsTypeNoArtifacts = "NO_ARTIFACTS"
)
View Source
const (
	// BuildPhaseTypeSubmitted is a BuildPhaseType enum value
	BuildPhaseTypeSubmitted = "SUBMITTED"

	// BuildPhaseTypeProvisioning is a BuildPhaseType enum value
	BuildPhaseTypeProvisioning = "PROVISIONING"

	// BuildPhaseTypeDownloadSource is a BuildPhaseType enum value
	BuildPhaseTypeDownloadSource = "DOWNLOAD_SOURCE"

	// BuildPhaseTypeInstall is a BuildPhaseType enum value
	BuildPhaseTypeInstall = "INSTALL"

	// BuildPhaseTypePreBuild is a BuildPhaseType enum value
	BuildPhaseTypePreBuild = "PRE_BUILD"

	// BuildPhaseTypeBuild is a BuildPhaseType enum value
	BuildPhaseTypeBuild = "BUILD"

	// BuildPhaseTypePostBuild is a BuildPhaseType enum value
	BuildPhaseTypePostBuild = "POST_BUILD"

	// BuildPhaseTypeUploadArtifacts is a BuildPhaseType enum value
	BuildPhaseTypeUploadArtifacts = "UPLOAD_ARTIFACTS"

	// BuildPhaseTypeFinalizing is a BuildPhaseType enum value
	BuildPhaseTypeFinalizing = "FINALIZING"

	// BuildPhaseTypeCompleted is a BuildPhaseType enum value
	BuildPhaseTypeCompleted = "COMPLETED"
)
View Source
const (
	// ComputeTypeBuildGeneral1Small is a ComputeType enum value
	ComputeTypeBuildGeneral1Small = "BUILD_GENERAL1_SMALL"

	// ComputeTypeBuildGeneral1Medium is a ComputeType enum value
	ComputeTypeBuildGeneral1Medium = "BUILD_GENERAL1_MEDIUM"

	// ComputeTypeBuildGeneral1Large is a ComputeType enum value
	ComputeTypeBuildGeneral1Large = "BUILD_GENERAL1_LARGE"
)
View Source
const (
	// LanguageTypeJava is a LanguageType enum value
	LanguageTypeJava = "JAVA"

	// LanguageTypePython is a LanguageType enum value
	LanguageTypePython = "PYTHON"

	// LanguageTypeNodeJs is a LanguageType enum value
	LanguageTypeNodeJs = "NODE_JS"

	// LanguageTypeRuby is a LanguageType enum value
	LanguageTypeRuby = "RUBY"

	// LanguageTypeGolang is a LanguageType enum value
	LanguageTypeGolang = "GOLANG"

	// LanguageTypeDocker is a LanguageType enum value
	LanguageTypeDocker = "DOCKER"

	// LanguageTypeAndroid is a LanguageType enum value
	LanguageTypeAndroid = "ANDROID"

	// LanguageTypeBase is a LanguageType enum value
	LanguageTypeBase = "BASE"
)
View Source
const (
	// PlatformTypeDebian is a PlatformType enum value
	PlatformTypeDebian = "DEBIAN"

	// PlatformTypeAmazonLinux is a PlatformType enum value
	PlatformTypeAmazonLinux = "AMAZON_LINUX"

	// PlatformTypeUbuntu is a PlatformType enum value
	PlatformTypeUbuntu = "UBUNTU"
)
View Source
const (
	// ProjectSortByTypeName is a ProjectSortByType enum value
	ProjectSortByTypeName = "NAME"

	// ProjectSortByTypeCreatedTime is a ProjectSortByType enum value
	ProjectSortByTypeCreatedTime = "CREATED_TIME"

	// ProjectSortByTypeLastModifiedTime is a ProjectSortByType enum value
	ProjectSortByTypeLastModifiedTime = "LAST_MODIFIED_TIME"
)
View Source
const (
	// SortOrderTypeAscending is a SortOrderType enum value
	SortOrderTypeAscending = "ASCENDING"

	// SortOrderTypeDescending is a SortOrderType enum value
	SortOrderTypeDescending = "DESCENDING"
)
View Source
const (
	// SourceTypeCodecommit is a SourceType enum value
	SourceTypeCodecommit = "CODECOMMIT"

	// SourceTypeCodepipeline is a SourceType enum value
	SourceTypeCodepipeline = "CODEPIPELINE"

	// SourceTypeGithub is a SourceType enum value
	SourceTypeGithub = "GITHUB"

	// SourceTypeS3 is a SourceType enum value
	SourceTypeS3 = "S3"
)
View Source
const (
	// StatusTypeSucceeded is a StatusType enum value
	StatusTypeSucceeded = "SUCCEEDED"

	// StatusTypeFailed is a StatusType enum value
	StatusTypeFailed = "FAILED"

	// StatusTypeFault is a StatusType enum value
	StatusTypeFault = "FAULT"

	// StatusTypeTimedOut is a StatusType enum value
	StatusTypeTimedOut = "TIMED_OUT"

	// StatusTypeInProgress is a StatusType enum value
	StatusTypeInProgress = "IN_PROGRESS"

	// StatusTypeStopped is a StatusType enum value
	StatusTypeStopped = "STOPPED"
)
View Source
const (
	// EnvironmentTypeLinuxContainer is a EnvironmentType enum value
	EnvironmentTypeLinuxContainer = "LINUX_CONTAINER"
)
View Source
const ServiceName = "codebuild"

A ServiceName is the name of the service the client will make API calls to.

View Source
const (
	// SourceAuthTypeOauth is a SourceAuthType enum value
	SourceAuthTypeOauth = "OAUTH"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchGetBuildsInput

type BatchGetBuildsInput struct {

	// The IDs of the builds to get information about.
	//
	// Ids is a required field
	Ids []*string `locationName:"ids" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (BatchGetBuildsInput) GoString

func (s BatchGetBuildsInput) GoString() string

GoString returns the string representation

func (*BatchGetBuildsInput) SetIds

SetIds sets the Ids field's value.

func (BatchGetBuildsInput) String

func (s BatchGetBuildsInput) String() string

String returns the string representation

func (*BatchGetBuildsInput) Validate

func (s *BatchGetBuildsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchGetBuildsOutput

type BatchGetBuildsOutput struct {

	// Information about the requested builds.
	Builds []*Build `locationName:"builds" type:"list"`

	// The IDs of builds for which information could not be found.
	BuildsNotFound []*string `locationName:"buildsNotFound" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (BatchGetBuildsOutput) GoString

func (s BatchGetBuildsOutput) GoString() string

GoString returns the string representation

func (*BatchGetBuildsOutput) SetBuilds

func (s *BatchGetBuildsOutput) SetBuilds(v []*Build) *BatchGetBuildsOutput

SetBuilds sets the Builds field's value.

func (*BatchGetBuildsOutput) SetBuildsNotFound

func (s *BatchGetBuildsOutput) SetBuildsNotFound(v []*string) *BatchGetBuildsOutput

SetBuildsNotFound sets the BuildsNotFound field's value.

func (BatchGetBuildsOutput) String

func (s BatchGetBuildsOutput) String() string

String returns the string representation

type BatchGetProjectsInput

type BatchGetProjectsInput struct {

	// The names of the build projects to get information about.
	//
	// Names is a required field
	Names []*string `locationName:"names" min:"1" type:"list" required:"true"`
	// contains filtered or unexported fields
}

func (BatchGetProjectsInput) GoString

func (s BatchGetProjectsInput) GoString() string

GoString returns the string representation

func (*BatchGetProjectsInput) SetNames

SetNames sets the Names field's value.

func (BatchGetProjectsInput) String

func (s BatchGetProjectsInput) String() string

String returns the string representation

func (*BatchGetProjectsInput) Validate

func (s *BatchGetProjectsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchGetProjectsOutput

type BatchGetProjectsOutput struct {

	// Information about the requested build projects.
	Projects []*Project `locationName:"projects" type:"list"`

	// The names of build projects for which information could not be found.
	ProjectsNotFound []*string `locationName:"projectsNotFound" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (BatchGetProjectsOutput) GoString

func (s BatchGetProjectsOutput) GoString() string

GoString returns the string representation

func (*BatchGetProjectsOutput) SetProjects

SetProjects sets the Projects field's value.

func (*BatchGetProjectsOutput) SetProjectsNotFound

func (s *BatchGetProjectsOutput) SetProjectsNotFound(v []*string) *BatchGetProjectsOutput

SetProjectsNotFound sets the ProjectsNotFound field's value.

func (BatchGetProjectsOutput) String

func (s BatchGetProjectsOutput) String() string

String returns the string representation

type Build

type Build struct {

	// The build's Amazon Resource Name (ARN).
	Arn *string `locationName:"arn" min:"1" type:"string"`

	// Information about the build's output artifacts.
	Artifacts *BuildArtifacts `locationName:"artifacts" type:"structure"`

	// Whether the build has finished. Valid values include true if completed; otherwise,
	// false.
	BuildComplete *bool `locationName:"buildComplete" type:"boolean"`

	// The build's current status. Valid values include:
	//
	//    * FAILED: The build failed.
	//
	//    * FAULT: The build faulted.
	//
	//    * IN_PROGRESS: The build is still in progress.
	//
	//    * STOPPED: The build stopped.
	//
	//    * SUCCEEDED: The build succeeded.
	//
	//    * TIMED_OUT: The build timed out.
	BuildStatus *string `locationName:"buildStatus" type:"string" enum:"StatusType"`

	// The build's current build phase.
	CurrentPhase *string `locationName:"currentPhase" type:"string"`

	// When the build process ended, expressed in Unix time format.
	EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`

	// Information about the build environment for this build.
	Environment *ProjectEnvironment `locationName:"environment" type:"structure"`

	// The build's unique ID.
	Id *string `locationName:"id" min:"1" type:"string"`

	// The entity that started the build. Valid values include:
	//
	//    * If AWS CodePipeline started the build, the pipeline's name, for example
	//    codepipeline/my-demo-pipeline.
	//
	//    * If an AWS Identity and Access Management (IAM) user started the build,
	//    the user's name, for example MyUserName.
	//
	//    * If the Jenkins plugin for AWS CodeBuild started the build, the string
	//    CodeBuild-Jenkins-Plugin.
	Initiator *string `locationName:"initiator" type:"string"`

	// Information about the build's logs in Amazon CloudWatch Logs.
	Logs *LogsLocation `locationName:"logs" type:"structure"`

	// Information about all previous build phases that have completed, and information
	// about any current build phase that has not yet completed.
	Phases []*BuildPhase `locationName:"phases" type:"list"`

	// The build project's name.
	ProjectName *string `locationName:"projectName" min:"1" type:"string"`

	// Information about the source code to be built.
	Source *ProjectSource `locationName:"source" type:"structure"`

	// Any version identifier for the version of the source code to be built.
	SourceVersion *string `locationName:"sourceVersion" min:"1" type:"string"`

	// When the build process started, expressed in Unix time format.
	StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`

	// How long in minutes for AWS CodeBuild to wait to timeout this build if it
	// does not get marked as completed.
	TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" type:"integer"`
	// contains filtered or unexported fields
}

Information about a build.

func (Build) GoString

func (s Build) GoString() string

GoString returns the string representation

func (*Build) SetArn

func (s *Build) SetArn(v string) *Build

SetArn sets the Arn field's value.

func (*Build) SetArtifacts

func (s *Build) SetArtifacts(v *BuildArtifacts) *Build

SetArtifacts sets the Artifacts field's value.

func (*Build) SetBuildComplete

func (s *Build) SetBuildComplete(v bool) *Build

SetBuildComplete sets the BuildComplete field's value.

func (*Build) SetBuildStatus

func (s *Build) SetBuildStatus(v string) *Build

SetBuildStatus sets the BuildStatus field's value.

func (*Build) SetCurrentPhase

func (s *Build) SetCurrentPhase(v string) *Build

SetCurrentPhase sets the CurrentPhase field's value.

func (*Build) SetEndTime

func (s *Build) SetEndTime(v time.Time) *Build

SetEndTime sets the EndTime field's value.

func (*Build) SetEnvironment

func (s *Build) SetEnvironment(v *ProjectEnvironment) *Build

SetEnvironment sets the Environment field's value.

func (*Build) SetId

func (s *Build) SetId(v string) *Build

SetId sets the Id field's value.

func (*Build) SetInitiator

func (s *Build) SetInitiator(v string) *Build

SetInitiator sets the Initiator field's value.

func (*Build) SetLogs

func (s *Build) SetLogs(v *LogsLocation) *Build

SetLogs sets the Logs field's value.

func (*Build) SetPhases

func (s *Build) SetPhases(v []*BuildPhase) *Build

SetPhases sets the Phases field's value.

func (*Build) SetProjectName

func (s *Build) SetProjectName(v string) *Build

SetProjectName sets the ProjectName field's value.

func (*Build) SetSource

func (s *Build) SetSource(v *ProjectSource) *Build

SetSource sets the Source field's value.

func (*Build) SetSourceVersion

func (s *Build) SetSourceVersion(v string) *Build

SetSourceVersion sets the SourceVersion field's value.

func (*Build) SetStartTime

func (s *Build) SetStartTime(v time.Time) *Build

SetStartTime sets the StartTime field's value.

func (*Build) SetTimeoutInMinutes

func (s *Build) SetTimeoutInMinutes(v int64) *Build

SetTimeoutInMinutes sets the TimeoutInMinutes field's value.

func (Build) String

func (s Build) String() string

String returns the string representation

type BuildArtifacts

type BuildArtifacts struct {

	// Information about the build artifacts' location.
	Location *string `locationName:"location" type:"string"`

	// The MD5 hash of the build artifact.
	//
	// You can use this hash along with a checksum tool to confirm both file integrity
	// and authenticity.
	//
	// This value is available only if the related build project's packaging value
	// is set to ZIP.
	Md5sum *string `locationName:"md5sum" type:"string"`

	// The SHA-256 hash of the build artifact.
	//
	// You can use this hash along with a checksum tool to confirm both file integrity
	// and authenticity.
	//
	// This value is available only if the related build project's packaging value
	// is set to ZIP.
	Sha256sum *string `locationName:"sha256sum" type:"string"`
	// contains filtered or unexported fields
}

Information about build output artifacts.

func (BuildArtifacts) GoString

func (s BuildArtifacts) GoString() string

GoString returns the string representation

func (*BuildArtifacts) SetLocation

func (s *BuildArtifacts) SetLocation(v string) *BuildArtifacts

SetLocation sets the Location field's value.

func (*BuildArtifacts) SetMd5sum

func (s *BuildArtifacts) SetMd5sum(v string) *BuildArtifacts

SetMd5sum sets the Md5sum field's value.

func (*BuildArtifacts) SetSha256sum

func (s *BuildArtifacts) SetSha256sum(v string) *BuildArtifacts

SetSha256sum sets the Sha256sum field's value.

func (BuildArtifacts) String

func (s BuildArtifacts) String() string

String returns the string representation

type BuildPhase

type BuildPhase struct {

	// Additional information about a build phase, especially to help troubleshoot
	// a failed build.
	Contexts []*PhaseContext `locationName:"contexts" type:"list"`

	// How long, in seconds, between the build's phase starting and ending times.
	DurationInSeconds *int64 `locationName:"durationInSeconds" type:"long"`

	// When the build phase ended, expressed in Unix time format.
	EndTime *time.Time `locationName:"endTime" type:"timestamp" timestampFormat:"unix"`

	// The build phase's current status. Valid values include:
	//
	//    * FAILED: The build phase failed.
	//
	//    * FAULT: The build phase faulted.
	//
	//    * IN_PROGRESS: The build phase is still in progress.
	//
	//    * STOPPED: The build phase stopped.
	//
	//    * SUCCEEDED: The build phase succeeded.
	//
	//    * TIMED_OUT: The build phase timed out.
	PhaseStatus *string `locationName:"phaseStatus" type:"string" enum:"StatusType"`

	// The build phase's name. Valid values include:
	//
	//    * BUILD: Core build activities typically occur in this build phase.
	//
	//    * COMPLETED: The build has completed.
	//
	//    * DOWNLOAD_SOURCE: Source code is being downloaded in this build phase.
	//
	//    * FINALIZING: The build process is completing in this build phase.
	//
	//    * INSTALL: Installation activities typically occur in this build phase.
	//
	//    * POST_BUILD: Post-build activities typically occur in this build phase.
	//
	//    * PRE_BUILD: Pre-build activities typically occur in this build phase.
	//
	//    * PROVISIONING: The build environment is being set up.
	//
	//    * SUBMITTED: The build has been submitted.
	//
	//    * UPLOAD_ARTIFACTS: Build output artifacts are being uploaded to output
	//    location.
	PhaseType *string `locationName:"phaseType" type:"string" enum:"BuildPhaseType"`

	// When the build phase started, expressed in Unix time format.
	StartTime *time.Time `locationName:"startTime" type:"timestamp" timestampFormat:"unix"`
	// contains filtered or unexported fields
}

Information about a stage for a build.

func (BuildPhase) GoString

func (s BuildPhase) GoString() string

GoString returns the string representation

func (*BuildPhase) SetContexts

func (s *BuildPhase) SetContexts(v []*PhaseContext) *BuildPhase

SetContexts sets the Contexts field's value.

func (*BuildPhase) SetDurationInSeconds

func (s *BuildPhase) SetDurationInSeconds(v int64) *BuildPhase

SetDurationInSeconds sets the DurationInSeconds field's value.

func (*BuildPhase) SetEndTime

func (s *BuildPhase) SetEndTime(v time.Time) *BuildPhase

SetEndTime sets the EndTime field's value.

func (*BuildPhase) SetPhaseStatus

func (s *BuildPhase) SetPhaseStatus(v string) *BuildPhase

SetPhaseStatus sets the PhaseStatus field's value.

func (*BuildPhase) SetPhaseType

func (s *BuildPhase) SetPhaseType(v string) *BuildPhase

SetPhaseType sets the PhaseType field's value.

func (*BuildPhase) SetStartTime

func (s *BuildPhase) SetStartTime(v time.Time) *BuildPhase

SetStartTime sets the StartTime field's value.

func (BuildPhase) String

func (s BuildPhase) String() string

String returns the string representation

type CodeBuild

type CodeBuild struct {
	*client.Client
}

AWS CodeBuild is a fully-managed build service in the cloud. AWS CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. AWS CodeBuild eliminates the need to provision, manage, and scale your own build servers. It provides prepackaged build environments for the most popular programming languages and build tools such as Apach Maven, Gradle, and more. You can also fully customize build environments in AWS CodeBuild to use your own build tools. AWS CodeBuild scales automatically to meet peak build requests, and you pay only for the build time you consume. For more information about AWS CodeBuild, see the AWS CodeBuild User Guide.

AWS CodeBuild supports these operations:

  • BatchGetProjects: Gets information about one or more build projects. A build project defines how AWS CodeBuild will run a build. This includes information such as where to get the source code to build, the build environment to use, the build commands to run, and where to store the build output. A build environment represents a combination of operating system, programming language runtime, and tools that AWS CodeBuild will use to run a build. Also, you can add tags to build projects to help manage your resources and costs.

  • CreateProject: Creates a build project.

  • DeleteProject: Deletes a build project.

  • ListProjects: Gets a list of build project names, with each build project name representing a single build project.

  • UpdateProject: Changes the settings of an existing build project.

  • BatchGetBuilds: Gets information about one or more builds.

  • ListBuilds: Gets a list of build IDs, with each build ID representing a single build.

  • ListBuildsForProject: Gets a list of build IDs for the specified build project, with each build ID representing a single build.

  • StartBuild: Starts running a build.

  • StopBuild: Attempts to stop running a build.

  • ListCuratedEnvironmentImages: Gets information about Docker images that are managed by AWS CodeBuild.

The service client's operations are safe to be used concurrently. It is not safe to mutate any of the client's properties though.

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *CodeBuild

New creates a new instance of the CodeBuild client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

// Create a CodeBuild client from just a session.
svc := codebuild.New(mySession)

// Create a CodeBuild client with additional configuration
svc := codebuild.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*CodeBuild) BatchGetBuilds

func (c *CodeBuild) BatchGetBuilds(input *BatchGetBuildsInput) (*BatchGetBuildsOutput, error)

BatchGetBuilds API operation for AWS CodeBuild.

Gets information about one or more builds.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation BatchGetBuilds for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.BatchGetBuildsInput{
		Ids: []*string{ // Required
			aws.String("NonEmptyString"), // Required
			// More values...
		},
	}
	resp, err := svc.BatchGetBuilds(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) BatchGetBuildsRequest

func (c *CodeBuild) BatchGetBuildsRequest(input *BatchGetBuildsInput) (req *request.Request, output *BatchGetBuildsOutput)

BatchGetBuildsRequest generates a "aws/request.Request" representing the client's request for the BatchGetBuilds operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See BatchGetBuilds for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the BatchGetBuilds method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the BatchGetBuildsRequest method.
req, resp := client.BatchGetBuildsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) BatchGetProjects

func (c *CodeBuild) BatchGetProjects(input *BatchGetProjectsInput) (*BatchGetProjectsOutput, error)

BatchGetProjects API operation for AWS CodeBuild.

Gets information about one or more build projects.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation BatchGetProjects for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.BatchGetProjectsInput{
		Names: []*string{ // Required
			aws.String("NonEmptyString"), // Required
			// More values...
		},
	}
	resp, err := svc.BatchGetProjects(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) BatchGetProjectsRequest

func (c *CodeBuild) BatchGetProjectsRequest(input *BatchGetProjectsInput) (req *request.Request, output *BatchGetProjectsOutput)

BatchGetProjectsRequest generates a "aws/request.Request" representing the client's request for the BatchGetProjects operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See BatchGetProjects for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the BatchGetProjects method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the BatchGetProjectsRequest method.
req, resp := client.BatchGetProjectsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) CreateProject

func (c *CodeBuild) CreateProject(input *CreateProjectInput) (*CreateProjectOutput, error)

CreateProject API operation for AWS CodeBuild.

Creates a build project.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation CreateProject for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.

  • ResourceAlreadyExistsException The specified AWS resource cannot be created, because an AWS resource with the same settings already exists.

  • AccountLimitExceededException An AWS service limit was exceeded for the calling AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.CreateProjectInput{
		Artifacts: &codebuild.ProjectArtifacts{ // Required
			Type:          aws.String("ArtifactsType"), // Required
			Location:      aws.String("String"),
			Name:          aws.String("String"),
			NamespaceType: aws.String("ArtifactNamespace"),
			Packaging:     aws.String("ArtifactPackaging"),
			Path:          aws.String("String"),
		},
		Environment: &codebuild.ProjectEnvironment{ // Required
			ComputeType: aws.String("ComputeType"),     // Required
			Image:       aws.String("NonEmptyString"),  // Required
			Type:        aws.String("EnvironmentType"), // Required
			EnvironmentVariables: []*codebuild.EnvironmentVariable{
				{ // Required
					Name:  aws.String("NonEmptyString"), // Required
					Value: aws.String("String"),         // Required
				},
				// More values...
			},
		},
		Name: aws.String("ProjectName"), // Required
		Source: &codebuild.ProjectSource{ // Required
			Type: aws.String("SourceType"), // Required
			Auth: &codebuild.SourceAuth{
				Type:     aws.String("SourceAuthType"), // Required
				Resource: aws.String("String"),
			},
			Buildspec: aws.String("String"),
			Location:  aws.String("String"),
		},
		Description:   aws.String("ProjectDescription"),
		EncryptionKey: aws.String("NonEmptyString"),
		ServiceRole:   aws.String("NonEmptyString"),
		Tags: []*codebuild.Tag{
			{ // Required
				Key:   aws.String("KeyInput"),
				Value: aws.String("ValueInput"),
			},
			// More values...
		},
		TimeoutInMinutes: aws.Int64(1),
	}
	resp, err := svc.CreateProject(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) CreateProjectRequest

func (c *CodeBuild) CreateProjectRequest(input *CreateProjectInput) (req *request.Request, output *CreateProjectOutput)

CreateProjectRequest generates a "aws/request.Request" representing the client's request for the CreateProject operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See CreateProject for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the CreateProject method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the CreateProjectRequest method.
req, resp := client.CreateProjectRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) DeleteProject

func (c *CodeBuild) DeleteProject(input *DeleteProjectInput) (*DeleteProjectOutput, error)

DeleteProject API operation for AWS CodeBuild.

Deletes a build project.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation DeleteProject for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.DeleteProjectInput{
		Name: aws.String("NonEmptyString"), // Required
	}
	resp, err := svc.DeleteProject(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) DeleteProjectRequest

func (c *CodeBuild) DeleteProjectRequest(input *DeleteProjectInput) (req *request.Request, output *DeleteProjectOutput)

DeleteProjectRequest generates a "aws/request.Request" representing the client's request for the DeleteProject operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See DeleteProject for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the DeleteProject method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the DeleteProjectRequest method.
req, resp := client.DeleteProjectRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) ListBuilds

func (c *CodeBuild) ListBuilds(input *ListBuildsInput) (*ListBuildsOutput, error)

ListBuilds API operation for AWS CodeBuild.

Gets a list of build IDs, with each build ID representing a single build.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation ListBuilds for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.ListBuildsInput{
		NextToken: aws.String("String"),
		SortOrder: aws.String("SortOrderType"),
	}
	resp, err := svc.ListBuilds(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) ListBuildsForProject

func (c *CodeBuild) ListBuildsForProject(input *ListBuildsForProjectInput) (*ListBuildsForProjectOutput, error)

ListBuildsForProject API operation for AWS CodeBuild.

Gets a list of build IDs for the specified build project, with each build ID representing a single build.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation ListBuildsForProject for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.

  • ResourceNotFoundException The specified AWS resource cannot be found.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.ListBuildsForProjectInput{
		ProjectName: aws.String("NonEmptyString"), // Required
		NextToken:   aws.String("String"),
		SortOrder:   aws.String("SortOrderType"),
	}
	resp, err := svc.ListBuildsForProject(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) ListBuildsForProjectRequest

func (c *CodeBuild) ListBuildsForProjectRequest(input *ListBuildsForProjectInput) (req *request.Request, output *ListBuildsForProjectOutput)

ListBuildsForProjectRequest generates a "aws/request.Request" representing the client's request for the ListBuildsForProject operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See ListBuildsForProject for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListBuildsForProject method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the ListBuildsForProjectRequest method.
req, resp := client.ListBuildsForProjectRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) ListBuildsRequest

func (c *CodeBuild) ListBuildsRequest(input *ListBuildsInput) (req *request.Request, output *ListBuildsOutput)

ListBuildsRequest generates a "aws/request.Request" representing the client's request for the ListBuilds operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See ListBuilds for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListBuilds method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the ListBuildsRequest method.
req, resp := client.ListBuildsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) ListCuratedEnvironmentImages

func (c *CodeBuild) ListCuratedEnvironmentImages(input *ListCuratedEnvironmentImagesInput) (*ListCuratedEnvironmentImagesOutput, error)

ListCuratedEnvironmentImages API operation for AWS CodeBuild.

Gets information about Docker images that are managed by AWS CodeBuild.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation ListCuratedEnvironmentImages for usage and error information.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	var params *codebuild.ListCuratedEnvironmentImagesInput
	resp, err := svc.ListCuratedEnvironmentImages(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) ListCuratedEnvironmentImagesRequest

func (c *CodeBuild) ListCuratedEnvironmentImagesRequest(input *ListCuratedEnvironmentImagesInput) (req *request.Request, output *ListCuratedEnvironmentImagesOutput)

ListCuratedEnvironmentImagesRequest generates a "aws/request.Request" representing the client's request for the ListCuratedEnvironmentImages operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See ListCuratedEnvironmentImages for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListCuratedEnvironmentImages method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the ListCuratedEnvironmentImagesRequest method.
req, resp := client.ListCuratedEnvironmentImagesRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) ListProjects

func (c *CodeBuild) ListProjects(input *ListProjectsInput) (*ListProjectsOutput, error)

ListProjects API operation for AWS CodeBuild.

Gets a list of build project names, with each build project name representing a single build project.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation ListProjects for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.
Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.ListProjectsInput{
		NextToken: aws.String("NonEmptyString"),
		SortBy:    aws.String("ProjectSortByType"),
		SortOrder: aws.String("SortOrderType"),
	}
	resp, err := svc.ListProjects(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) ListProjectsRequest

func (c *CodeBuild) ListProjectsRequest(input *ListProjectsInput) (req *request.Request, output *ListProjectsOutput)

ListProjectsRequest generates a "aws/request.Request" representing the client's request for the ListProjects operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See ListProjects for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the ListProjects method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the ListProjectsRequest method.
req, resp := client.ListProjectsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) StartBuild

func (c *CodeBuild) StartBuild(input *StartBuildInput) (*StartBuildOutput, error)

StartBuild API operation for AWS CodeBuild.

Starts running a build.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation StartBuild for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.

  • ResourceNotFoundException The specified AWS resource cannot be found.

  • AccountLimitExceededException An AWS service limit was exceeded for the calling AWS account.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.StartBuildInput{
		ProjectName: aws.String("NonEmptyString"), // Required
		ArtifactsOverride: &codebuild.ProjectArtifacts{
			Type:          aws.String("ArtifactsType"), // Required
			Location:      aws.String("String"),
			Name:          aws.String("String"),
			NamespaceType: aws.String("ArtifactNamespace"),
			Packaging:     aws.String("ArtifactPackaging"),
			Path:          aws.String("String"),
		},
		BuildspecOverride: aws.String("String"),
		EnvironmentVariablesOverride: []*codebuild.EnvironmentVariable{
			{ // Required
				Name:  aws.String("NonEmptyString"), // Required
				Value: aws.String("String"),         // Required
			},
			// More values...
		},
		SourceVersion:            aws.String("String"),
		TimeoutInMinutesOverride: aws.Int64(1),
	}
	resp, err := svc.StartBuild(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) StartBuildRequest

func (c *CodeBuild) StartBuildRequest(input *StartBuildInput) (req *request.Request, output *StartBuildOutput)

StartBuildRequest generates a "aws/request.Request" representing the client's request for the StartBuild operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See StartBuild for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StartBuild method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the StartBuildRequest method.
req, resp := client.StartBuildRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) StopBuild

func (c *CodeBuild) StopBuild(input *StopBuildInput) (*StopBuildOutput, error)

StopBuild API operation for AWS CodeBuild.

Attempts to stop running a build.

Completed builds cannot be stopped.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation StopBuild for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.

  • ResourceNotFoundException The specified AWS resource cannot be found.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.StopBuildInput{
		Id: aws.String("NonEmptyString"), // Required
	}
	resp, err := svc.StopBuild(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) StopBuildRequest

func (c *CodeBuild) StopBuildRequest(input *StopBuildInput) (req *request.Request, output *StopBuildOutput)

StopBuildRequest generates a "aws/request.Request" representing the client's request for the StopBuild operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See StopBuild for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the StopBuild method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the StopBuildRequest method.
req, resp := client.StopBuildRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*CodeBuild) UpdateProject

func (c *CodeBuild) UpdateProject(input *UpdateProjectInput) (*UpdateProjectOutput, error)

UpdateProject API operation for AWS CodeBuild.

Changes the settings of an existing build project.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for AWS CodeBuild's API operation UpdateProject for usage and error information.

Returned Error Codes:

  • InvalidInputException The input value that was provided is not valid.

  • ResourceNotFoundException The specified AWS resource cannot be found.

Example
package main

import (
	"fmt"

	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
	"github.com/aws/aws-sdk-go/service/codebuild"
)

func main() {
	sess, err := session.NewSession()
	if err != nil {
		fmt.Println("failed to create session,", err)
		return
	}

	svc := codebuild.New(sess)

	params := &codebuild.UpdateProjectInput{
		Name: aws.String("NonEmptyString"), // Required
		Artifacts: &codebuild.ProjectArtifacts{
			Type:          aws.String("ArtifactsType"), // Required
			Location:      aws.String("String"),
			Name:          aws.String("String"),
			NamespaceType: aws.String("ArtifactNamespace"),
			Packaging:     aws.String("ArtifactPackaging"),
			Path:          aws.String("String"),
		},
		Description:   aws.String("ProjectDescription"),
		EncryptionKey: aws.String("NonEmptyString"),
		Environment: &codebuild.ProjectEnvironment{
			ComputeType: aws.String("ComputeType"),     // Required
			Image:       aws.String("NonEmptyString"),  // Required
			Type:        aws.String("EnvironmentType"), // Required
			EnvironmentVariables: []*codebuild.EnvironmentVariable{
				{ // Required
					Name:  aws.String("NonEmptyString"), // Required
					Value: aws.String("String"),         // Required
				},
				// More values...
			},
		},
		ServiceRole: aws.String("NonEmptyString"),
		Source: &codebuild.ProjectSource{
			Type: aws.String("SourceType"), // Required
			Auth: &codebuild.SourceAuth{
				Type:     aws.String("SourceAuthType"), // Required
				Resource: aws.String("String"),
			},
			Buildspec: aws.String("String"),
			Location:  aws.String("String"),
		},
		Tags: []*codebuild.Tag{
			{ // Required
				Key:   aws.String("KeyInput"),
				Value: aws.String("ValueInput"),
			},
			// More values...
		},
		TimeoutInMinutes: aws.Int64(1),
	}
	resp, err := svc.UpdateProject(params)

	if err != nil {
		// Print the error, cast err to awserr.Error to get the Code and
		// Message from an error.
		fmt.Println(err.Error())
		return
	}

	// Pretty-print the response data.
	fmt.Println(resp)
}
Output:

func (*CodeBuild) UpdateProjectRequest

func (c *CodeBuild) UpdateProjectRequest(input *UpdateProjectInput) (req *request.Request, output *UpdateProjectOutput)

UpdateProjectRequest generates a "aws/request.Request" representing the client's request for the UpdateProject operation. The "output" return value can be used to capture response data after the request's "Send" method is called.

See UpdateProject for usage and error information.

Creating a request object using this method should be used when you want to inject custom logic into the request's lifecycle using a custom handler, or if you want to access properties on the request object before or after sending the request. If you just want the service response, call the UpdateProject method directly instead.

Note: You must call the "Send" method on the returned request object in order to execute the request.

// Example sending a request using the UpdateProjectRequest method.
req, resp := client.UpdateProjectRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

type CreateProjectInput

type CreateProjectInput struct {

	// Information about the build project's build output artifacts.
	//
	// Artifacts is a required field
	Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure" required:"true"`

	// A meaningful description of the build project.
	Description *string `locationName:"description" type:"string"`

	// The AWS Key Management Service (AWS KMS) customer master key (CMK) to be
	// used for encrypting the build project's 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).
	EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`

	// Information about the build project's build environment.
	//
	// Environment is a required field
	Environment *ProjectEnvironment `locationName:"environment" type:"structure" required:"true"`

	// The build project's name.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"2" type:"string" required:"true"`

	// The Amazon Resource Name (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.
	ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"`

	// Information about the build project's build input source code.
	//
	// Source is a required field
	Source *ProjectSource `locationName:"source" type:"structure" required:"true"`

	// A set of tags for this build project.
	//
	// These tags are available for use by AWS services that support AWS CodeBuild
	// build project tags.
	Tags []*Tag `locationName:"tags" type:"list"`

	// How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until
	// timing out any related build that does not get marked as completed. The default
	// is 60 minutes.
	TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (CreateProjectInput) GoString

func (s CreateProjectInput) GoString() string

GoString returns the string representation

func (*CreateProjectInput) SetArtifacts

SetArtifacts sets the Artifacts field's value.

func (*CreateProjectInput) SetDescription

func (s *CreateProjectInput) SetDescription(v string) *CreateProjectInput

SetDescription sets the Description field's value.

func (*CreateProjectInput) SetEncryptionKey

func (s *CreateProjectInput) SetEncryptionKey(v string) *CreateProjectInput

SetEncryptionKey sets the EncryptionKey field's value.

func (*CreateProjectInput) SetEnvironment

SetEnvironment sets the Environment field's value.

func (*CreateProjectInput) SetName

SetName sets the Name field's value.

func (*CreateProjectInput) SetServiceRole

func (s *CreateProjectInput) SetServiceRole(v string) *CreateProjectInput

SetServiceRole sets the ServiceRole field's value.

func (*CreateProjectInput) SetSource

SetSource sets the Source field's value.

func (*CreateProjectInput) SetTags

func (s *CreateProjectInput) SetTags(v []*Tag) *CreateProjectInput

SetTags sets the Tags field's value.

func (*CreateProjectInput) SetTimeoutInMinutes

func (s *CreateProjectInput) SetTimeoutInMinutes(v int64) *CreateProjectInput

SetTimeoutInMinutes sets the TimeoutInMinutes field's value.

func (CreateProjectInput) String

func (s CreateProjectInput) String() string

String returns the string representation

func (*CreateProjectInput) Validate

func (s *CreateProjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CreateProjectOutput

type CreateProjectOutput struct {

	// Information about the build project that was created.
	Project *Project `locationName:"project" type:"structure"`
	// contains filtered or unexported fields
}

func (CreateProjectOutput) GoString

func (s CreateProjectOutput) GoString() string

GoString returns the string representation

func (*CreateProjectOutput) SetProject

func (s *CreateProjectOutput) SetProject(v *Project) *CreateProjectOutput

SetProject sets the Project field's value.

func (CreateProjectOutput) String

func (s CreateProjectOutput) String() string

String returns the string representation

type DeleteProjectInput

type DeleteProjectInput struct {

	// The name of the build project to delete.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteProjectInput) GoString

func (s DeleteProjectInput) GoString() string

GoString returns the string representation

func (*DeleteProjectInput) SetName

SetName sets the Name field's value.

func (DeleteProjectInput) String

func (s DeleteProjectInput) String() string

String returns the string representation

func (*DeleteProjectInput) Validate

func (s *DeleteProjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteProjectOutput

type DeleteProjectOutput struct {
	// contains filtered or unexported fields
}

func (DeleteProjectOutput) GoString

func (s DeleteProjectOutput) GoString() string

GoString returns the string representation

func (DeleteProjectOutput) String

func (s DeleteProjectOutput) String() string

String returns the string representation

type EnvironmentImage

type EnvironmentImage struct {

	// The Docker image's description.
	Description *string `locationName:"description" type:"string"`

	// The Docker image's name.
	Name *string `locationName:"name" type:"string"`
	// contains filtered or unexported fields
}

Information about a Docker image that is managed by AWS CodeBuild.

func (EnvironmentImage) GoString

func (s EnvironmentImage) GoString() string

GoString returns the string representation

func (*EnvironmentImage) SetDescription

func (s *EnvironmentImage) SetDescription(v string) *EnvironmentImage

SetDescription sets the Description field's value.

func (*EnvironmentImage) SetName

func (s *EnvironmentImage) SetName(v string) *EnvironmentImage

SetName sets the Name field's value.

func (EnvironmentImage) String

func (s EnvironmentImage) String() string

String returns the string representation

type EnvironmentLanguage

type EnvironmentLanguage struct {

	// The list of Docker images that are related by the specified programming language.
	Images []*EnvironmentImage `locationName:"images" type:"list"`

	// The programming language for the related set of Docker images.
	Language *string `locationName:"language" type:"string" enum:"LanguageType"`
	// contains filtered or unexported fields
}

A set of Docker images that are related by programming language and are managed by AWS CodeBuild.

func (EnvironmentLanguage) GoString

func (s EnvironmentLanguage) GoString() string

GoString returns the string representation

func (*EnvironmentLanguage) SetImages

SetImages sets the Images field's value.

func (*EnvironmentLanguage) SetLanguage

func (s *EnvironmentLanguage) SetLanguage(v string) *EnvironmentLanguage

SetLanguage sets the Language field's value.

func (EnvironmentLanguage) String

func (s EnvironmentLanguage) String() string

String returns the string representation

type EnvironmentPlatform

type EnvironmentPlatform struct {

	// The list of programming languages that are available for the specified platform.
	Languages []*EnvironmentLanguage `locationName:"languages" type:"list"`

	// The platform's name.
	Platform *string `locationName:"platform" type:"string" enum:"PlatformType"`
	// contains filtered or unexported fields
}

A set of Docker images that are related by platform and are managed by AWS CodeBuild.

func (EnvironmentPlatform) GoString

func (s EnvironmentPlatform) GoString() string

GoString returns the string representation

func (*EnvironmentPlatform) SetLanguages

SetLanguages sets the Languages field's value.

func (*EnvironmentPlatform) SetPlatform

func (s *EnvironmentPlatform) SetPlatform(v string) *EnvironmentPlatform

SetPlatform sets the Platform field's value.

func (EnvironmentPlatform) String

func (s EnvironmentPlatform) String() string

String returns the string representation

type EnvironmentVariable

type EnvironmentVariable struct {

	// The environment variable's name or key.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// The environment variable's value.
	//
	// Value is a required field
	Value *string `locationName:"value" type:"string" required:"true"`
	// contains filtered or unexported fields
}

Information about an environment variable for a build project or a build.

func (EnvironmentVariable) GoString

func (s EnvironmentVariable) GoString() string

GoString returns the string representation

func (*EnvironmentVariable) SetName

SetName sets the Name field's value.

func (*EnvironmentVariable) SetValue

SetValue sets the Value field's value.

func (EnvironmentVariable) String

func (s EnvironmentVariable) String() string

String returns the string representation

func (*EnvironmentVariable) Validate

func (s *EnvironmentVariable) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListBuildsForProjectInput

type ListBuildsForProjectInput struct {

	// During a previous call, if there are more than 100 items in the list, only
	// the first 100 items are returned, along with a unique string called a next
	// token. To get the next batch of items in the list, call this operation again,
	// adding the next token to the call. To get all of the items in the list, keep
	// calling this operation with each subsequent next token that is returned,
	// until no more next tokens are returned.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The name of the build project to get a list of build IDs for.
	//
	// ProjectName is a required field
	ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"`

	// The order to list build IDs. Valid values include:
	//
	//    * ASCENDING: List the build IDs in ascending order by build ID.
	//
	//    * DESCENDING: List the build IDs in descending order by build ID.
	SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"`
	// contains filtered or unexported fields
}

func (ListBuildsForProjectInput) GoString

func (s ListBuildsForProjectInput) GoString() string

GoString returns the string representation

func (*ListBuildsForProjectInput) SetNextToken

SetNextToken sets the NextToken field's value.

func (*ListBuildsForProjectInput) SetProjectName

SetProjectName sets the ProjectName field's value.

func (*ListBuildsForProjectInput) SetSortOrder

SetSortOrder sets the SortOrder field's value.

func (ListBuildsForProjectInput) String

func (s ListBuildsForProjectInput) String() string

String returns the string representation

func (*ListBuildsForProjectInput) Validate

func (s *ListBuildsForProjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListBuildsForProjectOutput

type ListBuildsForProjectOutput struct {

	// A list of build IDs for the specified build project, with each build ID representing
	// a single build.
	Ids []*string `locationName:"ids" min:"1" type:"list"`

	// If there are more than 100 items in the list, only the first 100 items are
	// returned, along with a unique string called a next token. To get the next
	// batch of items in the list, call this operation again, adding the next token
	// to the call.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListBuildsForProjectOutput) GoString

func (s ListBuildsForProjectOutput) GoString() string

GoString returns the string representation

func (*ListBuildsForProjectOutput) SetIds

SetIds sets the Ids field's value.

func (*ListBuildsForProjectOutput) SetNextToken

SetNextToken sets the NextToken field's value.

func (ListBuildsForProjectOutput) String

String returns the string representation

type ListBuildsInput

type ListBuildsInput struct {

	// During a previous call, if there are more than 100 items in the list, only
	// the first 100 items are returned, along with a unique string called a next
	// token. To get the next batch of items in the list, call this operation again,
	// adding the next token to the call. To get all of the items in the list, keep
	// calling this operation with each subsequent next token that is returned,
	// until no more next tokens are returned.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The order to list build IDs. Valid values include:
	//
	//    * ASCENDING: List the build IDs in ascending order by build ID.
	//
	//    * DESCENDING: List the build IDs in descending order by build ID.
	SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"`
	// contains filtered or unexported fields
}

func (ListBuildsInput) GoString

func (s ListBuildsInput) GoString() string

GoString returns the string representation

func (*ListBuildsInput) SetNextToken

func (s *ListBuildsInput) SetNextToken(v string) *ListBuildsInput

SetNextToken sets the NextToken field's value.

func (*ListBuildsInput) SetSortOrder

func (s *ListBuildsInput) SetSortOrder(v string) *ListBuildsInput

SetSortOrder sets the SortOrder field's value.

func (ListBuildsInput) String

func (s ListBuildsInput) String() string

String returns the string representation

type ListBuildsOutput

type ListBuildsOutput struct {

	// A list of build IDs, with each build ID representing a single build.
	Ids []*string `locationName:"ids" min:"1" type:"list"`

	// If there are more than 100 items in the list, only the first 100 items are
	// returned, along with a unique string called a next token. To get the next
	// batch of items in the list, call this operation again, adding the next token
	// to the call.
	NextToken *string `locationName:"nextToken" type:"string"`
	// contains filtered or unexported fields
}

func (ListBuildsOutput) GoString

func (s ListBuildsOutput) GoString() string

GoString returns the string representation

func (*ListBuildsOutput) SetIds

func (s *ListBuildsOutput) SetIds(v []*string) *ListBuildsOutput

SetIds sets the Ids field's value.

func (*ListBuildsOutput) SetNextToken

func (s *ListBuildsOutput) SetNextToken(v string) *ListBuildsOutput

SetNextToken sets the NextToken field's value.

func (ListBuildsOutput) String

func (s ListBuildsOutput) String() string

String returns the string representation

type ListCuratedEnvironmentImagesInput

type ListCuratedEnvironmentImagesInput struct {
	// contains filtered or unexported fields
}

func (ListCuratedEnvironmentImagesInput) GoString

GoString returns the string representation

func (ListCuratedEnvironmentImagesInput) String

String returns the string representation

type ListCuratedEnvironmentImagesOutput

type ListCuratedEnvironmentImagesOutput struct {

	// Information about supported platforms for Docker images that are managed
	// by AWS CodeBuild.
	Platforms []*EnvironmentPlatform `locationName:"platforms" type:"list"`
	// contains filtered or unexported fields
}

func (ListCuratedEnvironmentImagesOutput) GoString

GoString returns the string representation

func (*ListCuratedEnvironmentImagesOutput) SetPlatforms

SetPlatforms sets the Platforms field's value.

func (ListCuratedEnvironmentImagesOutput) String

String returns the string representation

type ListProjectsInput

type ListProjectsInput struct {

	// During a previous call, if there are more than 100 items in the list, only
	// the first 100 items are returned, along with a unique string called a next
	// token. To get the next batch of items in the list, call this operation again,
	// adding the next token to the call. To get all of the items in the list, keep
	// calling this operation with each subsequent next token that is returned,
	// until no more next tokens are returned.
	NextToken *string `locationName:"nextToken" min:"1" type:"string"`

	// The criterion to be used to list build project names. Valid values include:
	//
	//    * CREATED_TIME: List the build project names based on when each build
	//    project was created.
	//
	//    * LAST_MODIFIED_TIME: List the build project names based on when information
	//    about each build project was last changed.
	//
	//    * NAME: List the build project names based on each build project's name.
	//
	// Use sortOrder to specify in what order to list the build project names based
	// on the preceding criteria.
	SortBy *string `locationName:"sortBy" type:"string" enum:"ProjectSortByType"`

	// The order in which to list build projects. Valid values include:
	//
	//    * ASCENDING: List the build project names in ascending order.
	//
	//    * DESCENDING: List the build project names in descending order.
	//
	// Use sortBy to specify the criterion to be used to list build project names.
	SortOrder *string `locationName:"sortOrder" type:"string" enum:"SortOrderType"`
	// contains filtered or unexported fields
}

func (ListProjectsInput) GoString

func (s ListProjectsInput) GoString() string

GoString returns the string representation

func (*ListProjectsInput) SetNextToken

func (s *ListProjectsInput) SetNextToken(v string) *ListProjectsInput

SetNextToken sets the NextToken field's value.

func (*ListProjectsInput) SetSortBy

func (s *ListProjectsInput) SetSortBy(v string) *ListProjectsInput

SetSortBy sets the SortBy field's value.

func (*ListProjectsInput) SetSortOrder

func (s *ListProjectsInput) SetSortOrder(v string) *ListProjectsInput

SetSortOrder sets the SortOrder field's value.

func (ListProjectsInput) String

func (s ListProjectsInput) String() string

String returns the string representation

func (*ListProjectsInput) Validate

func (s *ListProjectsInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ListProjectsOutput

type ListProjectsOutput struct {

	// If there are more than 100 items in the list, only the first 100 items are
	// returned, along with a unique string called a next token. To get the next
	// batch of items in the list, call this operation again, adding the next token
	// to the call.
	NextToken *string `locationName:"nextToken" type:"string"`

	// The list of build project names, with each build project name representing
	// a single build project.
	Projects []*string `locationName:"projects" min:"1" type:"list"`
	// contains filtered or unexported fields
}

func (ListProjectsOutput) GoString

func (s ListProjectsOutput) GoString() string

GoString returns the string representation

func (*ListProjectsOutput) SetNextToken

func (s *ListProjectsOutput) SetNextToken(v string) *ListProjectsOutput

SetNextToken sets the NextToken field's value.

func (*ListProjectsOutput) SetProjects

func (s *ListProjectsOutput) SetProjects(v []*string) *ListProjectsOutput

SetProjects sets the Projects field's value.

func (ListProjectsOutput) String

func (s ListProjectsOutput) String() string

String returns the string representation

type LogsLocation

type LogsLocation struct {

	// The URL to an individual build log in Amazon CloudWatch Logs.
	DeepLink *string `locationName:"deepLink" type:"string"`

	// The name of the Amazon CloudWatch Logs group for the associated build logs.
	GroupName *string `locationName:"groupName" type:"string"`

	// The name of the Amazon CloudWatch Logs stream for the associated build logs.
	StreamName *string `locationName:"streamName" type:"string"`
	// contains filtered or unexported fields
}

Information about build logs in Amazon CloudWatch Logs.

func (LogsLocation) GoString

func (s LogsLocation) GoString() string

GoString returns the string representation

func (s *LogsLocation) SetDeepLink(v string) *LogsLocation

SetDeepLink sets the DeepLink field's value.

func (*LogsLocation) SetGroupName

func (s *LogsLocation) SetGroupName(v string) *LogsLocation

SetGroupName sets the GroupName field's value.

func (*LogsLocation) SetStreamName

func (s *LogsLocation) SetStreamName(v string) *LogsLocation

SetStreamName sets the StreamName field's value.

func (LogsLocation) String

func (s LogsLocation) String() string

String returns the string representation

type PhaseContext

type PhaseContext struct {

	// An explanation of the build phase's context. This explanation may include
	// a command ID and an exit code.
	Message *string `locationName:"message" type:"string"`

	// The status code for the context of the build phase.
	StatusCode *string `locationName:"statusCode" type:"string"`
	// contains filtered or unexported fields
}

Additional information about a build phase that has an error, which you can use to help troubleshoot a failed build.

func (PhaseContext) GoString

func (s PhaseContext) GoString() string

GoString returns the string representation

func (*PhaseContext) SetMessage

func (s *PhaseContext) SetMessage(v string) *PhaseContext

SetMessage sets the Message field's value.

func (*PhaseContext) SetStatusCode

func (s *PhaseContext) SetStatusCode(v string) *PhaseContext

SetStatusCode sets the StatusCode field's value.

func (PhaseContext) String

func (s PhaseContext) String() string

String returns the string representation

type Project

type Project struct {

	// The build project's Amazon Resource Name (ARN).
	Arn *string `locationName:"arn" type:"string"`

	// Information about the build project's build output artifacts.
	Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure"`

	// When the build project was created, expressed in Unix time format.
	Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix"`

	// A meaningful description of the build project.
	Description *string `locationName:"description" type:"string"`

	// The AWS Key Management Service (AWS KMS) customer master key (CMK) to be
	// used for encrypting the build project's build output artifacts.
	//
	// This is expressed either as the CMK's Amazon Resource Name (ARN) or, if specified,
	// the CMK's alias (using the format alias/alias-name).
	EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`

	// Information about the build environment for this build project.
	Environment *ProjectEnvironment `locationName:"environment" type:"structure"`

	// When the build project's settings were last modified, expressed in Unix time
	// format.
	LastModified *time.Time `locationName:"lastModified" type:"timestamp" timestampFormat:"unix"`

	// The build project's name.
	Name *string `locationName:"name" min:"2" type:"string"`

	// The Amazon Resource Name (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.
	ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"`

	// Information about the build project's build input source code.
	Source *ProjectSource `locationName:"source" type:"structure"`

	// The tags for this build project.
	//
	// These tags are available for use by AWS services that support AWS CodeBuild
	// build project tags.
	Tags []*Tag `locationName:"tags" type:"list"`

	// How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait to
	// timeout any related build that did not get marked as completed. The default
	// is 60 minutes.
	TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

Information about a build project.

func (Project) GoString

func (s Project) GoString() string

GoString returns the string representation

func (*Project) SetArn

func (s *Project) SetArn(v string) *Project

SetArn sets the Arn field's value.

func (*Project) SetArtifacts

func (s *Project) SetArtifacts(v *ProjectArtifacts) *Project

SetArtifacts sets the Artifacts field's value.

func (*Project) SetCreated

func (s *Project) SetCreated(v time.Time) *Project

SetCreated sets the Created field's value.

func (*Project) SetDescription

func (s *Project) SetDescription(v string) *Project

SetDescription sets the Description field's value.

func (*Project) SetEncryptionKey

func (s *Project) SetEncryptionKey(v string) *Project

SetEncryptionKey sets the EncryptionKey field's value.

func (*Project) SetEnvironment

func (s *Project) SetEnvironment(v *ProjectEnvironment) *Project

SetEnvironment sets the Environment field's value.

func (*Project) SetLastModified

func (s *Project) SetLastModified(v time.Time) *Project

SetLastModified sets the LastModified field's value.

func (*Project) SetName

func (s *Project) SetName(v string) *Project

SetName sets the Name field's value.

func (*Project) SetServiceRole

func (s *Project) SetServiceRole(v string) *Project

SetServiceRole sets the ServiceRole field's value.

func (*Project) SetSource

func (s *Project) SetSource(v *ProjectSource) *Project

SetSource sets the Source field's value.

func (*Project) SetTags

func (s *Project) SetTags(v []*Tag) *Project

SetTags sets the Tags field's value.

func (*Project) SetTimeoutInMinutes

func (s *Project) SetTimeoutInMinutes(v int64) *Project

SetTimeoutInMinutes sets the TimeoutInMinutes field's value.

func (Project) String

func (s Project) String() string

String returns the string representation

type ProjectArtifacts

type ProjectArtifacts struct {

	// Information about the build output artifact location, as follows:
	//
	//    * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this
	//    value if specified. This is because AWS CodePipeline manages its build
	//    output locations instead of AWS CodeBuild.
	//
	//    * If type is set to NO_ARTIFACTS, then this value will be ignored if specified,
	//    because no build output will be produced.
	//
	//    * If type is set to S3, this is the name of the output bucket. If path
	//    is not also specified, then location can also specify the path of the
	//    output artifact in the output bucket.
	Location *string `locationName:"location" type:"string"`

	// Along with path and namespaceType, the pattern that AWS CodeBuild will use
	// to name and store the output artifact, as follows:
	//
	//    * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this
	//    value if specified. This is because AWS CodePipeline manages its build
	//    output names instead of AWS CodeBuild.
	//
	//    * If type is set to NO_ARTIFACTS, then this value will be ignored if specified,
	//    because no build output will be produced.
	//
	//    * If type is set to S3, this is the name of the output artifact object.
	//
	// For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID,
	// and name is set to MyArtifact.zip, then the output artifact would be stored
	// in MyArtifacts/build-ID/MyArtifact.zip.
	Name *string `locationName:"name" type:"string"`

	// Along with path and name, the pattern that AWS CodeBuild will use to determine
	// the name and location to store the output artifact, as follows:
	//
	//    * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this
	//    value if specified. This is because AWS CodePipeline manages its build
	//    output names instead of AWS CodeBuild.
	//
	//    * If type is set to NO_ARTIFACTS, then this value will be ignored if specified,
	//    because no build output will be produced.
	//
	//    * If type is set to S3, then valid values include:
	//
	// BUILD_ID: Include the build ID in the location of the build output artifact.
	//
	// NONE: Do not include the build ID. This is the default if namespaceType is
	//    not specified.
	//
	// For example, if path is set to MyArtifacts, namespaceType is set to BUILD_ID,
	// and name is set to MyArtifact.zip, then the output artifact would be stored
	// in MyArtifacts/build-ID/MyArtifact.zip.
	NamespaceType *string `locationName:"namespaceType" type:"string" enum:"ArtifactNamespace"`

	// The type of build output artifact to create, as follows:
	//
	//    * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this
	//    value if specified. This is because AWS CodePipeline manages its build
	//    output artifacts instead of AWS CodeBuild.
	//
	//    * If type is set to NO_ARTIFACTS, then this value will be ignored if specified,
	//    because no build output will be produced.
	//
	//    * If type is set to S3, valid values include:
	//
	// NONE: AWS CodeBuild will create in the output bucket a folder containing
	//    the build output. This is the default if packaging is not specified.
	//
	// ZIP: AWS CodeBuild will create in the output bucket a ZIP file containing
	//    the build output.
	Packaging *string `locationName:"packaging" type:"string" enum:"ArtifactPackaging"`

	// Along with namespaceType and name, the pattern that AWS CodeBuild will use
	// to name and store the output artifact, as follows:
	//
	//    * If type is set to CODEPIPELINE, then AWS CodePipeline will ignore this
	//    value if specified. This is because AWS CodePipeline manages its build
	//    output names instead of AWS CodeBuild.
	//
	//    * If type is set to NO_ARTIFACTS, then this value will be ignored if specified,
	//    because no build output will be produced.
	//
	//    * If type is set to S3, this is the path to the output artifact. If path
	//    is not specified, then path will not be used.
	//
	// For example, if path is set to MyArtifacts, namespaceType is set to NONE,
	// and name is set to MyArtifact.zip, then the output artifact would be stored
	// in the output bucket at MyArtifacts/MyArtifact.zip.
	Path *string `locationName:"path" type:"string"`

	// The build output artifact's type. Valid values include:
	//
	//    * CODEPIPELINE: The build project with have build output generated through
	//    AWS CodePipeline.
	//
	//    * NO_ARTIFACTS: The build project will not produce any build output.
	//
	//    * S3: The build project will store build output in Amazon Simple Storage
	//    Service (Amazon S3).
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"ArtifactsType"`
	// contains filtered or unexported fields
}

Information about the build project's build output artifacts.

func (ProjectArtifacts) GoString

func (s ProjectArtifacts) GoString() string

GoString returns the string representation

func (*ProjectArtifacts) SetLocation

func (s *ProjectArtifacts) SetLocation(v string) *ProjectArtifacts

SetLocation sets the Location field's value.

func (*ProjectArtifacts) SetName

func (s *ProjectArtifacts) SetName(v string) *ProjectArtifacts

SetName sets the Name field's value.

func (*ProjectArtifacts) SetNamespaceType

func (s *ProjectArtifacts) SetNamespaceType(v string) *ProjectArtifacts

SetNamespaceType sets the NamespaceType field's value.

func (*ProjectArtifacts) SetPackaging

func (s *ProjectArtifacts) SetPackaging(v string) *ProjectArtifacts

SetPackaging sets the Packaging field's value.

func (*ProjectArtifacts) SetPath

func (s *ProjectArtifacts) SetPath(v string) *ProjectArtifacts

SetPath sets the Path field's value.

func (*ProjectArtifacts) SetType

func (s *ProjectArtifacts) SetType(v string) *ProjectArtifacts

SetType sets the Type field's value.

func (ProjectArtifacts) String

func (s ProjectArtifacts) String() string

String returns the string representation

func (*ProjectArtifacts) Validate

func (s *ProjectArtifacts) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ProjectEnvironment

type ProjectEnvironment struct {

	// Information about the compute resources the build project will use. Available
	// values include:
	//
	//    * BUILD_GENERAL1_SMALL: Use up to 3 GB memory and 2 vCPUs for builds.
	//
	//    * BUILD_GENERAL1_MEDIUM: Use up to 7 GB memory and 4 vCPUs for builds.
	//
	//    * BUILD_GENERAL1_LARGE: Use up to 15 GB memory and 8 vCPUs for builds.
	//
	// ComputeType is a required field
	ComputeType *string `locationName:"computeType" type:"string" required:"true" enum:"ComputeType"`

	// A set of environment variables to make available to builds for this build
	// project.
	EnvironmentVariables []*EnvironmentVariable `locationName:"environmentVariables" type:"list"`

	// The ID of the Docker image to use for this build project.
	//
	// Image is a required field
	Image *string `locationName:"image" min:"1" type:"string" required:"true"`

	// The type of build environment to use for related builds.
	//
	// The only valid value is LINUX_CONTAINER, which represents a Linux-based build
	// environment.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"EnvironmentType"`
	// contains filtered or unexported fields
}

Information about the build project's build environment.

func (ProjectEnvironment) GoString

func (s ProjectEnvironment) GoString() string

GoString returns the string representation

func (*ProjectEnvironment) SetComputeType

func (s *ProjectEnvironment) SetComputeType(v string) *ProjectEnvironment

SetComputeType sets the ComputeType field's value.

func (*ProjectEnvironment) SetEnvironmentVariables

func (s *ProjectEnvironment) SetEnvironmentVariables(v []*EnvironmentVariable) *ProjectEnvironment

SetEnvironmentVariables sets the EnvironmentVariables field's value.

func (*ProjectEnvironment) SetImage

SetImage sets the Image field's value.

func (*ProjectEnvironment) SetType

SetType sets the Type field's value.

func (ProjectEnvironment) String

func (s ProjectEnvironment) String() string

String returns the string representation

func (*ProjectEnvironment) Validate

func (s *ProjectEnvironment) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ProjectSource

type ProjectSource struct {

	// Information about the authorization settings for AWS CodeBuild to access
	// the source code to be built.
	//
	// This information is only for the AWS CodeBuild console's use. Your code should
	// not get or set this information directly.
	Auth *SourceAuth `locationName:"auth" type:"structure"`

	// The build spec declaration to use for this build project's related builds.
	//
	// If this value is not specified, a build spec must be included along with
	// the source code to be built.
	Buildspec *string `locationName:"buildspec" type:"string"`

	// Information about the location of the source code to be built. Valid values
	// include:
	//
	//    * For source code settings that are specified in the source action of
	//    a pipeline in AWS CodePipeline, location should not be specified. If it
	//    is specified, AWS CodePipeline will ignore it. This is because AWS CodePipeline
	//    uses the settings in a pipeline's source action instead of this value.
	//
	//    * For source code in an AWS CodeCommit repository, the HTTPS clone URL
	//    to the repository that contains the source code and the build spec (for
	//    example, https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name).
	//
	//    * For source code in an Amazon Simple Storage Service (Amazon S3) input
	//    bucket, the path to the ZIP file that contains the source code (for example,
	//    bucket-name/path/to/object-name.zip)
	//
	//    * For source code in a GitHub repository, the HTTPS clone URL, including
	//    the user name and personal access token, to the repository that contains
	//    the source code and the build spec (for example, https://login-user-name:personal-access-token@github.com/repo-owner-name/repo-name.git).
	//    For more information, see Creating an Access Token for Command-Line Use
	//    (https://help.github.com/articles/creating-an-access-token-for-command-line-use/)
	//    on the GitHub Help website.
	Location *string `locationName:"location" type:"string"`

	// The type of repository that contains the source code to be built. Valid values
	// include:
	//
	//    * CODECOMMIT: The source code is in an AWS CodeCommit repository.
	//
	//    * CODEPIPELINE: The source code settings are specified in the source action
	//    of a pipeline in AWS CodePipeline.
	//
	//    * GITHUB: The source code is in a GitHub repository.
	//
	//    * S3: The source code is in an Amazon Simple Storage Service (Amazon S3)
	//    input bucket.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"SourceType"`
	// contains filtered or unexported fields
}

Information about the build project's build input source code.

func (ProjectSource) GoString

func (s ProjectSource) GoString() string

GoString returns the string representation

func (*ProjectSource) SetAuth

func (s *ProjectSource) SetAuth(v *SourceAuth) *ProjectSource

SetAuth sets the Auth field's value.

func (*ProjectSource) SetBuildspec

func (s *ProjectSource) SetBuildspec(v string) *ProjectSource

SetBuildspec sets the Buildspec field's value.

func (*ProjectSource) SetLocation

func (s *ProjectSource) SetLocation(v string) *ProjectSource

SetLocation sets the Location field's value.

func (*ProjectSource) SetType

func (s *ProjectSource) SetType(v string) *ProjectSource

SetType sets the Type field's value.

func (ProjectSource) String

func (s ProjectSource) String() string

String returns the string representation

func (*ProjectSource) Validate

func (s *ProjectSource) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type SourceAuth

type SourceAuth struct {

	// The resource value that applies to the specified authorization type.
	Resource *string `locationName:"resource" type:"string"`

	// The authorization type to use. The only valid value is OAUTH, which represents
	// the OAuth authorization type.
	//
	// Type is a required field
	Type *string `locationName:"type" type:"string" required:"true" enum:"SourceAuthType"`
	// contains filtered or unexported fields
}

Information about the authorization settings for AWS CodeBuild to access the source code to be built.

This information is only for the AWS CodeBuild console's use. Your code should not get or set this information directly.

func (SourceAuth) GoString

func (s SourceAuth) GoString() string

GoString returns the string representation

func (*SourceAuth) SetResource

func (s *SourceAuth) SetResource(v string) *SourceAuth

SetResource sets the Resource field's value.

func (*SourceAuth) SetType

func (s *SourceAuth) SetType(v string) *SourceAuth

SetType sets the Type field's value.

func (SourceAuth) String

func (s SourceAuth) String() string

String returns the string representation

func (*SourceAuth) Validate

func (s *SourceAuth) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartBuildInput

type StartBuildInput struct {

	// Build output artifact settings that override, for this build only, the latest
	// ones already defined in the corresponding build project.
	ArtifactsOverride *ProjectArtifacts `locationName:"artifactsOverride" type:"structure"`

	// A build spec declaration that overrides, for this build only, the latest
	// one already defined in the corresponding build project.
	BuildspecOverride *string `locationName:"buildspecOverride" type:"string"`

	// A set of environment variables that overrides, for this build only, the latest
	// ones already defined in the corresponding build project.
	EnvironmentVariablesOverride []*EnvironmentVariable `locationName:"environmentVariablesOverride" type:"list"`

	// The name of the build project to start running a build.
	//
	// ProjectName is a required field
	ProjectName *string `locationName:"projectName" min:"1" type:"string" required:"true"`

	// A version of the build input to be built, for this build only. If not specified,
	// the latest version will be used. If specified, must be one of:
	//
	//    * For AWS CodeCommit or GitHub: the commit ID to use.
	//
	//    * For Amazon Simple Storage Service (Amazon S3): the version ID of the
	//    object representing the build input ZIP file to use.
	SourceVersion *string `locationName:"sourceVersion" type:"string"`

	// The number of build timeout minutes, from 5 to 480 (8 hours) that overrides,
	// for this build only, the latest setting already defined in the corresponding
	// build project.
	TimeoutInMinutesOverride *int64 `locationName:"timeoutInMinutesOverride" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (StartBuildInput) GoString

func (s StartBuildInput) GoString() string

GoString returns the string representation

func (*StartBuildInput) SetArtifactsOverride

func (s *StartBuildInput) SetArtifactsOverride(v *ProjectArtifacts) *StartBuildInput

SetArtifactsOverride sets the ArtifactsOverride field's value.

func (*StartBuildInput) SetBuildspecOverride

func (s *StartBuildInput) SetBuildspecOverride(v string) *StartBuildInput

SetBuildspecOverride sets the BuildspecOverride field's value.

func (*StartBuildInput) SetEnvironmentVariablesOverride

func (s *StartBuildInput) SetEnvironmentVariablesOverride(v []*EnvironmentVariable) *StartBuildInput

SetEnvironmentVariablesOverride sets the EnvironmentVariablesOverride field's value.

func (*StartBuildInput) SetProjectName

func (s *StartBuildInput) SetProjectName(v string) *StartBuildInput

SetProjectName sets the ProjectName field's value.

func (*StartBuildInput) SetSourceVersion

func (s *StartBuildInput) SetSourceVersion(v string) *StartBuildInput

SetSourceVersion sets the SourceVersion field's value.

func (*StartBuildInput) SetTimeoutInMinutesOverride

func (s *StartBuildInput) SetTimeoutInMinutesOverride(v int64) *StartBuildInput

SetTimeoutInMinutesOverride sets the TimeoutInMinutesOverride field's value.

func (StartBuildInput) String

func (s StartBuildInput) String() string

String returns the string representation

func (*StartBuildInput) Validate

func (s *StartBuildInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StartBuildOutput

type StartBuildOutput struct {

	// Information about the build to be run.
	Build *Build `locationName:"build" type:"structure"`
	// contains filtered or unexported fields
}

func (StartBuildOutput) GoString

func (s StartBuildOutput) GoString() string

GoString returns the string representation

func (*StartBuildOutput) SetBuild

func (s *StartBuildOutput) SetBuild(v *Build) *StartBuildOutput

SetBuild sets the Build field's value.

func (StartBuildOutput) String

func (s StartBuildOutput) String() string

String returns the string representation

type StopBuildInput

type StopBuildInput struct {

	// The ID of the build to attempt to stop running.
	//
	// Id is a required field
	Id *string `locationName:"id" min:"1" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (StopBuildInput) GoString

func (s StopBuildInput) GoString() string

GoString returns the string representation

func (*StopBuildInput) SetId

func (s *StopBuildInput) SetId(v string) *StopBuildInput

SetId sets the Id field's value.

func (StopBuildInput) String

func (s StopBuildInput) String() string

String returns the string representation

func (*StopBuildInput) Validate

func (s *StopBuildInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type StopBuildOutput

type StopBuildOutput struct {

	// Information about the build that was attempted to be stopped.
	Build *Build `locationName:"build" type:"structure"`
	// contains filtered or unexported fields
}

func (StopBuildOutput) GoString

func (s StopBuildOutput) GoString() string

GoString returns the string representation

func (*StopBuildOutput) SetBuild

func (s *StopBuildOutput) SetBuild(v *Build) *StopBuildOutput

SetBuild sets the Build field's value.

func (StopBuildOutput) String

func (s StopBuildOutput) String() string

String returns the string representation

type Tag

type Tag struct {

	// The tag's key.
	Key *string `locationName:"key" min:"1" type:"string"`

	// The tag's value.
	Value *string `locationName:"value" min:"1" type:"string"`
	// contains filtered or unexported fields
}

A tag, consisting of a key and a value.

This tag is available for use by AWS services that support tags in AWS CodeBuild.

func (Tag) GoString

func (s Tag) GoString() string

GoString returns the string representation

func (*Tag) SetKey

func (s *Tag) SetKey(v string) *Tag

SetKey sets the Key field's value.

func (*Tag) SetValue

func (s *Tag) SetValue(v string) *Tag

SetValue sets the Value field's value.

func (Tag) String

func (s Tag) String() string

String returns the string representation

func (*Tag) Validate

func (s *Tag) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateProjectInput

type UpdateProjectInput struct {

	// Information to be changed about the build project's build output artifacts.
	Artifacts *ProjectArtifacts `locationName:"artifacts" type:"structure"`

	// A new or replacement description of the build project.
	Description *string `locationName:"description" type:"string"`

	// The replacement AWS Key Management Service (AWS KMS) customer master key
	// (CMK) to be used for encrypting the build project's 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).
	EncryptionKey *string `locationName:"encryptionKey" min:"1" type:"string"`

	// Information to be changed about the build project's build environment.
	Environment *ProjectEnvironment `locationName:"environment" type:"structure"`

	// The name of the existing build project to change settings.
	//
	// You cannot change an existing build project's name.
	//
	// Name is a required field
	Name *string `locationName:"name" min:"1" type:"string" required:"true"`

	// The replacement Amazon Resource Name (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.
	ServiceRole *string `locationName:"serviceRole" min:"1" type:"string"`

	// Information to be changed about the build project's build input source code.
	Source *ProjectSource `locationName:"source" type:"structure"`

	// The replacement set of tags for this build project.
	//
	// These tags are available for use by AWS services that support AWS CodeBuild
	// build project tags.
	Tags []*Tag `locationName:"tags" type:"list"`

	// The replacement value in minutes, from 5 to 480 (8 hours), for AWS CodeBuild
	// to wait to timeout any related build that did not get marked as completed.
	TimeoutInMinutes *int64 `locationName:"timeoutInMinutes" min:"1" type:"integer"`
	// contains filtered or unexported fields
}

func (UpdateProjectInput) GoString

func (s UpdateProjectInput) GoString() string

GoString returns the string representation

func (*UpdateProjectInput) SetArtifacts

SetArtifacts sets the Artifacts field's value.

func (*UpdateProjectInput) SetDescription

func (s *UpdateProjectInput) SetDescription(v string) *UpdateProjectInput

SetDescription sets the Description field's value.

func (*UpdateProjectInput) SetEncryptionKey

func (s *UpdateProjectInput) SetEncryptionKey(v string) *UpdateProjectInput

SetEncryptionKey sets the EncryptionKey field's value.

func (*UpdateProjectInput) SetEnvironment

SetEnvironment sets the Environment field's value.

func (*UpdateProjectInput) SetName

SetName sets the Name field's value.

func (*UpdateProjectInput) SetServiceRole

func (s *UpdateProjectInput) SetServiceRole(v string) *UpdateProjectInput

SetServiceRole sets the ServiceRole field's value.

func (*UpdateProjectInput) SetSource

SetSource sets the Source field's value.

func (*UpdateProjectInput) SetTags

func (s *UpdateProjectInput) SetTags(v []*Tag) *UpdateProjectInput

SetTags sets the Tags field's value.

func (*UpdateProjectInput) SetTimeoutInMinutes

func (s *UpdateProjectInput) SetTimeoutInMinutes(v int64) *UpdateProjectInput

SetTimeoutInMinutes sets the TimeoutInMinutes field's value.

func (UpdateProjectInput) String

func (s UpdateProjectInput) String() string

String returns the string representation

func (*UpdateProjectInput) Validate

func (s *UpdateProjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type UpdateProjectOutput

type UpdateProjectOutput struct {

	// Information about the build project that was changed.
	Project *Project `locationName:"project" type:"structure"`
	// contains filtered or unexported fields
}

func (UpdateProjectOutput) GoString

func (s UpdateProjectOutput) GoString() string

GoString returns the string representation

func (*UpdateProjectOutput) SetProject

func (s *UpdateProjectOutput) SetProject(v *Project) *UpdateProjectOutput

SetProject sets the Project field's value.

func (UpdateProjectOutput) String

func (s UpdateProjectOutput) String() string

String returns the string representation

Directories

Path Synopsis
Package codebuildiface provides an interface to enable mocking the AWS CodeBuild service client for testing your code.
Package codebuildiface provides an interface to enable mocking the AWS CodeBuild service client for testing your code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL