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 permissions to a data source.
Synopsis
- data UpdateDataSourcePermissions = UpdateDataSourcePermissions' {}
- newUpdateDataSourcePermissions :: Text -> Text -> UpdateDataSourcePermissions
- updateDataSourcePermissions_revokePermissions :: Lens' UpdateDataSourcePermissions (Maybe (NonEmpty ResourcePermission))
- updateDataSourcePermissions_grantPermissions :: Lens' UpdateDataSourcePermissions (Maybe (NonEmpty ResourcePermission))
- updateDataSourcePermissions_awsAccountId :: Lens' UpdateDataSourcePermissions Text
- updateDataSourcePermissions_dataSourceId :: Lens' UpdateDataSourcePermissions Text
- data UpdateDataSourcePermissionsResponse = UpdateDataSourcePermissionsResponse' {}
- newUpdateDataSourcePermissionsResponse :: Int -> UpdateDataSourcePermissionsResponse
- updateDataSourcePermissionsResponse_requestId :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text)
- updateDataSourcePermissionsResponse_dataSourceId :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text)
- updateDataSourcePermissionsResponse_dataSourceArn :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text)
- updateDataSourcePermissionsResponse_status :: Lens' UpdateDataSourcePermissionsResponse Int
Creating a Request
data UpdateDataSourcePermissions Source #
See: newUpdateDataSourcePermissions
smart constructor.
UpdateDataSourcePermissions' | |
|
Instances
newUpdateDataSourcePermissions Source #
:: Text | |
-> Text | |
-> UpdateDataSourcePermissions |
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:revokePermissions:UpdateDataSourcePermissions'
, updateDataSourcePermissions_revokePermissions
- A list of resource permissions that you want to revoke on the data
source.
$sel:grantPermissions:UpdateDataSourcePermissions'
, updateDataSourcePermissions_grantPermissions
- A list of resource permissions that you want to grant on the data
source.
$sel:awsAccountId:UpdateDataSourcePermissions'
, updateDataSourcePermissions_awsAccountId
- The Amazon Web Services account ID.
$sel:dataSourceId: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_revokePermissions :: Lens' UpdateDataSourcePermissions (Maybe (NonEmpty ResourcePermission)) Source #
A list of resource permissions that you want to revoke on the data source.
updateDataSourcePermissions_grantPermissions :: Lens' UpdateDataSourcePermissions (Maybe (NonEmpty ResourcePermission)) Source #
A list of resource permissions that you want to grant 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:
$sel:requestId:UpdateDataSourcePermissionsResponse'
, updateDataSourcePermissionsResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:dataSourceId: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:dataSourceArn:UpdateDataSourcePermissionsResponse'
, updateDataSourcePermissionsResponse_dataSourceArn
- The Amazon Resource Name (ARN) of the data source.
$sel:status:UpdateDataSourcePermissionsResponse'
, updateDataSourcePermissionsResponse_status
- The HTTP status of the request.
Response Lenses
updateDataSourcePermissionsResponse_requestId :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
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_dataSourceArn :: Lens' UpdateDataSourcePermissionsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the data source.
updateDataSourcePermissionsResponse_status :: Lens' UpdateDataSourcePermissionsResponse Int Source #
The HTTP status of the request.