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 |
Creates a Directory by copying the published schema into the directory. A directory cannot be created without a schema.
You can also quickly create a directory using a managed schema, called
the QuickStartSchema
. For more information, see
Managed Schema
in the Amazon Cloud Directory Developer Guide.
Synopsis
- data CreateDirectory = CreateDirectory' {}
- newCreateDirectory :: Text -> Text -> CreateDirectory
- createDirectory_name :: Lens' CreateDirectory Text
- createDirectory_schemaArn :: Lens' CreateDirectory Text
- data CreateDirectoryResponse = CreateDirectoryResponse' {
- httpStatus :: Int
- directoryArn :: Text
- name :: Text
- objectIdentifier :: Text
- appliedSchemaArn :: Text
- newCreateDirectoryResponse :: Int -> Text -> Text -> Text -> Text -> CreateDirectoryResponse
- createDirectoryResponse_httpStatus :: Lens' CreateDirectoryResponse Int
- createDirectoryResponse_directoryArn :: Lens' CreateDirectoryResponse Text
- createDirectoryResponse_name :: Lens' CreateDirectoryResponse Text
- createDirectoryResponse_objectIdentifier :: Lens' CreateDirectoryResponse Text
- createDirectoryResponse_appliedSchemaArn :: Lens' CreateDirectoryResponse Text
Creating a Request
data CreateDirectory Source #
See: newCreateDirectory
smart constructor.
Instances
Create a value of CreateDirectory
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:name:CreateDirectory'
, createDirectory_name
- The name of the Directory. Should be unique per account, per region.
$sel:schemaArn:CreateDirectory'
, createDirectory_schemaArn
- The Amazon Resource Name (ARN) of the published schema that will be
copied into the data Directory. For more information, see arns.
Request Lenses
createDirectory_name :: Lens' CreateDirectory Text Source #
The name of the Directory. Should be unique per account, per region.
createDirectory_schemaArn :: 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
data CreateDirectoryResponse Source #
See: newCreateDirectoryResponse
smart constructor.
CreateDirectoryResponse' | |
|
Instances
newCreateDirectoryResponse Source #
Create a value of CreateDirectoryResponse
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:httpStatus:CreateDirectoryResponse'
, createDirectoryResponse_httpStatus
- The response's http status code.
$sel:directoryArn:CreateDirectoryResponse'
, createDirectoryResponse_directoryArn
- The ARN that is associated with the Directory. For more information, see
arns.
$sel:name:CreateDirectory'
, createDirectoryResponse_name
- The name of the Directory.
$sel:objectIdentifier:CreateDirectoryResponse'
, createDirectoryResponse_objectIdentifier
- The root object node of the created directory.
$sel:appliedSchemaArn:CreateDirectoryResponse'
, createDirectoryResponse_appliedSchemaArn
- 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.
Response Lenses
createDirectoryResponse_httpStatus :: Lens' CreateDirectoryResponse Int Source #
The response's http status code.
createDirectoryResponse_directoryArn :: Lens' CreateDirectoryResponse Text Source #
The ARN that is associated with the Directory. For more information, see arns.
createDirectoryResponse_name :: Lens' CreateDirectoryResponse Text Source #
The name of the Directory.
createDirectoryResponse_objectIdentifier :: Lens' CreateDirectoryResponse Text Source #
The root object node of the created directory.
createDirectoryResponse_appliedSchemaArn :: 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.