amazonka-amplify-2.0: Amazon Amplify 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.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
ToJSON CreateBranch Source # 
Instance details

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

AWSRequest CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Associated Types

type AWSResponse CreateBranch #

Generic CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Associated Types

type Rep CreateBranch :: Type -> Type #

Show CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

NFData CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Methods

rnf :: CreateBranch -> () #

Eq CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

Hashable CreateBranch Source # 
Instance details

Defined in Amazonka.Amplify.CreateBranch

type AWSResponse 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" "amazonka-amplify-2.0-FzmP32buJCeA4C8B1HzWt" 'False) (C1 ('MetaCons "CreateBranch'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "backendEnvironmentArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "basicAuthCredentials") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text)))) :*: (S1 ('MetaSel ('Just "buildSpec") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "displayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "enableAutoBuild") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "enableBasicAuth") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "enableNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "enablePerformanceMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))))) :*: (((S1 ('MetaSel ('Just "enablePullRequestPreview") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "environmentVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "framework") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "pullRequestEnvironmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "stage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Stage)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "ttl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "appId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "branchName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))

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:

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

CreateBranch, createBranch_basicAuthCredentials - The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format user:password.

CreateBranch, createBranch_buildSpec - The build specification (build spec) for the branch.

CreateBranch, createBranch_description - The description for the branch.

CreateBranch, createBranch_displayName - The display name for a branch. This is used as the default domain prefix.

CreateBranch, createBranch_enableAutoBuild - Enables auto building for the branch.

CreateBranch, createBranch_enableBasicAuth - Enables basic authorization for the branch.

CreateBranch, createBranch_enableNotification - Enables notifications for the branch.

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.

CreateBranch, createBranch_enablePullRequestPreview - Enables pull request previews for this branch.

CreateBranch, createBranch_environmentVariables - The environment variables for the branch.

CreateBranch, createBranch_framework - The framework for the branch.

CreateBranch, createBranch_pullRequestEnvironmentName - The Amplify environment name for the pull request.

CreateBranch, createBranch_stage - Describes the current stage for the branch.

CreateBranch, createBranch_tags - The tag for the branch.

CreateBranch, createBranch_ttl - The content Time To Live (TTL) for the website in seconds.

CreateBranch, createBranch_appId - The unique ID for an Amplify app.

CreateBranch, createBranch_branchName - The name for the branch.

Request Lenses

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

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

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

The basic authorization credentials for the branch. You must base64-encode the authorization credentials and provide them in the format user:password.

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

The build specification (build spec) for the branch.

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

The description for the branch.

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

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

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_enableNotification :: Lens' CreateBranch (Maybe Bool) Source #

Enables notifications 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_enablePullRequestPreview :: Lens' CreateBranch (Maybe Bool) Source #

Enables pull request previews for this branch.

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

The environment variables for the branch.

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

The framework for the branch.

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

The Amplify environment name for the pull request.

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

Describes the current stage for the branch.

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

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

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.

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.