| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CloudDirectory.ApplySchema
Description
Copies the input published schema, at the specified version, into the Directory with the same name and version as that of the published schema.
Synopsis
- applySchema :: Text -> Text -> ApplySchema
- data ApplySchema
- asPublishedSchemaARN :: Lens' ApplySchema Text
- asDirectoryARN :: Lens' ApplySchema Text
- applySchemaResponse :: Int -> ApplySchemaResponse
- data ApplySchemaResponse
- asrsDirectoryARN :: Lens' ApplySchemaResponse (Maybe Text)
- asrsAppliedSchemaARN :: Lens' ApplySchemaResponse (Maybe Text)
- asrsResponseStatus :: Lens' ApplySchemaResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> ApplySchema |
Creates a value of ApplySchema with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asPublishedSchemaARN- Published schema Amazon Resource Name (ARN) that needs to be copied. For more information, seearns.asDirectoryARN- The Amazon Resource Name (ARN) that is associated with theDirectoryinto which the schema is copied. For more information, seearns.
data ApplySchema Source #
See: applySchema smart constructor.
Instances
Request Lenses
asPublishedSchemaARN :: Lens' ApplySchema Text Source #
Published schema Amazon Resource Name (ARN) that needs to be copied. For more information, see arns .
asDirectoryARN :: Lens' ApplySchema Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory into which the schema is copied. For more information, see arns .
Destructuring the Response
Arguments
| :: Int | |
| -> ApplySchemaResponse |
Creates a value of ApplySchemaResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
asrsDirectoryARN- The ARN that is associated with theDirectory. For more information, seearns.asrsAppliedSchemaARN- The applied schema ARN that is associated with the copied schema in theDirectory. You can use this ARN to describe the schema information applied on this directory. For more information, seearns.asrsResponseStatus- -- | The response status code.
data ApplySchemaResponse Source #
See: applySchemaResponse smart constructor.
Instances
Response Lenses
asrsDirectoryARN :: Lens' ApplySchemaResponse (Maybe Text) Source #
The ARN that is associated with the Directory . For more information, see arns .
asrsAppliedSchemaARN :: Lens' ApplySchemaResponse (Maybe Text) Source #
The applied schema ARN that is associated with the copied schema in the Directory . You can use this ARN to describe the schema information applied on this directory. For more information, see arns .
asrsResponseStatus :: Lens' ApplySchemaResponse Int Source #
- - | The response status code.