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 |
Returns complete information about one link.
To use this operation, provide the link ARN. To retrieve a list of link ARNs, use ListLinks.
Synopsis
- data GetLink = GetLink' {
- identifier :: Text
- newGetLink :: Text -> GetLink
- getLink_identifier :: Lens' GetLink Text
- data GetLinkResponse = GetLinkResponse' {}
- newGetLinkResponse :: Int -> GetLinkResponse
- getLinkResponse_arn :: Lens' GetLinkResponse (Maybe Text)
- getLinkResponse_id :: Lens' GetLinkResponse (Maybe Text)
- getLinkResponse_label :: Lens' GetLinkResponse (Maybe Text)
- getLinkResponse_labelTemplate :: Lens' GetLinkResponse (Maybe Text)
- getLinkResponse_resourceTypes :: Lens' GetLinkResponse (Maybe [Text])
- getLinkResponse_sinkArn :: Lens' GetLinkResponse (Maybe Text)
- getLinkResponse_tags :: Lens' GetLinkResponse (Maybe (HashMap Text Text))
- getLinkResponse_httpStatus :: Lens' GetLinkResponse Int
Creating a Request
See: newGetLink
smart constructor.
GetLink' | |
|
Instances
ToJSON GetLink Source # | |
Defined in Amazonka.OAM.GetLink | |
ToHeaders GetLink Source # | |
Defined in Amazonka.OAM.GetLink | |
ToPath GetLink Source # | |
Defined in Amazonka.OAM.GetLink toPath :: GetLink -> ByteString # | |
ToQuery GetLink Source # | |
Defined in Amazonka.OAM.GetLink toQuery :: GetLink -> QueryString # | |
AWSRequest GetLink Source # | |
Defined in Amazonka.OAM.GetLink type AWSResponse GetLink # request :: (Service -> Service) -> GetLink -> Request GetLink # response :: MonadResource m => (ByteStringLazy -> IO ByteStringLazy) -> Service -> Proxy GetLink -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetLink))) # | |
Generic GetLink Source # | |
Read GetLink Source # | |
Show GetLink Source # | |
NFData GetLink Source # | |
Defined in Amazonka.OAM.GetLink | |
Eq GetLink Source # | |
Hashable GetLink Source # | |
Defined in Amazonka.OAM.GetLink | |
type AWSResponse GetLink Source # | |
Defined in Amazonka.OAM.GetLink | |
type Rep GetLink Source # | |
Defined in Amazonka.OAM.GetLink |
Create a value of GetLink
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:identifier:GetLink'
, getLink_identifier
- The ARN of the link to retrieve information for.
Request Lenses
Destructuring the Response
data GetLinkResponse Source #
See: newGetLinkResponse
smart constructor.
GetLinkResponse' | |
|
Instances
Create a value of GetLinkResponse
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:
GetLinkResponse
, getLinkResponse_arn
- The ARN of the link.
GetLinkResponse
, getLinkResponse_id
- The random ID string that Amazon Web Services generated as part of the
link ARN.
GetLinkResponse
, getLinkResponse_label
- The label that you assigned to this link, with the variables resolved to
their actual values.
$sel:labelTemplate:GetLinkResponse'
, getLinkResponse_labelTemplate
- The exact label template that was specified when the link was created,
with the template variables not resolved.
GetLinkResponse
, getLinkResponse_resourceTypes
- The resource types supported by this link.
GetLinkResponse
, getLinkResponse_sinkArn
- The ARN of the sink that is used for this link.
$sel:tags:GetLinkResponse'
, getLinkResponse_tags
- The tags assigned to the link.
$sel:httpStatus:GetLinkResponse'
, getLinkResponse_httpStatus
- The response's http status code.
Response Lenses
getLinkResponse_arn :: Lens' GetLinkResponse (Maybe Text) Source #
The ARN of the link.
getLinkResponse_id :: Lens' GetLinkResponse (Maybe Text) Source #
The random ID string that Amazon Web Services generated as part of the link ARN.
getLinkResponse_label :: Lens' GetLinkResponse (Maybe Text) Source #
The label that you assigned to this link, with the variables resolved to their actual values.
getLinkResponse_labelTemplate :: Lens' GetLinkResponse (Maybe Text) Source #
The exact label template that was specified when the link was created, with the template variables not resolved.
getLinkResponse_resourceTypes :: Lens' GetLinkResponse (Maybe [Text]) Source #
The resource types supported by this link.
getLinkResponse_sinkArn :: Lens' GetLinkResponse (Maybe Text) Source #
The ARN of the sink that is used for this link.
getLinkResponse_tags :: Lens' GetLinkResponse (Maybe (HashMap Text Text)) Source #
The tags assigned to the link.
getLinkResponse_httpStatus :: Lens' GetLinkResponse Int Source #
The response's http status code.