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.

GitHubCodeDestination

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

type GitHubCodeDestination struct { Description *string `locationName:"description" min:"1" type:"string"` IssuesEnabled *bool `locationName:"issuesEnabled" type:"boolean" required:"true"` Name *string `locationName:"name" min:"1" type:"string" required:"true"` Owner *string `locationName:"owner" min:"1" type:"string" required:"true"` PrivateRepository *bool `locationName:"privateRepository" type:"boolean" required:"true"` Token *string `locationName:"token" min:"1" type:"string" required:"true" sensitive:"true"` Type *string `locationName:"type" type:"string" required:"true"` }

Information about the GitHub repository to be created in AWS CodeStar. This is where the source code files provided with the project request will be uploaded after project creation.

Description

Type: *string

Description for the GitHub repository to be created in AWS CodeStar. This description displays in GitHub after the repository is created.

IssuesEnabled

Type: *bool

Whether to enable issues for the GitHub repository.

IssuesEnabled is a required field

Name

Type: *string

Name of the GitHub repository to be created in AWS CodeStar.

Name is a required field

Owner

Type: *string

The GitHub username for the owner of the GitHub repository to be created in AWS CodeStar. If this repository should be owned by a GitHub organization, provide its name.

Owner is a required field

PrivateRepository

Type: *bool

Whether the GitHub repository is to be a private repository.

PrivateRepository is a required field

Token

Type: *string

The GitHub user's personal access token for the GitHub repository.

Token is a required field

Type

Type: *string

The type of GitHub repository to be created in AWS CodeStar. Valid values are User or Organization.

Type is a required field

Method

GoString

func (s GitHubCodeDestination) GoString() string

GoString returns the string representation

SetDescription

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

SetDescription sets the Description field's value.

SetIssuesEnabled

func (s *GitHubCodeDestination) SetIssuesEnabled(v bool) *GitHubCodeDestination

SetIssuesEnabled sets the IssuesEnabled field's value.

SetName

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

SetName sets the Name field's value.

SetOwner

func (s *GitHubCodeDestination) SetOwner(v string) *GitHubCodeDestination

SetOwner sets the Owner field's value.

SetPrivateRepository

func (s *GitHubCodeDestination) SetPrivateRepository(v bool) *GitHubCodeDestination

SetPrivateRepository sets the PrivateRepository field's value.

SetToken

func (s *GitHubCodeDestination) SetToken(v string) *GitHubCodeDestination

SetToken sets the Token field's value.

SetType

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

SetType sets the Type field's value.

String

func (s GitHubCodeDestination) String() string

String returns the string representation

Validate

func (s *GitHubCodeDestination) Validate() error

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

On this page: