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 the current sink policy attached to this sink. The sink policy specifies what accounts can attach to this sink as source accounts, and what types of data they can share.
Synopsis
- data GetSinkPolicy = GetSinkPolicy' {}
- newGetSinkPolicy :: Text -> GetSinkPolicy
- getSinkPolicy_sinkIdentifier :: Lens' GetSinkPolicy Text
- data GetSinkPolicyResponse = GetSinkPolicyResponse' {}
- newGetSinkPolicyResponse :: Int -> GetSinkPolicyResponse
- getSinkPolicyResponse_policy :: Lens' GetSinkPolicyResponse (Maybe Text)
- getSinkPolicyResponse_sinkArn :: Lens' GetSinkPolicyResponse (Maybe Text)
- getSinkPolicyResponse_sinkId :: Lens' GetSinkPolicyResponse (Maybe Text)
- getSinkPolicyResponse_httpStatus :: Lens' GetSinkPolicyResponse Int
Creating a Request
data GetSinkPolicy Source #
See: newGetSinkPolicy
smart constructor.
GetSinkPolicy' | |
|
Instances
Create a value of GetSinkPolicy
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:sinkIdentifier:GetSinkPolicy'
, getSinkPolicy_sinkIdentifier
- The ARN of the sink to retrieve the policy of.
Request Lenses
getSinkPolicy_sinkIdentifier :: Lens' GetSinkPolicy Text Source #
The ARN of the sink to retrieve the policy of.
Destructuring the Response
data GetSinkPolicyResponse Source #
See: newGetSinkPolicyResponse
smart constructor.
Instances
newGetSinkPolicyResponse Source #
Create a value of GetSinkPolicyResponse
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:policy:GetSinkPolicyResponse'
, getSinkPolicyResponse_policy
- The policy that you specified, in JSON format.
GetSinkPolicyResponse
, getSinkPolicyResponse_sinkArn
- The ARN of the sink.
$sel:sinkId:GetSinkPolicyResponse'
, getSinkPolicyResponse_sinkId
- The random ID string that Amazon Web Services generated as part of the
sink ARN.
$sel:httpStatus:GetSinkPolicyResponse'
, getSinkPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getSinkPolicyResponse_policy :: Lens' GetSinkPolicyResponse (Maybe Text) Source #
The policy that you specified, in JSON format.
getSinkPolicyResponse_sinkArn :: Lens' GetSinkPolicyResponse (Maybe Text) Source #
The ARN of the sink.
getSinkPolicyResponse_sinkId :: Lens' GetSinkPolicyResponse (Maybe Text) Source #
The random ID string that Amazon Web Services generated as part of the sink ARN.
getSinkPolicyResponse_httpStatus :: Lens' GetSinkPolicyResponse Int Source #
The response's http status code.