AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Code

import "github.com/aws/aws-sdk-go/service/codestar"

type Code struct { Destination *CodeDestination `locationName:"destination" type:"structure" required:"true"` Source *CodeSource `locationName:"source" type:"structure" required:"true"` }

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

Destination

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

Source

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

Method

GoString

func (s Code) GoString() string

GoString returns the string representation

SetDestination

func (s *Code) SetDestination(v *CodeDestination) *Code

SetDestination sets the Destination field's value.

SetSource

func (s *Code) SetSource(v *CodeSource) *Code

SetSource sets the Source field's value.

String

func (s Code) String() string

String returns the string representation

Validate

func (s *Code) Validate() error

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

On this page: