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 |
Shares a Amazon Web Services Systems Manager document (SSM document)publicly or privately. If you share a document privately, you must specify the Amazon Web Services user account IDs for those people who can use the document. If you share a document publicly, you must specify All as the account ID.
Synopsis
- data ModifyDocumentPermission = ModifyDocumentPermission' {}
- newModifyDocumentPermission :: Text -> DocumentPermissionType -> ModifyDocumentPermission
- modifyDocumentPermission_sharedDocumentVersion :: Lens' ModifyDocumentPermission (Maybe Text)
- modifyDocumentPermission_accountIdsToAdd :: Lens' ModifyDocumentPermission (Maybe [Text])
- modifyDocumentPermission_accountIdsToRemove :: Lens' ModifyDocumentPermission (Maybe [Text])
- modifyDocumentPermission_name :: Lens' ModifyDocumentPermission Text
- modifyDocumentPermission_permissionType :: Lens' ModifyDocumentPermission DocumentPermissionType
- data ModifyDocumentPermissionResponse = ModifyDocumentPermissionResponse' {
- httpStatus :: Int
- newModifyDocumentPermissionResponse :: Int -> ModifyDocumentPermissionResponse
- modifyDocumentPermissionResponse_httpStatus :: Lens' ModifyDocumentPermissionResponse Int
Creating a Request
data ModifyDocumentPermission Source #
See: newModifyDocumentPermission
smart constructor.
ModifyDocumentPermission' | |
|
Instances
newModifyDocumentPermission Source #
Create a value of ModifyDocumentPermission
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:sharedDocumentVersion:ModifyDocumentPermission'
, modifyDocumentPermission_sharedDocumentVersion
- (Optional) The version of the document to share. If it isn't specified,
the system choose the Default
version to share.
$sel:accountIdsToAdd:ModifyDocumentPermission'
, modifyDocumentPermission_accountIdsToAdd
- The Amazon Web Services user accounts that should have access to the
document. The account IDs can either be a group of account IDs or All.
$sel:accountIdsToRemove:ModifyDocumentPermission'
, modifyDocumentPermission_accountIdsToRemove
- The Amazon Web Services user accounts that should no longer have access
to the document. The Amazon Web Services user account can either be a
group of account IDs or All. This action has a higher priority than
AccountIdsToAdd. If you specify an account ID to add and the same ID
to remove, the system removes access to the document.
$sel:name:ModifyDocumentPermission'
, modifyDocumentPermission_name
- The name of the document that you want to share.
$sel:permissionType:ModifyDocumentPermission'
, modifyDocumentPermission_permissionType
- The permission type for the document. The permission type can be
Share.
Request Lenses
modifyDocumentPermission_sharedDocumentVersion :: Lens' ModifyDocumentPermission (Maybe Text) Source #
(Optional) The version of the document to share. If it isn't specified,
the system choose the Default
version to share.
modifyDocumentPermission_accountIdsToAdd :: Lens' ModifyDocumentPermission (Maybe [Text]) Source #
The Amazon Web Services user accounts that should have access to the document. The account IDs can either be a group of account IDs or All.
modifyDocumentPermission_accountIdsToRemove :: Lens' ModifyDocumentPermission (Maybe [Text]) Source #
The Amazon Web Services user accounts that should no longer have access to the document. The Amazon Web Services user account can either be a group of account IDs or All. This action has a higher priority than AccountIdsToAdd. If you specify an account ID to add and the same ID to remove, the system removes access to the document.
modifyDocumentPermission_name :: Lens' ModifyDocumentPermission Text Source #
The name of the document that you want to share.
modifyDocumentPermission_permissionType :: Lens' ModifyDocumentPermission DocumentPermissionType Source #
The permission type for the document. The permission type can be Share.
Destructuring the Response
data ModifyDocumentPermissionResponse Source #
See: newModifyDocumentPermissionResponse
smart constructor.
ModifyDocumentPermissionResponse' | |
|
Instances
Eq ModifyDocumentPermissionResponse Source # | |
Read ModifyDocumentPermissionResponse Source # | |
Show ModifyDocumentPermissionResponse Source # | |
Defined in Amazonka.SSM.ModifyDocumentPermission | |
Generic ModifyDocumentPermissionResponse Source # | |
NFData ModifyDocumentPermissionResponse Source # | |
Defined in Amazonka.SSM.ModifyDocumentPermission rnf :: ModifyDocumentPermissionResponse -> () # | |
type Rep ModifyDocumentPermissionResponse Source # | |
Defined in Amazonka.SSM.ModifyDocumentPermission type Rep ModifyDocumentPermissionResponse = D1 ('MetaData "ModifyDocumentPermissionResponse" "Amazonka.SSM.ModifyDocumentPermission" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "ModifyDocumentPermissionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newModifyDocumentPermissionResponse Source #
Create a value of ModifyDocumentPermissionResponse
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:ModifyDocumentPermissionResponse'
, modifyDocumentPermissionResponse_httpStatus
- The response's http status code.
Response Lenses
modifyDocumentPermissionResponse_httpStatus :: Lens' ModifyDocumentPermissionResponse Int Source #
The response's http status code.