Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Describes the IAM role that enables Amazon Inspector to access your AWS account.
Synopsis
- data DescribeCrossAccountAccessRole = DescribeCrossAccountAccessRole' {
- newDescribeCrossAccountAccessRole :: DescribeCrossAccountAccessRole
- data DescribeCrossAccountAccessRoleResponse = DescribeCrossAccountAccessRoleResponse' {
- httpStatus :: Int
- roleArn :: Text
- valid :: Bool
- registeredAt :: POSIX
- newDescribeCrossAccountAccessRoleResponse :: Int -> Text -> Bool -> UTCTime -> DescribeCrossAccountAccessRoleResponse
- describeCrossAccountAccessRoleResponse_httpStatus :: Lens' DescribeCrossAccountAccessRoleResponse Int
- describeCrossAccountAccessRoleResponse_roleArn :: Lens' DescribeCrossAccountAccessRoleResponse Text
- describeCrossAccountAccessRoleResponse_valid :: Lens' DescribeCrossAccountAccessRoleResponse Bool
- describeCrossAccountAccessRoleResponse_registeredAt :: Lens' DescribeCrossAccountAccessRoleResponse UTCTime
Creating a Request
data DescribeCrossAccountAccessRole Source #
See: newDescribeCrossAccountAccessRole
smart constructor.
Instances
newDescribeCrossAccountAccessRole :: DescribeCrossAccountAccessRole Source #
Create a value of DescribeCrossAccountAccessRole
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Destructuring the Response
data DescribeCrossAccountAccessRoleResponse Source #
See: newDescribeCrossAccountAccessRoleResponse
smart constructor.
DescribeCrossAccountAccessRoleResponse' | |
|
Instances
newDescribeCrossAccountAccessRoleResponse Source #
:: Int | |
-> Text | |
-> Bool | |
-> UTCTime | |
-> DescribeCrossAccountAccessRoleResponse |
Create a value of DescribeCrossAccountAccessRoleResponse
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:httpStatus:DescribeCrossAccountAccessRoleResponse'
, describeCrossAccountAccessRoleResponse_httpStatus
- The response's http status code.
$sel:roleArn:DescribeCrossAccountAccessRoleResponse'
, describeCrossAccountAccessRoleResponse_roleArn
- The ARN that specifies the IAM role that Amazon Inspector uses to access
your AWS account.
$sel:valid:DescribeCrossAccountAccessRoleResponse'
, describeCrossAccountAccessRoleResponse_valid
- A Boolean value that specifies whether the IAM role has the necessary
policies attached to enable Amazon Inspector to access your AWS account.
$sel:registeredAt:DescribeCrossAccountAccessRoleResponse'
, describeCrossAccountAccessRoleResponse_registeredAt
- The date when the cross-account access role was registered.
Response Lenses
describeCrossAccountAccessRoleResponse_httpStatus :: Lens' DescribeCrossAccountAccessRoleResponse Int Source #
The response's http status code.
describeCrossAccountAccessRoleResponse_roleArn :: Lens' DescribeCrossAccountAccessRoleResponse Text Source #
The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.
describeCrossAccountAccessRoleResponse_valid :: Lens' DescribeCrossAccountAccessRoleResponse Bool Source #
A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
describeCrossAccountAccessRoleResponse_registeredAt :: Lens' DescribeCrossAccountAccessRoleResponse UTCTime Source #
The date when the cross-account access role was registered.