libZSservicesZSamazonka-codecommitZSamazonka-codecommit
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.CodeCommit.UpdateDefaultBranch

Description

Sets or changes the default branch name for the specified repository.

If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

Synopsis

Creating a Request

data UpdateDefaultBranch Source #

Represents the input of an update default branch operation.

See: newUpdateDefaultBranch smart constructor.

Constructors

UpdateDefaultBranch' 

Fields

Instances

Instances details
Eq UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Read UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Show UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Generic UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Associated Types

type Rep UpdateDefaultBranch :: Type -> Type #

NFData UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Methods

rnf :: UpdateDefaultBranch -> () #

Hashable UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

ToJSON UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

AWSRequest UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Associated Types

type AWSResponse UpdateDefaultBranch #

ToHeaders UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

ToPath UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

ToQuery UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

type Rep UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

type Rep UpdateDefaultBranch = D1 ('MetaData "UpdateDefaultBranch" "Amazonka.CodeCommit.UpdateDefaultBranch" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "UpdateDefaultBranch'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "defaultBranchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

newUpdateDefaultBranch Source #

Create a value of UpdateDefaultBranch 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:repositoryName:UpdateDefaultBranch', updateDefaultBranch_repositoryName - The name of the repository to set or change the default branch for.

$sel:defaultBranchName:UpdateDefaultBranch', updateDefaultBranch_defaultBranchName - The name of the branch to set as the default.

Request Lenses

updateDefaultBranch_repositoryName :: Lens' UpdateDefaultBranch Text Source #

The name of the repository to set or change the default branch for.

updateDefaultBranch_defaultBranchName :: Lens' UpdateDefaultBranch Text Source #

The name of the branch to set as the default.

Destructuring the Response

data UpdateDefaultBranchResponse Source #

See: newUpdateDefaultBranchResponse smart constructor.

Instances

Instances details
Eq UpdateDefaultBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Read UpdateDefaultBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Show UpdateDefaultBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Generic UpdateDefaultBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Associated Types

type Rep UpdateDefaultBranchResponse :: Type -> Type #

NFData UpdateDefaultBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

type Rep UpdateDefaultBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

type Rep UpdateDefaultBranchResponse = D1 ('MetaData "UpdateDefaultBranchResponse" "Amazonka.CodeCommit.UpdateDefaultBranch" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "UpdateDefaultBranchResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newUpdateDefaultBranchResponse :: UpdateDefaultBranchResponse Source #

Create a value of UpdateDefaultBranchResponse with all optional fields omitted.

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