amazonka-codebuild-2.0: Amazon CodeBuild SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • 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.

  • 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.

  • 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
ToJSON 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

AWSRequest 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 #

Show ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

NFData ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Methods

rnf :: ImportSourceCredentials -> () #

Eq ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Hashable ImportSourceCredentials Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

type AWSResponse 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" "amazonka-codebuild-2.0-3KpZspRk9Ul8Wu4D0cM13Q" 'False) (C1 ('MetaCons "ImportSourceCredentials'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "shouldOverwrite") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (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)))))

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: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: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:token:ImportSourceCredentials', importSourceCredentials_token - For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.

ImportSourceCredentials, importSourceCredentials_serverType - The source provider used for this project.

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_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_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_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
Generic ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Associated Types

type Rep ImportSourceCredentialsResponse :: Type -> Type #

Read ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Show ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

NFData ImportSourceCredentialsResponse Source # 
Instance details

Defined in Amazonka.CodeBuild.ImportSourceCredentials

Eq 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" "amazonka-codebuild-2.0-3KpZspRk9Ul8Wu4D0cM13Q" '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:

ImportSourceCredentialsResponse, importSourceCredentialsResponse_arn - The Amazon Resource Name (ARN) of the token.

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

Response Lenses