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 resource permissions for a template.
Synopsis
- data UpdateTemplatePermissions = UpdateTemplatePermissions' {}
- newUpdateTemplatePermissions :: Text -> Text -> UpdateTemplatePermissions
- updateTemplatePermissions_revokePermissions :: Lens' UpdateTemplatePermissions (Maybe [ResourcePermission])
- updateTemplatePermissions_grantPermissions :: Lens' UpdateTemplatePermissions (Maybe [ResourcePermission])
- updateTemplatePermissions_awsAccountId :: Lens' UpdateTemplatePermissions Text
- updateTemplatePermissions_templateId :: Lens' UpdateTemplatePermissions Text
- data UpdateTemplatePermissionsResponse = UpdateTemplatePermissionsResponse' {
- requestId :: Maybe Text
- templateId :: Maybe Text
- templateArn :: Maybe Text
- permissions :: Maybe (NonEmpty ResourcePermission)
- status :: Int
- newUpdateTemplatePermissionsResponse :: Int -> UpdateTemplatePermissionsResponse
- updateTemplatePermissionsResponse_requestId :: Lens' UpdateTemplatePermissionsResponse (Maybe Text)
- updateTemplatePermissionsResponse_templateId :: Lens' UpdateTemplatePermissionsResponse (Maybe Text)
- updateTemplatePermissionsResponse_templateArn :: Lens' UpdateTemplatePermissionsResponse (Maybe Text)
- updateTemplatePermissionsResponse_permissions :: Lens' UpdateTemplatePermissionsResponse (Maybe (NonEmpty ResourcePermission))
- updateTemplatePermissionsResponse_status :: Lens' UpdateTemplatePermissionsResponse Int
Creating a Request
data UpdateTemplatePermissions Source #
See: newUpdateTemplatePermissions
smart constructor.
UpdateTemplatePermissions' | |
|
Instances
newUpdateTemplatePermissions Source #
:: Text | |
-> Text | |
-> UpdateTemplatePermissions |
Create a value of UpdateTemplatePermissions
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:UpdateTemplatePermissions'
, updateTemplatePermissions_revokePermissions
- A list of resource permissions to be revoked from the template.
$sel:grantPermissions:UpdateTemplatePermissions'
, updateTemplatePermissions_grantPermissions
- A list of resource permissions to be granted on the template.
$sel:awsAccountId:UpdateTemplatePermissions'
, updateTemplatePermissions_awsAccountId
- The ID of the Amazon Web Services account that contains the template.
$sel:templateId:UpdateTemplatePermissions'
, updateTemplatePermissions_templateId
- The ID for the template.
Request Lenses
updateTemplatePermissions_revokePermissions :: Lens' UpdateTemplatePermissions (Maybe [ResourcePermission]) Source #
A list of resource permissions to be revoked from the template.
updateTemplatePermissions_grantPermissions :: Lens' UpdateTemplatePermissions (Maybe [ResourcePermission]) Source #
A list of resource permissions to be granted on the template.
updateTemplatePermissions_awsAccountId :: Lens' UpdateTemplatePermissions Text Source #
The ID of the Amazon Web Services account that contains the template.
updateTemplatePermissions_templateId :: Lens' UpdateTemplatePermissions Text Source #
The ID for the template.
Destructuring the Response
data UpdateTemplatePermissionsResponse Source #
See: newUpdateTemplatePermissionsResponse
smart constructor.
UpdateTemplatePermissionsResponse' | |
|
Instances
newUpdateTemplatePermissionsResponse Source #
Create a value of UpdateTemplatePermissionsResponse
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:UpdateTemplatePermissionsResponse'
, updateTemplatePermissionsResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:templateId:UpdateTemplatePermissions'
, updateTemplatePermissionsResponse_templateId
- The ID for the template.
$sel:templateArn:UpdateTemplatePermissionsResponse'
, updateTemplatePermissionsResponse_templateArn
- The Amazon Resource Name (ARN) of the template.
$sel:permissions:UpdateTemplatePermissionsResponse'
, updateTemplatePermissionsResponse_permissions
- A list of resource permissions to be set on the template.
$sel:status:UpdateTemplatePermissionsResponse'
, updateTemplatePermissionsResponse_status
- The HTTP status of the request.
Response Lenses
updateTemplatePermissionsResponse_requestId :: Lens' UpdateTemplatePermissionsResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
updateTemplatePermissionsResponse_templateId :: Lens' UpdateTemplatePermissionsResponse (Maybe Text) Source #
The ID for the template.
updateTemplatePermissionsResponse_templateArn :: Lens' UpdateTemplatePermissionsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the template.
updateTemplatePermissionsResponse_permissions :: Lens' UpdateTemplatePermissionsResponse (Maybe (NonEmpty ResourcePermission)) Source #
A list of resource permissions to be set on the template.
updateTemplatePermissionsResponse_status :: Lens' UpdateTemplatePermissionsResponse Int Source #
The HTTP status of the request.