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 |
Creates an object in a Directory
. Additionally attaches the object to a parent, if a parent reference and LinkName
is specified. An object is simply a collection of Facet
attributes. You can also use this API call to create a policy object, if the facet from which you create the object is a policy facet.
Synopsis
- createObject :: Text -> CreateObject
- data CreateObject
- coParentReference :: Lens' CreateObject (Maybe ObjectReference)
- coObjectAttributeList :: Lens' CreateObject [AttributeKeyAndValue]
- coLinkName :: Lens' CreateObject (Maybe Text)
- coDirectoryARN :: Lens' CreateObject Text
- coSchemaFacets :: Lens' CreateObject [SchemaFacet]
- createObjectResponse :: Int -> CreateObjectResponse
- data CreateObjectResponse
- corsObjectIdentifier :: Lens' CreateObjectResponse (Maybe Text)
- corsResponseStatus :: Lens' CreateObjectResponse Int
Creating a Request
Creates a value of CreateObject
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
coParentReference
- If specified, the parent reference to which this object will be attached.coObjectAttributeList
- The attribute map whose attribute ARN contains the key and attribute value as the map value.coLinkName
- The name of link that is used to attach this object to a parent.coDirectoryARN
- The Amazon Resource Name (ARN) that is associated with theDirectory
in which the object will be created. For more information, seearns
.coSchemaFacets
- A list of schema facets to be associated with the object. Do not provide minor version components. SeeSchemaFacet
for details.
data CreateObject Source #
See: createObject
smart constructor.
Instances
Request Lenses
coParentReference :: Lens' CreateObject (Maybe ObjectReference) Source #
If specified, the parent reference to which this object will be attached.
coObjectAttributeList :: Lens' CreateObject [AttributeKeyAndValue] Source #
The attribute map whose attribute ARN contains the key and attribute value as the map value.
coLinkName :: Lens' CreateObject (Maybe Text) Source #
The name of link that is used to attach this object to a parent.
coDirectoryARN :: Lens' CreateObject Text Source #
The Amazon Resource Name (ARN) that is associated with the Directory
in which the object will be created. For more information, see arns
.
coSchemaFacets :: Lens' CreateObject [SchemaFacet] Source #
A list of schema facets to be associated with the object. Do not provide minor version components. See SchemaFacet
for details.
Destructuring the Response
Creates a value of CreateObjectResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
corsObjectIdentifier
- The identifier that is associated with the object.corsResponseStatus
- -- | The response status code.
data CreateObjectResponse Source #
See: createObjectResponse
smart constructor.
Instances
Response Lenses
corsObjectIdentifier :: Lens' CreateObjectResponse (Maybe Text) Source #
The identifier that is associated with the object.
corsResponseStatus :: Lens' CreateObjectResponse Int Source #
- - | The response status code.