amazonka-oam-2.0: Amazon CloudWatch Observability Access Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.OAM.UpdateLink

Description

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

Creating a Request

data UpdateLink Source #

See: newUpdateLink smart constructor.

Constructors

UpdateLink' 

Fields

  • identifier :: Text

    The ARN of the link that you want to update.

  • resourceTypes :: NonEmpty ResourceType

    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.

Instances

newUpdateLink Source #

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.

Constructors

UpdateLinkResponse' 

Fields

Instances

Instances details
Generic UpdateLinkResponse Source # 
Instance details

Defined in Amazonka.OAM.UpdateLink

Associated Types

type Rep UpdateLinkResponse :: Type -> Type #

Read UpdateLinkResponse Source # 
Instance details

Defined in Amazonka.OAM.UpdateLink

Show UpdateLinkResponse Source # 
Instance details

Defined in Amazonka.OAM.UpdateLink

NFData UpdateLinkResponse Source # 
Instance details

Defined in Amazonka.OAM.UpdateLink

Methods

rnf :: UpdateLinkResponse -> () #

Eq UpdateLinkResponse Source # 
Instance details

Defined in Amazonka.OAM.UpdateLink

type Rep UpdateLinkResponse Source # 
Instance details

Defined in Amazonka.OAM.UpdateLink

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.