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 |
Use this operation to change what types of data are shared from a source account to its linked monitoring account sink. You can't change the sink or change the monitoring account with this operation.
To update the list of tags associated with the sink, use TagResource.
Synopsis
- data UpdateLink = UpdateLink' {}
- newUpdateLink :: Text -> NonEmpty ResourceType -> UpdateLink
- updateLink_identifier :: Lens' UpdateLink Text
- updateLink_resourceTypes :: Lens' UpdateLink (NonEmpty ResourceType)
- data UpdateLinkResponse = UpdateLinkResponse' {}
- newUpdateLinkResponse :: Int -> UpdateLinkResponse
- updateLinkResponse_arn :: Lens' UpdateLinkResponse (Maybe Text)
- updateLinkResponse_id :: Lens' UpdateLinkResponse (Maybe Text)
- updateLinkResponse_label :: Lens' UpdateLinkResponse (Maybe Text)
- updateLinkResponse_labelTemplate :: Lens' UpdateLinkResponse (Maybe Text)
- updateLinkResponse_resourceTypes :: Lens' UpdateLinkResponse (Maybe [Text])
- updateLinkResponse_sinkArn :: Lens' UpdateLinkResponse (Maybe Text)
- updateLinkResponse_tags :: Lens' UpdateLinkResponse (Maybe (HashMap Text Text))
- updateLinkResponse_httpStatus :: Lens' UpdateLinkResponse Int
Creating a Request
data UpdateLink Source #
See: newUpdateLink
smart constructor.
UpdateLink' | |
|
Instances
Create a value of UpdateLink
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:UpdateLink'
, updateLink_identifier
- The ARN of the link that you want to update.
UpdateLink
, updateLink_resourceTypes
- An array of strings that define which types of data that the source
account will send to the monitoring account.
Your input here replaces the current set of data types that are shared.
Request Lenses
updateLink_identifier :: Lens' UpdateLink Text Source #
The ARN of the link that you want to update.
updateLink_resourceTypes :: Lens' UpdateLink (NonEmpty ResourceType) Source #
An array of strings that define which types of data that the source account will send to the monitoring account.
Your input here replaces the current set of data types that are shared.
Destructuring the Response
data UpdateLinkResponse Source #
See: newUpdateLinkResponse
smart constructor.
UpdateLinkResponse' | |
|
Instances
newUpdateLinkResponse Source #
Create a value of UpdateLinkResponse
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:
UpdateLinkResponse
, updateLinkResponse_arn
- The ARN of the link that you have updated.
UpdateLinkResponse
, updateLinkResponse_id
- The random ID string that Amazon Web Services generated as part of the
sink ARN.
UpdateLinkResponse
, updateLinkResponse_label
- The label assigned to this link, with the variables resolved to their
actual values.
$sel:labelTemplate:UpdateLinkResponse'
, updateLinkResponse_labelTemplate
- The exact label template that was specified when the link was created,
with the template variables not resolved.
UpdateLink
, updateLinkResponse_resourceTypes
- The resource types now supported by this link.
UpdateLinkResponse
, updateLinkResponse_sinkArn
- The ARN of the sink that is used for this link.
$sel:tags:UpdateLinkResponse'
, updateLinkResponse_tags
- The tags assigned to the link.
$sel:httpStatus:UpdateLinkResponse'
, updateLinkResponse_httpStatus
- The response's http status code.
Response Lenses
updateLinkResponse_arn :: Lens' UpdateLinkResponse (Maybe Text) Source #
The ARN of the link that you have updated.
updateLinkResponse_id :: Lens' UpdateLinkResponse (Maybe Text) Source #
The random ID string that Amazon Web Services generated as part of the sink ARN.
updateLinkResponse_label :: Lens' UpdateLinkResponse (Maybe Text) Source #
The label assigned to this link, with the variables resolved to their actual values.
updateLinkResponse_labelTemplate :: Lens' UpdateLinkResponse (Maybe Text) Source #
The exact label template that was specified when the link was created, with the template variables not resolved.
updateLinkResponse_resourceTypes :: Lens' UpdateLinkResponse (Maybe [Text]) Source #
The resource types now supported by this link.
updateLinkResponse_sinkArn :: Lens' UpdateLinkResponse (Maybe Text) Source #
The ARN of the sink that is used for this link.
updateLinkResponse_tags :: Lens' UpdateLinkResponse (Maybe (HashMap Text Text)) Source #
The tags assigned to the link.
updateLinkResponse_httpStatus :: Lens' UpdateLinkResponse Int Source #
The response's http status code.