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 |
Create a workload share.
The owner of a workload can share it with other AWS accounts and IAM users in the same AWS Region. Shared access to a workload is not removed until the workload invitation is deleted.
For more information, see Sharing a Workload in the AWS Well-Architected Tool User Guide.
Synopsis
- data CreateWorkloadShare = CreateWorkloadShare' {}
- newCreateWorkloadShare :: Text -> Text -> PermissionType -> Text -> CreateWorkloadShare
- createWorkloadShare_workloadId :: Lens' CreateWorkloadShare Text
- createWorkloadShare_sharedWith :: Lens' CreateWorkloadShare Text
- createWorkloadShare_permissionType :: Lens' CreateWorkloadShare PermissionType
- createWorkloadShare_clientRequestToken :: Lens' CreateWorkloadShare Text
- data CreateWorkloadShareResponse = CreateWorkloadShareResponse' {
- workloadId :: Maybe Text
- shareId :: Maybe Text
- httpStatus :: Int
- newCreateWorkloadShareResponse :: Int -> CreateWorkloadShareResponse
- createWorkloadShareResponse_workloadId :: Lens' CreateWorkloadShareResponse (Maybe Text)
- createWorkloadShareResponse_shareId :: Lens' CreateWorkloadShareResponse (Maybe Text)
- createWorkloadShareResponse_httpStatus :: Lens' CreateWorkloadShareResponse Int
Creating a Request
data CreateWorkloadShare Source #
Input for Create Workload Share
See: newCreateWorkloadShare
smart constructor.
Instances
newCreateWorkloadShare Source #
:: Text | |
-> Text | |
-> PermissionType | |
-> Text | |
-> CreateWorkloadShare |
Create a value of CreateWorkloadShare
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:workloadId:CreateWorkloadShare'
, createWorkloadShare_workloadId
- Undocumented member.
$sel:sharedWith:CreateWorkloadShare'
, createWorkloadShare_sharedWith
- Undocumented member.
$sel:permissionType:CreateWorkloadShare'
, createWorkloadShare_permissionType
- Undocumented member.
$sel:clientRequestToken:CreateWorkloadShare'
, createWorkloadShare_clientRequestToken
- Undocumented member.
Request Lenses
createWorkloadShare_workloadId :: Lens' CreateWorkloadShare Text Source #
Undocumented member.
createWorkloadShare_sharedWith :: Lens' CreateWorkloadShare Text Source #
Undocumented member.
createWorkloadShare_permissionType :: Lens' CreateWorkloadShare PermissionType Source #
Undocumented member.
createWorkloadShare_clientRequestToken :: Lens' CreateWorkloadShare Text Source #
Undocumented member.
Destructuring the Response
data CreateWorkloadShareResponse Source #
Input for Create Workload Share
See: newCreateWorkloadShareResponse
smart constructor.
CreateWorkloadShareResponse' | |
|
Instances
newCreateWorkloadShareResponse Source #
Create a value of CreateWorkloadShareResponse
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:workloadId:CreateWorkloadShare'
, createWorkloadShareResponse_workloadId
- Undocumented member.
$sel:shareId:CreateWorkloadShareResponse'
, createWorkloadShareResponse_shareId
- Undocumented member.
$sel:httpStatus:CreateWorkloadShareResponse'
, createWorkloadShareResponse_httpStatus
- The response's http status code.
Response Lenses
createWorkloadShareResponse_workloadId :: Lens' CreateWorkloadShareResponse (Maybe Text) Source #
Undocumented member.
createWorkloadShareResponse_shareId :: Lens' CreateWorkloadShareResponse (Maybe Text) Source #
Undocumented member.
createWorkloadShareResponse_httpStatus :: Lens' CreateWorkloadShareResponse Int Source #
The response's http status code.