libZSservicesZSamazonka-ssmZSamazonka-ssm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SSM.ModifyDocumentPermission

Description

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

Creating a Request

data ModifyDocumentPermission Source #

See: newModifyDocumentPermission smart constructor.

Constructors

ModifyDocumentPermission' 

Fields

  • sharedDocumentVersion :: Maybe Text

    (Optional) The version of the document to share. If it isn't specified, the system choose the Default version to share.

  • accountIdsToAdd :: Maybe [Text]

    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.

  • accountIdsToRemove :: Maybe [Text]

    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.

  • name :: Text

    The name of the document that you want to share.

  • permissionType :: DocumentPermissionType

    The permission type for the document. The permission type can be Share.

Instances

Instances details
Eq ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

Read ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

Show ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

Generic ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

Associated Types

type Rep ModifyDocumentPermission :: Type -> Type #

NFData ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

Hashable ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

ToJSON ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

AWSRequest ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

ToHeaders ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

ToPath ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

ToQuery ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

type Rep ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

type Rep ModifyDocumentPermission = D1 ('MetaData "ModifyDocumentPermission" "Amazonka.SSM.ModifyDocumentPermission" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "ModifyDocumentPermission'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sharedDocumentVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "accountIdsToAdd") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "accountIdsToRemove") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "permissionType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DocumentPermissionType)))))
type AWSResponse ModifyDocumentPermission Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

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.

Constructors

ModifyDocumentPermissionResponse' 

Fields

Instances

Instances details
Eq ModifyDocumentPermissionResponse Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

Read ModifyDocumentPermissionResponse Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

Show ModifyDocumentPermissionResponse Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

Generic ModifyDocumentPermissionResponse Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

Associated Types

type Rep ModifyDocumentPermissionResponse :: Type -> Type #

NFData ModifyDocumentPermissionResponse Source # 
Instance details

Defined in Amazonka.SSM.ModifyDocumentPermission

type Rep ModifyDocumentPermissionResponse Source # 
Instance details

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