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 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
- data CreateSink = CreateSink' {}
- newCreateSink :: Text -> CreateSink
- createSink_tags :: Lens' CreateSink (Maybe (HashMap Text Text))
- createSink_name :: Lens' CreateSink Text
- data CreateSinkResponse = CreateSinkResponse' {}
- newCreateSinkResponse :: Int -> CreateSinkResponse
- createSinkResponse_arn :: Lens' CreateSinkResponse (Maybe Text)
- createSinkResponse_id :: Lens' CreateSinkResponse (Maybe Text)
- createSinkResponse_name :: Lens' CreateSinkResponse (Maybe Text)
- createSinkResponse_tags :: Lens' CreateSinkResponse (Maybe (HashMap Text Text))
- createSinkResponse_httpStatus :: Lens' CreateSinkResponse Int
Creating a Request
data CreateSink Source #
See: newCreateSink
smart constructor.
CreateSink' | |
|
Instances
:: Text | |
-> 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.
CreateSinkResponse' | |
|
Instances
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.
createSinkResponse_name :: Lens' CreateSinkResponse (Maybe Text) Source #
The name of the sink.
createSinkResponse_tags :: Lens' CreateSinkResponse (Maybe (HashMap Text Text)) Source #
The tags assigned to the sink.
createSinkResponse_httpStatus :: Lens' CreateSinkResponse Int Source #
The response's http status code.