| 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.Nimble.DeleteStudio
Description
Delete a studio resource.
Synopsis
- data DeleteStudio = DeleteStudio' {
- clientToken :: Maybe Text
- studioId :: Text
- newDeleteStudio :: Text -> DeleteStudio
- deleteStudio_clientToken :: Lens' DeleteStudio (Maybe Text)
- deleteStudio_studioId :: Lens' DeleteStudio Text
- data DeleteStudioResponse = DeleteStudioResponse' {
- studio :: Maybe Studio
- httpStatus :: Int
- newDeleteStudioResponse :: Int -> DeleteStudioResponse
- deleteStudioResponse_studio :: Lens' DeleteStudioResponse (Maybe Studio)
- deleteStudioResponse_httpStatus :: Lens' DeleteStudioResponse Int
Creating a Request
data DeleteStudio Source #
See: newDeleteStudio smart constructor.
Constructors
| DeleteStudio' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeleteStudio |
Create a value of DeleteStudio 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:clientToken:DeleteStudio', deleteStudio_clientToken - To make an idempotent API request using one of these actions, specify a
client token in the request. You should not reuse the same client token
for other API requests. If you retry a request that completed
successfully using the same client token and the same parameters, the
retry succeeds without performing any further actions. If you retry a
successful request using the same client token, but one or more of the
parameters are different, the retry fails with a ValidationException
error.
$sel:studioId:DeleteStudio', deleteStudio_studioId - The studio ID.
Request Lenses
deleteStudio_clientToken :: Lens' DeleteStudio (Maybe Text) Source #
To make an idempotent API request using one of these actions, specify a client token in the request. You should not reuse the same client token for other API requests. If you retry a request that completed successfully using the same client token and the same parameters, the retry succeeds without performing any further actions. If you retry a successful request using the same client token, but one or more of the parameters are different, the retry fails with a ValidationException error.
deleteStudio_studioId :: Lens' DeleteStudio Text Source #
The studio ID.
Destructuring the Response
data DeleteStudioResponse Source #
See: newDeleteStudioResponse smart constructor.
Constructors
| DeleteStudioResponse' | |
Fields
| |
Instances
newDeleteStudioResponse Source #
Arguments
| :: Int | |
| -> DeleteStudioResponse |
Create a value of DeleteStudioResponse 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:studio:DeleteStudioResponse', deleteStudioResponse_studio - Information about a studio.
$sel:httpStatus:DeleteStudioResponse', deleteStudioResponse_httpStatus - The response's http status code.
Response Lenses
deleteStudioResponse_studio :: Lens' DeleteStudioResponse (Maybe Studio) Source #
Information about a studio.
deleteStudioResponse_httpStatus :: Lens' DeleteStudioResponse Int Source #
The response's http status code.