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 |
Updates the read and write permissions for an analysis.
Synopsis
- data UpdateAnalysisPermissions = UpdateAnalysisPermissions' {}
- newUpdateAnalysisPermissions :: Text -> Text -> UpdateAnalysisPermissions
- updateAnalysisPermissions_revokePermissions :: Lens' UpdateAnalysisPermissions (Maybe [ResourcePermission])
- updateAnalysisPermissions_grantPermissions :: Lens' UpdateAnalysisPermissions (Maybe [ResourcePermission])
- updateAnalysisPermissions_awsAccountId :: Lens' UpdateAnalysisPermissions Text
- updateAnalysisPermissions_analysisId :: Lens' UpdateAnalysisPermissions Text
- data UpdateAnalysisPermissionsResponse = UpdateAnalysisPermissionsResponse' {
- requestId :: Maybe Text
- analysisId :: Maybe Text
- analysisArn :: Maybe Text
- permissions :: Maybe (NonEmpty ResourcePermission)
- status :: Int
- newUpdateAnalysisPermissionsResponse :: Int -> UpdateAnalysisPermissionsResponse
- updateAnalysisPermissionsResponse_requestId :: Lens' UpdateAnalysisPermissionsResponse (Maybe Text)
- updateAnalysisPermissionsResponse_analysisId :: Lens' UpdateAnalysisPermissionsResponse (Maybe Text)
- updateAnalysisPermissionsResponse_analysisArn :: Lens' UpdateAnalysisPermissionsResponse (Maybe Text)
- updateAnalysisPermissionsResponse_permissions :: Lens' UpdateAnalysisPermissionsResponse (Maybe (NonEmpty ResourcePermission))
- updateAnalysisPermissionsResponse_status :: Lens' UpdateAnalysisPermissionsResponse Int
Creating a Request
data UpdateAnalysisPermissions Source #
See: newUpdateAnalysisPermissions
smart constructor.
UpdateAnalysisPermissions' | |
|
Instances
newUpdateAnalysisPermissions Source #
:: Text | |
-> Text | |
-> UpdateAnalysisPermissions |
Create a value of UpdateAnalysisPermissions
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:revokePermissions:UpdateAnalysisPermissions'
, updateAnalysisPermissions_revokePermissions
- A structure that describes the permissions to remove and the principal
to remove them from.
$sel:grantPermissions:UpdateAnalysisPermissions'
, updateAnalysisPermissions_grantPermissions
- A structure that describes the permissions to add and the principal to
add them to.
$sel:awsAccountId:UpdateAnalysisPermissions'
, updateAnalysisPermissions_awsAccountId
- The ID of the Amazon Web Services account that contains the analysis
whose permissions you're updating. You must be using the Amazon Web
Services account that the analysis is in.
$sel:analysisId:UpdateAnalysisPermissions'
, updateAnalysisPermissions_analysisId
- The ID of the analysis whose permissions you're updating. The ID is
part of the analysis URL.
Request Lenses
updateAnalysisPermissions_revokePermissions :: Lens' UpdateAnalysisPermissions (Maybe [ResourcePermission]) Source #
A structure that describes the permissions to remove and the principal to remove them from.
updateAnalysisPermissions_grantPermissions :: Lens' UpdateAnalysisPermissions (Maybe [ResourcePermission]) Source #
A structure that describes the permissions to add and the principal to add them to.
updateAnalysisPermissions_awsAccountId :: Lens' UpdateAnalysisPermissions Text Source #
The ID of the Amazon Web Services account that contains the analysis whose permissions you're updating. You must be using the Amazon Web Services account that the analysis is in.
updateAnalysisPermissions_analysisId :: Lens' UpdateAnalysisPermissions Text Source #
The ID of the analysis whose permissions you're updating. The ID is part of the analysis URL.
Destructuring the Response
data UpdateAnalysisPermissionsResponse Source #
See: newUpdateAnalysisPermissionsResponse
smart constructor.
UpdateAnalysisPermissionsResponse' | |
|
Instances
newUpdateAnalysisPermissionsResponse Source #
Create a value of UpdateAnalysisPermissionsResponse
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:requestId:UpdateAnalysisPermissionsResponse'
, updateAnalysisPermissionsResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:analysisId:UpdateAnalysisPermissions'
, updateAnalysisPermissionsResponse_analysisId
- The ID of the analysis that you updated permissions for.
$sel:analysisArn:UpdateAnalysisPermissionsResponse'
, updateAnalysisPermissionsResponse_analysisArn
- The Amazon Resource Name (ARN) of the analysis that you updated.
$sel:permissions:UpdateAnalysisPermissionsResponse'
, updateAnalysisPermissionsResponse_permissions
- A structure that describes the principals and the resource-level
permissions on an analysis.
$sel:status:UpdateAnalysisPermissionsResponse'
, updateAnalysisPermissionsResponse_status
- The HTTP status of the request.
Response Lenses
updateAnalysisPermissionsResponse_requestId :: Lens' UpdateAnalysisPermissionsResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
updateAnalysisPermissionsResponse_analysisId :: Lens' UpdateAnalysisPermissionsResponse (Maybe Text) Source #
The ID of the analysis that you updated permissions for.
updateAnalysisPermissionsResponse_analysisArn :: Lens' UpdateAnalysisPermissionsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the analysis that you updated.
updateAnalysisPermissionsResponse_permissions :: Lens' UpdateAnalysisPermissionsResponse (Maybe (NonEmpty ResourcePermission)) Source #
A structure that describes the principals and the resource-level permissions on an analysis.
updateAnalysisPermissionsResponse_status :: Lens' UpdateAnalysisPermissionsResponse Int Source #
The HTTP status of the request.