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

Description

Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.

Synopsis

Creating a Request

data GetMergeOptions Source #

See: newGetMergeOptions smart constructor.

Constructors

GetMergeOptions' 

Fields

  • conflictDetailLevel :: Maybe ConflictDetailLevelTypeEnum

    The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.

  • conflictResolutionStrategy :: Maybe ConflictResolutionStrategyTypeEnum

    Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.

  • repositoryName :: Text

    The name of the repository that contains the commits about which you want to get merge options.

  • sourceCommitSpecifier :: Text

    The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

  • destinationCommitSpecifier :: Text

    The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

Instances

Instances details
Eq GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Read GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Show GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Generic GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Associated Types

type Rep GetMergeOptions :: Type -> Type #

NFData GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Methods

rnf :: GetMergeOptions -> () #

Hashable GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

ToJSON GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

AWSRequest GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Associated Types

type AWSResponse GetMergeOptions #

ToHeaders GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

ToPath GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

ToQuery GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

type Rep GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

type Rep GetMergeOptions = D1 ('MetaData "GetMergeOptions" "Amazonka.CodeCommit.GetMergeOptions" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "GetMergeOptions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "conflictDetailLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictDetailLevelTypeEnum)) :*: S1 ('MetaSel ('Just "conflictResolutionStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictResolutionStrategyTypeEnum))) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "sourceCommitSpecifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "destinationCommitSpecifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetMergeOptions Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

newGetMergeOptions Source #

Create a value of GetMergeOptions 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:conflictDetailLevel:GetMergeOptions', getMergeOptions_conflictDetailLevel - The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.

$sel:conflictResolutionStrategy:GetMergeOptions', getMergeOptions_conflictResolutionStrategy - Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.

$sel:repositoryName:GetMergeOptions', getMergeOptions_repositoryName - The name of the repository that contains the commits about which you want to get merge options.

$sel:sourceCommitSpecifier:GetMergeOptions', getMergeOptions_sourceCommitSpecifier - The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

$sel:destinationCommitSpecifier:GetMergeOptions', getMergeOptions_destinationCommitSpecifier - The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

Request Lenses

getMergeOptions_conflictDetailLevel :: Lens' GetMergeOptions (Maybe ConflictDetailLevelTypeEnum) Source #

The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.

getMergeOptions_conflictResolutionStrategy :: Lens' GetMergeOptions (Maybe ConflictResolutionStrategyTypeEnum) Source #

Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.

getMergeOptions_repositoryName :: Lens' GetMergeOptions Text Source #

The name of the repository that contains the commits about which you want to get merge options.

getMergeOptions_sourceCommitSpecifier :: Lens' GetMergeOptions Text Source #

The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

getMergeOptions_destinationCommitSpecifier :: Lens' GetMergeOptions Text Source #

The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

Destructuring the Response

data GetMergeOptionsResponse Source #

See: newGetMergeOptionsResponse smart constructor.

Constructors

GetMergeOptionsResponse' 

Fields

Instances

Instances details
Eq GetMergeOptionsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Read GetMergeOptionsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Show GetMergeOptionsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Generic GetMergeOptionsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Associated Types

type Rep GetMergeOptionsResponse :: Type -> Type #

NFData GetMergeOptionsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

Methods

rnf :: GetMergeOptionsResponse -> () #

type Rep GetMergeOptionsResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeOptions

type Rep GetMergeOptionsResponse = D1 ('MetaData "GetMergeOptionsResponse" "Amazonka.CodeCommit.GetMergeOptions" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "GetMergeOptionsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "mergeOptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [MergeOptionTypeEnum])) :*: (S1 ('MetaSel ('Just "sourceCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "destinationCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "baseCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newGetMergeOptionsResponse Source #

Create a value of GetMergeOptionsResponse 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:httpStatus:GetMergeOptionsResponse', getMergeOptionsResponse_httpStatus - The response's http status code.

$sel:mergeOptions:GetMergeOptionsResponse', getMergeOptionsResponse_mergeOptions - The merge option or strategy used to merge the code.

$sel:sourceCommitId:GetMergeOptionsResponse', getMergeOptionsResponse_sourceCommitId - The commit ID of the source commit specifier that was used in the merge evaluation.

$sel:destinationCommitId:GetMergeOptionsResponse', getMergeOptionsResponse_destinationCommitId - The commit ID of the destination commit specifier that was used in the merge evaluation.

$sel:baseCommitId:GetMergeOptionsResponse', getMergeOptionsResponse_baseCommitId - The commit ID of the merge base.

Response Lenses

getMergeOptionsResponse_mergeOptions :: Lens' GetMergeOptionsResponse [MergeOptionTypeEnum] Source #

The merge option or strategy used to merge the code.

getMergeOptionsResponse_sourceCommitId :: Lens' GetMergeOptionsResponse Text Source #

The commit ID of the source commit specifier that was used in the merge evaluation.

getMergeOptionsResponse_destinationCommitId :: Lens' GetMergeOptionsResponse Text Source #

The commit ID of the destination commit specifier that was used in the merge evaluation.