| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudDirectory.DeleteSchema
Description
Deletes a given schema. Schemas in a development and published state can only be deleted.
Synopsis
- data DeleteSchema = DeleteSchema' {}
- newDeleteSchema :: Text -> DeleteSchema
- deleteSchema_schemaArn :: Lens' DeleteSchema Text
- data DeleteSchemaResponse = DeleteSchemaResponse' {
- schemaArn :: Maybe Text
- httpStatus :: Int
- newDeleteSchemaResponse :: Int -> DeleteSchemaResponse
- deleteSchemaResponse_schemaArn :: Lens' DeleteSchemaResponse (Maybe Text)
- deleteSchemaResponse_httpStatus :: Lens' DeleteSchemaResponse Int
Creating a Request
data DeleteSchema Source #
See: newDeleteSchema smart constructor.
Constructors
| DeleteSchema' | |
Instances
Arguments
| :: Text | |
| -> DeleteSchema |
Create a value of DeleteSchema 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:
DeleteSchema, deleteSchema_schemaArn - The Amazon Resource Name (ARN) of the development schema. For more
information, see arns.
Request Lenses
deleteSchema_schemaArn :: Lens' DeleteSchema Text Source #
The Amazon Resource Name (ARN) of the development schema. For more information, see arns.
Destructuring the Response
data DeleteSchemaResponse Source #
See: newDeleteSchemaResponse smart constructor.
Constructors
| DeleteSchemaResponse' | |
Fields
| |
Instances
newDeleteSchemaResponse Source #
Arguments
| :: Int | |
| -> DeleteSchemaResponse |
Create a value of DeleteSchemaResponse 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:
DeleteSchema, deleteSchemaResponse_schemaArn - The input ARN that is returned as part of the response. For more
information, see arns.
$sel:httpStatus:DeleteSchemaResponse', deleteSchemaResponse_httpStatus - The response's http status code.
Response Lenses
deleteSchemaResponse_schemaArn :: Lens' DeleteSchemaResponse (Maybe Text) Source #
The input ARN that is returned as part of the response. For more information, see arns.
deleteSchemaResponse_httpStatus :: Lens' DeleteSchemaResponse Int Source #
The response's http status code.