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 |
Updates the specified Git repository with the specified values.
Synopsis
- data UpdateCodeRepository = UpdateCodeRepository' {}
- newUpdateCodeRepository :: Text -> UpdateCodeRepository
- updateCodeRepository_gitConfig :: Lens' UpdateCodeRepository (Maybe GitConfigForUpdate)
- updateCodeRepository_codeRepositoryName :: Lens' UpdateCodeRepository Text
- data UpdateCodeRepositoryResponse = UpdateCodeRepositoryResponse' {}
- newUpdateCodeRepositoryResponse :: Int -> Text -> UpdateCodeRepositoryResponse
- updateCodeRepositoryResponse_httpStatus :: Lens' UpdateCodeRepositoryResponse Int
- updateCodeRepositoryResponse_codeRepositoryArn :: Lens' UpdateCodeRepositoryResponse Text
Creating a Request
data UpdateCodeRepository Source #
See: newUpdateCodeRepository
smart constructor.
UpdateCodeRepository' | |
|
Instances
newUpdateCodeRepository Source #
Create a value of UpdateCodeRepository
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:gitConfig:UpdateCodeRepository'
, updateCodeRepository_gitConfig
- The configuration of the git repository, including the URL and the
Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager
secret that contains the credentials used to access the repository. The
secret must have a staging label of AWSCURRENT
and must be in the
following format:
{"username": UserName, "password": Password}
$sel:codeRepositoryName:UpdateCodeRepository'
, updateCodeRepository_codeRepositoryName
- The name of the Git repository to update.
Request Lenses
updateCodeRepository_gitConfig :: Lens' UpdateCodeRepository (Maybe GitConfigForUpdate) Source #
The configuration of the git repository, including the URL and the
Amazon Resource Name (ARN) of the Amazon Web Services Secrets Manager
secret that contains the credentials used to access the repository. The
secret must have a staging label of AWSCURRENT
and must be in the
following format:
{"username": UserName, "password": Password}
updateCodeRepository_codeRepositoryName :: Lens' UpdateCodeRepository Text Source #
The name of the Git repository to update.
Destructuring the Response
data UpdateCodeRepositoryResponse Source #
See: newUpdateCodeRepositoryResponse
smart constructor.
UpdateCodeRepositoryResponse' | |
|
Instances
newUpdateCodeRepositoryResponse Source #
:: Int | |
-> Text | |
-> UpdateCodeRepositoryResponse |
Create a value of UpdateCodeRepositoryResponse
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:UpdateCodeRepositoryResponse'
, updateCodeRepositoryResponse_httpStatus
- The response's http status code.
$sel:codeRepositoryArn:UpdateCodeRepositoryResponse'
, updateCodeRepositoryResponse_codeRepositoryArn
- The ARN of the Git repository.
Response Lenses
updateCodeRepositoryResponse_httpStatus :: Lens' UpdateCodeRepositoryResponse Int Source #
The response's http status code.
updateCodeRepositoryResponse_codeRepositoryArn :: Lens' UpdateCodeRepositoryResponse Text Source #
The ARN of the Git repository.