Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateCodeRepository = CreateCodeRepository' {}
- newCreateCodeRepository :: Text -> GitConfig -> CreateCodeRepository
- createCodeRepository_tags :: Lens' CreateCodeRepository (Maybe [Tag])
- createCodeRepository_codeRepositoryName :: Lens' CreateCodeRepository Text
- createCodeRepository_gitConfig :: Lens' CreateCodeRepository GitConfig
- data CreateCodeRepositoryResponse = CreateCodeRepositoryResponse' {}
- newCreateCodeRepositoryResponse :: Int -> Text -> CreateCodeRepositoryResponse
- createCodeRepositoryResponse_httpStatus :: Lens' CreateCodeRepositoryResponse Int
- createCodeRepositoryResponse_codeRepositoryArn :: Lens' CreateCodeRepositoryResponse Text
Creating a Request
data CreateCodeRepository Source #
See: newCreateCodeRepository
smart constructor.
CreateCodeRepository' | |
|
Instances
newCreateCodeRepository Source #
:: Text | |
-> GitConfig | |
-> CreateCodeRepository |
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.
CreateCodeRepositoryResponse' | |
|
Instances
newCreateCodeRepositoryResponse Source #
:: Int | |
-> Text | |
-> CreateCodeRepositoryResponse |
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_httpStatus :: Lens' CreateCodeRepositoryResponse Int Source #
The response's http status code.
createCodeRepositoryResponse_codeRepositoryArn :: Lens' CreateCodeRepositoryResponse Text Source #
The Amazon Resource Name (ARN) of the new repository.