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.CreateSink

Description

Use this to create a sink in the current account, so that it can be used as a monitoring account in CloudWatch cross-account observability. A sink is a resource that represents an attachment point in a monitoring account. Source accounts can link to the sink to send observability data.

After you create a sink, you must create a sink policy that allows source accounts to attach to it. For more information, see PutSinkPolicy.

Each account can contain one sink. If you delete a sink, you can then create a new one in that account.

Synopsis

Creating a Request

data CreateSink Source #

See: newCreateSink smart constructor.

Constructors

CreateSink' 

Fields

Instances

Instances details
ToJSON CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

ToHeaders CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

Methods

toHeaders :: CreateSink -> [Header] #

ToPath CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

ToQuery CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

AWSRequest CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

Associated Types

type AWSResponse CreateSink #

Generic CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

Associated Types

type Rep CreateSink :: Type -> Type #

Read CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

Show CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

NFData CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

Methods

rnf :: CreateSink -> () #

Eq CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

Hashable CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

type AWSResponse CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

type Rep CreateSink Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

type Rep CreateSink = D1 ('MetaData "CreateSink" "Amazonka.OAM.CreateSink" "amazonka-oam-2.0-2r3dTellrOe218sRY2Qi5h" 'False) (C1 ('MetaCons "CreateSink'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateSink Source #

Arguments

:: Text

CreateSink

-> CreateSink 

Create a value of CreateSink 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:

CreateSink, createSink_tags - Assigns one or more tags (key-value pairs) to the link.

Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

CreateSink, createSink_name - A name for the sink.

Request Lenses

createSink_tags :: Lens' CreateSink (Maybe (HashMap Text Text)) Source #

Assigns one or more tags (key-value pairs) to the link.

Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.

For more information about using tags to control access, see Controlling access to Amazon Web Services resources using tags.

createSink_name :: Lens' CreateSink Text Source #

A name for the sink.

Destructuring the Response

data CreateSinkResponse Source #

See: newCreateSinkResponse smart constructor.

Constructors

CreateSinkResponse' 

Fields

Instances

Instances details
Generic CreateSinkResponse Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

Associated Types

type Rep CreateSinkResponse :: Type -> Type #

Read CreateSinkResponse Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

Show CreateSinkResponse Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

NFData CreateSinkResponse Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

Methods

rnf :: CreateSinkResponse -> () #

Eq CreateSinkResponse Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

type Rep CreateSinkResponse Source # 
Instance details

Defined in Amazonka.OAM.CreateSink

newCreateSinkResponse Source #

Create a value of CreateSinkResponse 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:

CreateSinkResponse, createSinkResponse_arn - The ARN of the sink that is newly created.

CreateSinkResponse, createSinkResponse_id - The random ID string that Amazon Web Services generated as part of the sink ARN.

CreateSink, createSinkResponse_name - The name of the sink.

CreateSink, createSinkResponse_tags - The tags assigned to the sink.

$sel:httpStatus:CreateSinkResponse', createSinkResponse_httpStatus - The response's http status code.

Response Lenses

createSinkResponse_arn :: Lens' CreateSinkResponse (Maybe Text) Source #

The ARN of the sink that is newly created.

createSinkResponse_id :: Lens' CreateSinkResponse (Maybe Text) Source #

The random ID string that Amazon Web Services generated as part of the sink ARN.