| 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.CreateDirectory
Description
Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema.
- createDirectory :: Text -> Text -> CreateDirectory
- data CreateDirectory
- cdName :: Lens' CreateDirectory Text
- cdSchemaARN :: Lens' CreateDirectory Text
- createDirectoryResponse :: Int -> Text -> Text -> Text -> Text -> CreateDirectoryResponse
- data CreateDirectoryResponse
- cdrsResponseStatus :: Lens' CreateDirectoryResponse Int
- cdrsDirectoryARN :: Lens' CreateDirectoryResponse Text
- cdrsName :: Lens' CreateDirectoryResponse Text
- cdrsObjectIdentifier :: Lens' CreateDirectoryResponse Text
- cdrsAppliedSchemaARN :: Lens' CreateDirectoryResponse Text
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> CreateDirectory |
Creates a value of CreateDirectory with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdName- The name of theDirectory. Should be unique per account, per region.cdSchemaARN- The Amazon Resource Name (ARN) of the published schema that will be copied into the dataDirectory. For more information, seearns.
data CreateDirectory Source #
See: createDirectory smart constructor.
Instances
Request Lenses
cdName :: Lens' CreateDirectory Text Source #
The name of the Directory . Should be unique per account, per region.
cdSchemaARN :: Lens' CreateDirectory Text Source #
The Amazon Resource Name (ARN) of the published schema that will be copied into the data Directory . For more information, see arns .
Destructuring the Response
createDirectoryResponse Source #
Creates a value of CreateDirectoryResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdrsResponseStatus- -- | The response status code.cdrsDirectoryARN- The ARN that is associated with theDirectory. For more information, seearns.cdrsName- The name of theDirectory.cdrsObjectIdentifier- The root object node of the created directory.cdrsAppliedSchemaARN- The ARN of the published schema in theDirectory. Once a published schema is copied into the directory, it has its own ARN, which is referred to applied schema ARN. For more information, seearns.
data CreateDirectoryResponse Source #
See: createDirectoryResponse smart constructor.
Response Lenses
cdrsResponseStatus :: Lens' CreateDirectoryResponse Int Source #
- - | The response status code.
cdrsDirectoryARN :: Lens' CreateDirectoryResponse Text Source #
The ARN that is associated with the Directory . For more information, see arns .
cdrsObjectIdentifier :: Lens' CreateDirectoryResponse Text Source #
The root object node of the created directory.
cdrsAppliedSchemaARN :: Lens' CreateDirectoryResponse Text Source #
The ARN of the published schema in the Directory . Once a published schema is copied into the directory, it has its own ARN, which is referred to applied schema ARN. For more information, see arns .