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 an artifact.
Synopsis
- data UpdateArtifact = UpdateArtifact' {
- propertiesToRemove :: Maybe [Text]
- artifactName :: Maybe Text
- properties :: Maybe (HashMap Text Text)
- artifactArn :: Text
- newUpdateArtifact :: Text -> UpdateArtifact
- updateArtifact_propertiesToRemove :: Lens' UpdateArtifact (Maybe [Text])
- updateArtifact_artifactName :: Lens' UpdateArtifact (Maybe Text)
- updateArtifact_properties :: Lens' UpdateArtifact (Maybe (HashMap Text Text))
- updateArtifact_artifactArn :: Lens' UpdateArtifact Text
- data UpdateArtifactResponse = UpdateArtifactResponse' {
- artifactArn :: Maybe Text
- httpStatus :: Int
- newUpdateArtifactResponse :: Int -> UpdateArtifactResponse
- updateArtifactResponse_artifactArn :: Lens' UpdateArtifactResponse (Maybe Text)
- updateArtifactResponse_httpStatus :: Lens' UpdateArtifactResponse Int
Creating a Request
data UpdateArtifact Source #
See: newUpdateArtifact
smart constructor.
UpdateArtifact' | |
|
Instances
Create a value of UpdateArtifact
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:propertiesToRemove:UpdateArtifact'
, updateArtifact_propertiesToRemove
- A list of properties to remove.
$sel:artifactName:UpdateArtifact'
, updateArtifact_artifactName
- The new name for the artifact.
$sel:properties:UpdateArtifact'
, updateArtifact_properties
- The new list of properties. Overwrites the current property list.
$sel:artifactArn:UpdateArtifact'
, updateArtifact_artifactArn
- The Amazon Resource Name (ARN) of the artifact to update.
Request Lenses
updateArtifact_propertiesToRemove :: Lens' UpdateArtifact (Maybe [Text]) Source #
A list of properties to remove.
updateArtifact_artifactName :: Lens' UpdateArtifact (Maybe Text) Source #
The new name for the artifact.
updateArtifact_properties :: Lens' UpdateArtifact (Maybe (HashMap Text Text)) Source #
The new list of properties. Overwrites the current property list.
updateArtifact_artifactArn :: Lens' UpdateArtifact Text Source #
The Amazon Resource Name (ARN) of the artifact to update.
Destructuring the Response
data UpdateArtifactResponse Source #
See: newUpdateArtifactResponse
smart constructor.
UpdateArtifactResponse' | |
|
Instances
newUpdateArtifactResponse Source #
Create a value of UpdateArtifactResponse
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:artifactArn:UpdateArtifact'
, updateArtifactResponse_artifactArn
- The Amazon Resource Name (ARN) of the artifact.
$sel:httpStatus:UpdateArtifactResponse'
, updateArtifactResponse_httpStatus
- The response's http status code.
Response Lenses
updateArtifactResponse_artifactArn :: Lens' UpdateArtifactResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the artifact.
updateArtifactResponse_httpStatus :: Lens' UpdateArtifactResponse Int Source #
The response's http status code.