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

Description

Creates a new branch for an Amplify app.

Synopsis

Creating a Request

data CreateBranch Source #

The request structure for the create branch request.

See: newCreateBranch smart constructor.

Constructors

CreateBranch' 

Fields

Instances

Instances details
Eq CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Show CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Generic CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Associated Types

type Rep CreateBranch :: Type -> Type #

NFData CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Methods

rnf :: CreateBranch -> () #

Hashable CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

ToJSON CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

AWSRequest CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Associated Types

type AWSResponse CreateBranch #

ToHeaders CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

ToPath CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

ToQuery CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

type Rep CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

type Rep CreateBranch = D1 ('MetaData "CreateBranch" "Amazonka.Amplify.CreateBranch" "libZSservicesZSamazonka-amplifyZSamazonka-amplify" 'False) (C1 ('MetaCons "CreateBranch'" '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 "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "branchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))
type AWSResponse CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

newCreateBranch Source #

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

$sel:ttl:CreateBranch', createBranch_ttl - The content Time To Live (TTL) for the website in seconds.

$sel:enableNotification:CreateBranch', createBranch_enableNotification - Enables notifications for the branch.

$sel:stage:CreateBranch', createBranch_stage - Describes the current stage for the branch.

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

$sel:enablePullRequestPreview:CreateBranch', createBranch_enablePullRequestPreview - Enables pull request previews for this branch.

$sel:basicAuthCredentials:CreateBranch', createBranch_basicAuthCredentials - The basic authorization credentials for the branch.

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

$sel:enablePerformanceMode:CreateBranch', createBranch_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:CreateBranch', createBranch_displayName - The display name for a branch. This is used as the default domain prefix.

$sel:environmentVariables:CreateBranch', createBranch_environmentVariables - The environment variables for the branch.

$sel:enableAutoBuild:CreateBranch', createBranch_enableAutoBuild - Enables auto building for the branch.

$sel:enableBasicAuth:CreateBranch', createBranch_enableBasicAuth - Enables basic authorization for the branch.

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

$sel:description:CreateBranch', createBranch_description - The description for the branch.

$sel:tags:CreateBranch', createBranch_tags - The tag for the branch.

$sel:appId:CreateBranch', createBranch_appId - The unique ID for an Amplify app.

$sel:branchName:CreateBranch', createBranch_branchName - The name for the branch.

Request Lenses

createBranch_framework :: Lens' CreateBranch (Maybe Text) Source #

The framework for the branch.

createBranch_ttl :: Lens' CreateBranch (Maybe Text) Source #

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

createBranch_enableNotification :: Lens' CreateBranch (Maybe Bool) Source #

Enables notifications for the branch.

createBranch_stage :: Lens' CreateBranch (Maybe Stage) Source #

Describes the current stage for the branch.

createBranch_backendEnvironmentArn :: Lens' CreateBranch (Maybe Text) Source #

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

createBranch_enablePullRequestPreview :: Lens' CreateBranch (Maybe Bool) Source #

Enables pull request previews for this branch.

createBranch_basicAuthCredentials :: Lens' CreateBranch (Maybe Text) Source #

The basic authorization credentials for the branch.

createBranch_buildSpec :: Lens' CreateBranch (Maybe Text) Source #

The build specification (build spec) for the branch.

createBranch_enablePerformanceMode :: Lens' CreateBranch (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.

createBranch_displayName :: Lens' CreateBranch (Maybe Text) Source #

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

createBranch_environmentVariables :: Lens' CreateBranch (Maybe (HashMap Text Text)) Source #

The environment variables for the branch.

createBranch_enableAutoBuild :: Lens' CreateBranch (Maybe Bool) Source #

Enables auto building for the branch.

createBranch_enableBasicAuth :: Lens' CreateBranch (Maybe Bool) Source #

Enables basic authorization for the branch.

createBranch_pullRequestEnvironmentName :: Lens' CreateBranch (Maybe Text) Source #

The Amplify environment name for the pull request.

createBranch_description :: Lens' CreateBranch (Maybe Text) Source #

The description for the branch.

createBranch_appId :: Lens' CreateBranch Text Source #

The unique ID for an Amplify app.

Destructuring the Response

data CreateBranchResponse Source #

The result structure for create branch request.

See: newCreateBranchResponse smart constructor.

Constructors

CreateBranchResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • branch :: Branch

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

Instances

Instances details
Eq CreateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Show CreateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Generic CreateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Associated Types

type Rep CreateBranchResponse :: Type -> Type #

NFData CreateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Methods

rnf :: CreateBranchResponse -> () #

type Rep CreateBranchResponse Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

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

newCreateBranchResponse Source #

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

$sel:branch:CreateBranchResponse', createBranchResponse_branch - Describes the branch for an Amplify app, which maps to a third-party repository branch.

Response Lenses

createBranchResponse_branch :: Lens' CreateBranchResponse Branch Source #

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