| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.SSM.DescribeDocumentPermission
Description
Describes the permissions for a Systems Manager document. If you created the document, you are the owner. If a document is shared, it can either be shared privately (by specifying a user's AWS account ID) or publicly (All ).
- describeDocumentPermission :: Text -> DocumentPermissionType -> DescribeDocumentPermission
- data DescribeDocumentPermission
- ddpName :: Lens' DescribeDocumentPermission Text
- ddpPermissionType :: Lens' DescribeDocumentPermission DocumentPermissionType
- describeDocumentPermissionResponse :: Int -> DescribeDocumentPermissionResponse
- data DescribeDocumentPermissionResponse
- ddprsAccountIds :: Lens' DescribeDocumentPermissionResponse [Text]
- ddprsResponseStatus :: Lens' DescribeDocumentPermissionResponse Int
Creating a Request
describeDocumentPermission Source #
Creates a value of DescribeDocumentPermission with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ddpName- The name of the document for which you are the owner.ddpPermissionType- The permission type for the document. The permission type can be Share .
data DescribeDocumentPermission Source #
See: describeDocumentPermission smart constructor.
Instances
Request Lenses
ddpName :: Lens' DescribeDocumentPermission Text Source #
The name of the document for which you are the owner.
ddpPermissionType :: Lens' DescribeDocumentPermission DocumentPermissionType Source #
The permission type for the document. The permission type can be Share .
Destructuring the Response
describeDocumentPermissionResponse Source #
Arguments
| :: Int | |
| -> DescribeDocumentPermissionResponse |
Creates a value of DescribeDocumentPermissionResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ddprsAccountIds- The account IDs that have permission to use this document. The ID can be either an AWS account or All .ddprsResponseStatus- -- | The response status code.
data DescribeDocumentPermissionResponse Source #
See: describeDocumentPermissionResponse smart constructor.
Instances
Response Lenses
ddprsAccountIds :: Lens' DescribeDocumentPermissionResponse [Text] Source #
The account IDs that have permission to use this document. The ID can be either an AWS account or All .
ddprsResponseStatus :: Lens' DescribeDocumentPermissionResponse Int Source #
- - | The response status code.