libZSservicesZSamazonka-codebuildZSamazonka-codebuild
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CodeBuild.ImportSourceCredentials

Description

Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

Synopsis

Creating a Request

data ImportSourceCredentials Source #

See: newImportSourceCredentials smart constructor.

Constructors

ImportSourceCredentials' 

Fields

  • username :: Maybe Text

    The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.

  • shouldOverwrite :: Maybe Bool

    Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true.

  • token :: Sensitive Text

    For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.

  • serverType :: ServerType

    The source provider used for this project.

  • authType :: AuthType

    The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.

Instances

Instances details
Eq ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Show ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Generic ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Associated Types

type Rep ImportSourceCredentials :: Type -> Type #

NFData ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Methods

rnf :: ImportSourceCredentials -> () #

Hashable ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

ToJSON ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

AWSRequest ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

ToHeaders ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

ToPath ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

ToQuery ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

type Rep ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

type Rep ImportSourceCredentials = D1 ('MetaData "ImportSourceCredentials" "Amazonka.CodeBuild.ImportSourceCredentials" "libZSservicesZSamazonka-codebuildZSamazonka-codebuild" 'False) (C1 ('MetaCons "ImportSourceCredentials'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "shouldOverwrite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: (S1 ('MetaSel ('Just "serverType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ServerType) :*: S1 ('MetaSel ('Just "authType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AuthType)))))
type AWSResponse ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

newImportSourceCredentials Source #

Create a value of ImportSourceCredentials with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:username:ImportSourceCredentials', importSourceCredentials_username - The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.

$sel:shouldOverwrite:ImportSourceCredentials', importSourceCredentials_shouldOverwrite - Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true.

$sel:token:ImportSourceCredentials', importSourceCredentials_token - For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.

$sel:serverType:ImportSourceCredentials', importSourceCredentials_serverType - The source provider used for this project.

$sel:authType:ImportSourceCredentials', importSourceCredentials_authType - The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.

Request Lenses

importSourceCredentials_username :: Lens' ImportSourceCredentials (Maybe Text) Source #

The Bitbucket username when the authType is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.

importSourceCredentials_shouldOverwrite :: Lens' ImportSourceCredentials (Maybe Bool) Source #

Set to false to prevent overwriting the repository source credentials. Set to true to overwrite the repository source credentials. The default value is true.

importSourceCredentials_token :: Lens' ImportSourceCredentials Text Source #

For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.

importSourceCredentials_authType :: Lens' ImportSourceCredentials AuthType Source #

The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.

Destructuring the Response

data ImportSourceCredentialsResponse Source #

See: newImportSourceCredentialsResponse smart constructor.

Constructors

ImportSourceCredentialsResponse' 

Fields

Instances

Instances details
Eq ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Read ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Show ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Generic ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Associated Types

type Rep ImportSourceCredentialsResponse :: Type -> Type #

NFData ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

type Rep ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

type Rep ImportSourceCredentialsResponse = D1 ('MetaData "ImportSourceCredentialsResponse" "Amazonka.CodeBuild.ImportSourceCredentials" "libZSservicesZSamazonka-codebuildZSamazonka-codebuild" 'False) (C1 ('MetaCons "ImportSourceCredentialsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newImportSourceCredentialsResponse Source #

Create a value of ImportSourceCredentialsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:arn:ImportSourceCredentialsResponse', importSourceCredentialsResponse_arn - The Amazon Resource Name (ARN) of the token.

$sel:httpStatus:ImportSourceCredentialsResponse', importSourceCredentialsResponse_httpStatus - The response's http status code.

Response Lenses