amazonka-codecommit-2.0: Amazon CodeCommit 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.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
ToJSON UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.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

AWSRequest UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Associated Types

type AWSResponse UpdateDefaultBranch #

Generic UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Associated Types

type Rep UpdateDefaultBranch :: Type -> Type #

Read UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Show UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

NFData UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Methods

rnf :: UpdateDefaultBranch -> () #

Eq UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Hashable UpdateDefaultBranch Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

type AWSResponse 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" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "UpdateDefaultBranch'" 'PrefixI 'True) (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "defaultBranchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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:

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

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Associated Types

type Rep UpdateDefaultBranchResponse :: Type -> Type #

Read UpdateDefaultBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Show UpdateDefaultBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

NFData UpdateDefaultBranchResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.UpdateDefaultBranch

Eq 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" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" '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.