libZSservicesZSamazonka-amplifyZSamazonka-amplify
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.Amplify.UpdateBranch

Description

Updates a branch for an Amplify app.

Synopsis

Creating a Request

data UpdateBranch Source #

The request structure for the update branch request.

See: newUpdateBranch smart constructor.

Constructors

UpdateBranch' 

Fields

Instances

Instances details
Eq UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

Show UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

Generic UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

Associated Types

type Rep UpdateBranch :: Type -> Type #

NFData UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

Methods

rnf :: UpdateBranch -> () #

Hashable UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

ToJSON UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

AWSRequest UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

Associated Types

type AWSResponse UpdateBranch #

ToHeaders UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

ToPath UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

ToQuery UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

type Rep UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

type Rep UpdateBranch = D1 ('MetaData "UpdateBranch" "Amazonka.Amplify.UpdateBranch" "libZSservicesZSamazonka-amplifyZSamazonka-amplify" 'False) (C1 ('MetaCons "UpdateBranch'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "framework") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "enableNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "stage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Stage)))) :*: ((S1 ('MetaSel ('Just "backendEnvironmentArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "enablePullRequestPreview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "basicAuthCredentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "buildSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "enablePerformanceMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "displayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "environmentVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "enableAutoBuild") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "enableBasicAuth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "pullRequestEnvironmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "branchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))
type AWSResponse UpdateBranch Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

newUpdateBranch Source #

Create a value of UpdateBranch 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:framework:UpdateBranch', updateBranch_framework - The framework for the branch.

$sel:ttl:UpdateBranch', updateBranch_ttl - The content Time to Live (TTL) for the website in seconds.

$sel:enableNotification:UpdateBranch', updateBranch_enableNotification - Enables notifications for the branch.

$sel:stage:UpdateBranch', updateBranch_stage - Describes the current stage for the branch.

$sel:backendEnvironmentArn:UpdateBranch', updateBranch_backendEnvironmentArn - The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.

$sel:enablePullRequestPreview:UpdateBranch', updateBranch_enablePullRequestPreview - Enables pull request previews for this branch.

$sel:basicAuthCredentials:UpdateBranch', updateBranch_basicAuthCredentials - The basic authorization credentials for the branch.

$sel:buildSpec:UpdateBranch', updateBranch_buildSpec - The build specification (build spec) for the branch.

$sel:enablePerformanceMode:UpdateBranch', updateBranch_enablePerformanceMode - Enables performance mode for the branch.

Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.

$sel:displayName:UpdateBranch', updateBranch_displayName - The display name for a branch. This is used as the default domain prefix.

$sel:environmentVariables:UpdateBranch', updateBranch_environmentVariables - The environment variables for the branch.

$sel:enableAutoBuild:UpdateBranch', updateBranch_enableAutoBuild - Enables auto building for the branch.

$sel:enableBasicAuth:UpdateBranch', updateBranch_enableBasicAuth - Enables basic authorization for the branch.

$sel:pullRequestEnvironmentName:UpdateBranch', updateBranch_pullRequestEnvironmentName - The Amplify environment name for the pull request.

$sel:description:UpdateBranch', updateBranch_description - The description for the branch.

$sel:appId:UpdateBranch', updateBranch_appId - The unique ID for an Amplify app.

$sel:branchName:UpdateBranch', updateBranch_branchName - The name for the branch.

Request Lenses

updateBranch_framework :: Lens' UpdateBranch (Maybe Text) Source #

The framework for the branch.

updateBranch_ttl :: Lens' UpdateBranch (Maybe Text) Source #

The content Time to Live (TTL) for the website in seconds.

updateBranch_enableNotification :: Lens' UpdateBranch (Maybe Bool) Source #

Enables notifications for the branch.

updateBranch_stage :: Lens' UpdateBranch (Maybe Stage) Source #

Describes the current stage for the branch.

updateBranch_backendEnvironmentArn :: Lens' UpdateBranch (Maybe Text) Source #

The Amazon Resource Name (ARN) for a backend environment that is part of an Amplify app.

updateBranch_enablePullRequestPreview :: Lens' UpdateBranch (Maybe Bool) Source #

Enables pull request previews for this branch.

updateBranch_basicAuthCredentials :: Lens' UpdateBranch (Maybe Text) Source #

The basic authorization credentials for the branch.

updateBranch_buildSpec :: Lens' UpdateBranch (Maybe Text) Source #

The build specification (build spec) for the branch.

updateBranch_enablePerformanceMode :: Lens' UpdateBranch (Maybe Bool) Source #

Enables performance mode for the branch.

Performance mode optimizes for faster hosting performance by keeping content cached at the edge for a longer interval. When performance mode is enabled, hosting configuration or code changes can take up to 10 minutes to roll out.

updateBranch_displayName :: Lens' UpdateBranch (Maybe Text) Source #

The display name for a branch. This is used as the default domain prefix.

updateBranch_environmentVariables :: Lens' UpdateBranch (Maybe (HashMap Text Text)) Source #

The environment variables for the branch.

updateBranch_enableAutoBuild :: Lens' UpdateBranch (Maybe Bool) Source #

Enables auto building for the branch.

updateBranch_enableBasicAuth :: Lens' UpdateBranch (Maybe Bool) Source #

Enables basic authorization for the branch.

updateBranch_pullRequestEnvironmentName :: Lens' UpdateBranch (Maybe Text) Source #

The Amplify environment name for the pull request.

updateBranch_description :: Lens' UpdateBranch (Maybe Text) Source #

The description for the branch.

updateBranch_appId :: Lens' UpdateBranch Text Source #

The unique ID for an Amplify app.

Destructuring the Response

data UpdateBranchResponse Source #

The result structure for the update branch request.

See: newUpdateBranchResponse smart constructor.

Constructors

UpdateBranchResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • branch :: Branch

    The branch for an Amplify app, which maps to a third-party repository branch.

Instances

Instances details
Eq UpdateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

Show UpdateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

Generic UpdateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

Associated Types

type Rep UpdateBranchResponse :: Type -> Type #

NFData UpdateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

Methods

rnf :: UpdateBranchResponse -> () #

type Rep UpdateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.UpdateBranch

type Rep UpdateBranchResponse = D1 ('MetaData "UpdateBranchResponse" "Amazonka.Amplify.UpdateBranch" "libZSservicesZSamazonka-amplifyZSamazonka-amplify" 'False) (C1 ('MetaCons "UpdateBranchResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "branch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Branch)))

newUpdateBranchResponse Source #

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

$sel:branch:UpdateBranchResponse', updateBranchResponse_branch - The branch for an Amplify app, which maps to a third-party repository branch.

Response Lenses

updateBranchResponse_branch :: Lens' UpdateBranchResponse Branch Source #

The branch for an Amplify app, which maps to a third-party repository branch.