| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudDirectory.AttachTypedLink
Description
Attaches a typed link to a specified source and target object. For more information, see Typed Links.
Synopsis
- data AttachTypedLink = AttachTypedLink' {}
- newAttachTypedLink :: Text -> ObjectReference -> ObjectReference -> TypedLinkSchemaAndFacetName -> AttachTypedLink
- attachTypedLink_directoryArn :: Lens' AttachTypedLink Text
- attachTypedLink_sourceObjectReference :: Lens' AttachTypedLink ObjectReference
- attachTypedLink_targetObjectReference :: Lens' AttachTypedLink ObjectReference
- attachTypedLink_typedLinkFacet :: Lens' AttachTypedLink TypedLinkSchemaAndFacetName
- attachTypedLink_attributes :: Lens' AttachTypedLink [AttributeNameAndValue]
- data AttachTypedLinkResponse = AttachTypedLinkResponse' {}
- newAttachTypedLinkResponse :: Int -> AttachTypedLinkResponse
- attachTypedLinkResponse_typedLinkSpecifier :: Lens' AttachTypedLinkResponse (Maybe TypedLinkSpecifier)
- attachTypedLinkResponse_httpStatus :: Lens' AttachTypedLinkResponse Int
Creating a Request
data AttachTypedLink Source #
See: newAttachTypedLink smart constructor.
Constructors
| AttachTypedLink' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ObjectReference | |
| -> ObjectReference | |
| -> TypedLinkSchemaAndFacetName | |
| -> AttachTypedLink |
Create a value of AttachTypedLink 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:
AttachTypedLink, attachTypedLink_directoryArn - The Amazon Resource Name (ARN) of the directory where you want to attach
the typed link.
AttachTypedLink, attachTypedLink_sourceObjectReference - Identifies the source object that the typed link will attach to.
AttachTypedLink, attachTypedLink_targetObjectReference - Identifies the target object that the typed link will attach to.
AttachTypedLink, attachTypedLink_typedLinkFacet - Identifies the typed link facet that is associated with the typed link.
AttachTypedLink, attachTypedLink_attributes - A set of attributes that are associated with the typed link.
Request Lenses
attachTypedLink_directoryArn :: Lens' AttachTypedLink Text Source #
The Amazon Resource Name (ARN) of the directory where you want to attach the typed link.
attachTypedLink_sourceObjectReference :: Lens' AttachTypedLink ObjectReference Source #
Identifies the source object that the typed link will attach to.
attachTypedLink_targetObjectReference :: Lens' AttachTypedLink ObjectReference Source #
Identifies the target object that the typed link will attach to.
attachTypedLink_typedLinkFacet :: Lens' AttachTypedLink TypedLinkSchemaAndFacetName Source #
Identifies the typed link facet that is associated with the typed link.
attachTypedLink_attributes :: Lens' AttachTypedLink [AttributeNameAndValue] Source #
A set of attributes that are associated with the typed link.
Destructuring the Response
data AttachTypedLinkResponse Source #
See: newAttachTypedLinkResponse smart constructor.
Constructors
| AttachTypedLinkResponse' | |
Fields
| |
Instances
newAttachTypedLinkResponse Source #
Create a value of AttachTypedLinkResponse 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:
AttachTypedLinkResponse, attachTypedLinkResponse_typedLinkSpecifier - Returns a typed link specifier as output.
$sel:httpStatus:AttachTypedLinkResponse', attachTypedLinkResponse_httpStatus - The response's http status code.
Response Lenses
attachTypedLinkResponse_typedLinkSpecifier :: Lens' AttachTypedLinkResponse (Maybe TypedLinkSpecifier) Source #
Returns a typed link specifier as output.
attachTypedLinkResponse_httpStatus :: Lens' AttachTypedLinkResponse Int Source #
The response's http status code.