| 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.UpdateSchema
Description
Updates the schema name with a new name. Only development schema names can be updated.
Synopsis
- data UpdateSchema = UpdateSchema' {}
- newUpdateSchema :: Text -> Text -> UpdateSchema
- updateSchema_schemaArn :: Lens' UpdateSchema Text
- updateSchema_name :: Lens' UpdateSchema Text
- data UpdateSchemaResponse = UpdateSchemaResponse' {
- schemaArn :: Maybe Text
- httpStatus :: Int
- newUpdateSchemaResponse :: Int -> UpdateSchemaResponse
- updateSchemaResponse_schemaArn :: Lens' UpdateSchemaResponse (Maybe Text)
- updateSchemaResponse_httpStatus :: Lens' UpdateSchemaResponse Int
Creating a Request
data UpdateSchema Source #
See: newUpdateSchema smart constructor.
Constructors
| UpdateSchema' | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateSchema |
Create a value of UpdateSchema 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:
UpdateSchema, updateSchema_schemaArn - The Amazon Resource Name (ARN) of the development schema. For more
information, see arns.
UpdateSchema, updateSchema_name - The name of the schema.
Request Lenses
updateSchema_schemaArn :: Lens' UpdateSchema Text Source #
The Amazon Resource Name (ARN) of the development schema. For more information, see arns.
updateSchema_name :: Lens' UpdateSchema Text Source #
The name of the schema.
Destructuring the Response
data UpdateSchemaResponse Source #
See: newUpdateSchemaResponse smart constructor.
Constructors
| UpdateSchemaResponse' | |
Fields
| |
Instances
newUpdateSchemaResponse Source #
Arguments
| :: Int | |
| -> UpdateSchemaResponse |
Create a value of UpdateSchemaResponse 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:
UpdateSchema, updateSchemaResponse_schemaArn - The ARN that is associated with the updated schema. For more
information, see arns.
$sel:httpStatus:UpdateSchemaResponse', updateSchemaResponse_httpStatus - The response's http status code.
Response Lenses
updateSchemaResponse_schemaArn :: Lens' UpdateSchemaResponse (Maybe Text) Source #
The ARN that is associated with the updated schema. For more information, see arns.
updateSchemaResponse_httpStatus :: Lens' UpdateSchemaResponse Int Source #
The response's http status code.