Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates the permissions to a data source.
Synopsis
- data UpdateDataSourcePermissions = UpdateDataSourcePermissions' {}
- newUpdateDataSourcePermissions :: Text -> Text -> UpdateDataSourcePermissions
- updateDataSourcePermissions_grantPermissions :: Lens' UpdateDataSourcePermissions (Maybe (NonEmpty ResourcePermission))
- updateDataSourcePermissions_revokePermissions :: Lens' UpdateDataSourcePermissions (Maybe (NonEmpty ResourcePermission))
- updateDataSourcePermissions_awsAccountId :: Lens' UpdateDataSourcePermissions Text
- updateDataSourcePermissions_dataSourceId :: Lens' UpdateDataSourcePermissions Text
- data UpdateDataSourcePermissionsResponse = UpdateDataSourcePermissionsResponse' {}
- newUpdateDataSourcePermissionsResponse :: Int -> UpdateDataSourcePermissionsResponse
- updateDataSourcePermissionsResponse_dataSourceArn :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text)
- updateDataSourcePermissionsResponse_dataSourceId :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text)
- updateDataSourcePermissionsResponse_requestId :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text)
- updateDataSourcePermissionsResponse_status :: Lens' UpdateDataSourcePermissionsResponse Int
Creating a Request
data UpdateDataSourcePermissions Source #
See: newUpdateDataSourcePermissions
smart constructor.
UpdateDataSourcePermissions' | |
|
Instances
newUpdateDataSourcePermissions Source #
Create a value of UpdateDataSourcePermissions
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:grantPermissions:UpdateDataSourcePermissions'
, updateDataSourcePermissions_grantPermissions
- A list of resource permissions that you want to grant on the data
source.
$sel:revokePermissions:UpdateDataSourcePermissions'
, updateDataSourcePermissions_revokePermissions
- A list of resource permissions that you want to revoke on the data
source.
UpdateDataSourcePermissions
, updateDataSourcePermissions_awsAccountId
- The Amazon Web Services account ID.
UpdateDataSourcePermissions
, updateDataSourcePermissions_dataSourceId
- The ID of the data source. This ID is unique per Amazon Web Services
Region for each Amazon Web Services account.
Request Lenses
updateDataSourcePermissions_grantPermissions :: Lens' UpdateDataSourcePermissions (Maybe (NonEmpty ResourcePermission)) Source #
A list of resource permissions that you want to grant on the data source.
updateDataSourcePermissions_revokePermissions :: Lens' UpdateDataSourcePermissions (Maybe (NonEmpty ResourcePermission)) Source #
A list of resource permissions that you want to revoke on the data source.
updateDataSourcePermissions_awsAccountId :: Lens' UpdateDataSourcePermissions Text Source #
The Amazon Web Services account ID.
updateDataSourcePermissions_dataSourceId :: Lens' UpdateDataSourcePermissions Text Source #
The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
Destructuring the Response
data UpdateDataSourcePermissionsResponse Source #
See: newUpdateDataSourcePermissionsResponse
smart constructor.
UpdateDataSourcePermissionsResponse' | |
|
Instances
newUpdateDataSourcePermissionsResponse Source #
Create a value of UpdateDataSourcePermissionsResponse
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:
UpdateDataSourcePermissionsResponse
, updateDataSourcePermissionsResponse_dataSourceArn
- The Amazon Resource Name (ARN) of the data source.
UpdateDataSourcePermissions
, updateDataSourcePermissionsResponse_dataSourceId
- The ID of the data source. This ID is unique per Amazon Web Services
Region for each Amazon Web Services account.
$sel:requestId:UpdateDataSourcePermissionsResponse'
, updateDataSourcePermissionsResponse_requestId
- The Amazon Web Services request ID for this operation.
UpdateDataSourcePermissionsResponse
, updateDataSourcePermissionsResponse_status
- The HTTP status of the request.
Response Lenses
updateDataSourcePermissionsResponse_dataSourceArn :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the data source.
updateDataSourcePermissionsResponse_dataSourceId :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text) Source #
The ID of the data source. This ID is unique per Amazon Web Services Region for each Amazon Web Services account.
updateDataSourcePermissionsResponse_requestId :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
updateDataSourcePermissionsResponse_status :: Lens' UpdateDataSourcePermissionsResponse Int Source #
The HTTP status of the request.