libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker
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.SageMaker.CreateCodeRepository

Description

Creates a Git repository as a resource in your Amazon SageMaker account. You can associate the repository with notebook instances so that you can use Git source control for the notebooks you create. The Git repository is a resource in your Amazon SageMaker account, so it can be associated with more than one notebook instance, and it persists independently from the lifecycle of any notebook instances it is associated with.

The repository can be hosted either in Amazon Web Services CodeCommit or in any other Git repository.

Synopsis

Creating a Request

data CreateCodeRepository Source #

See: newCreateCodeRepository smart constructor.

Constructors

CreateCodeRepository' 

Fields

  • tags :: Maybe [Tag]

    An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

  • codeRepositoryName :: Text

    The name of the Git repository. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

  • gitConfig :: GitConfig

    Specifies details about the repository, including the URL where the repository is located, the default branch, and credentials to use to access the repository.

Instances

Instances details
Eq CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Read CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Show CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Generic CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Associated Types

type Rep CreateCodeRepository :: Type -> Type #

NFData CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Methods

rnf :: CreateCodeRepository -> () #

Hashable CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

ToJSON CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

AWSRequest CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Associated Types

type AWSResponse CreateCodeRepository #

ToHeaders CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

ToPath CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

ToQuery CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

type Rep CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

type Rep CreateCodeRepository = D1 ('MetaData "CreateCodeRepository" "Amazonka.SageMaker.CreateCodeRepository" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "CreateCodeRepository'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: (S1 ('MetaSel ('Just "codeRepositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "gitConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 GitConfig))))
type AWSResponse CreateCodeRepository Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

newCreateCodeRepository Source #

Create a value of CreateCodeRepository 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:tags:CreateCodeRepository', createCodeRepository_tags - An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

$sel:codeRepositoryName:CreateCodeRepository', createCodeRepository_codeRepositoryName - The name of the Git repository. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

$sel:gitConfig:CreateCodeRepository', createCodeRepository_gitConfig - Specifies details about the repository, including the URL where the repository is located, the default branch, and credentials to use to access the repository.

Request Lenses

createCodeRepository_tags :: Lens' CreateCodeRepository (Maybe [Tag]) Source #

An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources.

createCodeRepository_codeRepositoryName :: Lens' CreateCodeRepository Text Source #

The name of the Git repository. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).

createCodeRepository_gitConfig :: Lens' CreateCodeRepository GitConfig Source #

Specifies details about the repository, including the URL where the repository is located, the default branch, and credentials to use to access the repository.

Destructuring the Response

data CreateCodeRepositoryResponse Source #

See: newCreateCodeRepositoryResponse smart constructor.

Constructors

CreateCodeRepositoryResponse' 

Fields

Instances

Instances details
Eq CreateCodeRepositoryResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Read CreateCodeRepositoryResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Show CreateCodeRepositoryResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Generic CreateCodeRepositoryResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

Associated Types

type Rep CreateCodeRepositoryResponse :: Type -> Type #

NFData CreateCodeRepositoryResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

type Rep CreateCodeRepositoryResponse Source # 
Instance details

Defined in Amazonka.SageMaker.CreateCodeRepository

type Rep CreateCodeRepositoryResponse = D1 ('MetaData "CreateCodeRepositoryResponse" "Amazonka.SageMaker.CreateCodeRepository" "libZSservicesZSamazonka-sagemakerZSamazonka-sagemaker" 'False) (C1 ('MetaCons "CreateCodeRepositoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "codeRepositoryArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateCodeRepositoryResponse Source #

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

$sel:codeRepositoryArn:CreateCodeRepositoryResponse', createCodeRepositoryResponse_codeRepositoryArn - The Amazon Resource Name (ARN) of the new repository.

Response Lenses

createCodeRepositoryResponse_codeRepositoryArn :: Lens' CreateCodeRepositoryResponse Text Source #

The Amazon Resource Name (ARN) of the new repository.