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 |
Amazonka.SageMaker.DeleteArtifact
Description
Deletes an artifact. Either ArtifactArn
or Source
must be specified.
Synopsis
- data DeleteArtifact = DeleteArtifact' {}
- newDeleteArtifact :: DeleteArtifact
- deleteArtifact_source :: Lens' DeleteArtifact (Maybe ArtifactSource)
- deleteArtifact_artifactArn :: Lens' DeleteArtifact (Maybe Text)
- data DeleteArtifactResponse = DeleteArtifactResponse' {
- artifactArn :: Maybe Text
- httpStatus :: Int
- newDeleteArtifactResponse :: Int -> DeleteArtifactResponse
- deleteArtifactResponse_artifactArn :: Lens' DeleteArtifactResponse (Maybe Text)
- deleteArtifactResponse_httpStatus :: Lens' DeleteArtifactResponse Int
Creating a Request
data DeleteArtifact Source #
See: newDeleteArtifact
smart constructor.
Constructors
DeleteArtifact' | |
Fields
|
Instances
newDeleteArtifact :: DeleteArtifact Source #
Create a value of DeleteArtifact
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:source:DeleteArtifact'
, deleteArtifact_source
- The URI of the source.
$sel:artifactArn:DeleteArtifact'
, deleteArtifact_artifactArn
- The Amazon Resource Name (ARN) of the artifact to delete.
Request Lenses
deleteArtifact_source :: Lens' DeleteArtifact (Maybe ArtifactSource) Source #
The URI of the source.
deleteArtifact_artifactArn :: Lens' DeleteArtifact (Maybe Text) Source #
The Amazon Resource Name (ARN) of the artifact to delete.
Destructuring the Response
data DeleteArtifactResponse Source #
See: newDeleteArtifactResponse
smart constructor.
Constructors
DeleteArtifactResponse' | |
Fields
|
Instances
newDeleteArtifactResponse Source #
Create a value of DeleteArtifactResponse
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:DeleteArtifact'
, deleteArtifactResponse_artifactArn
- The Amazon Resource Name (ARN) of the artifact.
$sel:httpStatus:DeleteArtifactResponse'
, deleteArtifactResponse_httpStatus
- The response's http status code.
Response Lenses
deleteArtifactResponse_artifactArn :: Lens' DeleteArtifactResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the artifact.
deleteArtifactResponse_httpStatus :: Lens' DeleteArtifactResponse Int Source #
The response's http status code.