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 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
- data CreateObject = CreateObject' {}
- newCreateObject :: Text -> CreateObject
- createObject_parentReference :: Lens' CreateObject (Maybe ObjectReference)
- createObject_objectAttributeList :: Lens' CreateObject (Maybe [AttributeKeyAndValue])
- createObject_linkName :: Lens' CreateObject (Maybe Text)
- createObject_directoryArn :: Lens' CreateObject Text
- createObject_schemaFacets :: Lens' CreateObject [SchemaFacet]
- data CreateObjectResponse = CreateObjectResponse' {}
- newCreateObjectResponse :: Int -> CreateObjectResponse
- createObjectResponse_objectIdentifier :: Lens' CreateObjectResponse (Maybe Text)
- createObjectResponse_httpStatus :: Lens' CreateObjectResponse Int
Creating a Request
data CreateObject Source #
See: newCreateObject
smart constructor.
CreateObject' | |
|
Instances
Create a value of CreateObject
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:parentReference:CreateObject'
, createObject_parentReference
- If specified, the parent reference to which this object will be
attached.
$sel:objectAttributeList:CreateObject'
, createObject_objectAttributeList
- The attribute map whose attribute ARN contains the key and attribute
value as the map value.
$sel:linkName:CreateObject'
, createObject_linkName
- The name of link that is used to attach this object to a parent.
$sel:directoryArn:CreateObject'
, createObject_directoryArn
- The Amazon Resource Name (ARN) that is associated with the Directory in
which the object will be created. For more information, see arns.
$sel:schemaFacets:CreateObject'
, createObject_schemaFacets
- A list of schema facets to be associated with the object. Do not provide
minor version components. See SchemaFacet for details.
Request Lenses
createObject_parentReference :: Lens' CreateObject (Maybe ObjectReference) Source #
If specified, the parent reference to which this object will be attached.
createObject_objectAttributeList :: Lens' CreateObject (Maybe [AttributeKeyAndValue]) Source #
The attribute map whose attribute ARN contains the key and attribute value as the map value.
createObject_linkName :: Lens' CreateObject (Maybe Text) Source #
The name of link that is used to attach this object to a parent.
createObject_directoryArn :: 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.
createObject_schemaFacets :: 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
data CreateObjectResponse Source #
See: newCreateObjectResponse
smart constructor.
CreateObjectResponse' | |
|
Instances
newCreateObjectResponse Source #
Create a value of CreateObjectResponse
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:objectIdentifier:CreateObjectResponse'
, createObjectResponse_objectIdentifier
- The identifier that is associated with the object.
$sel:httpStatus:CreateObjectResponse'
, createObjectResponse_httpStatus
- The response's http status code.
Response Lenses
createObjectResponse_objectIdentifier :: Lens' CreateObjectResponse (Maybe Text) Source #
The identifier that is associated with the object.
createObjectResponse_httpStatus :: Lens' CreateObjectResponse Int Source #
The response's http status code.