Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Soft deletes a role. The role is suspended and cannot be used to create new IAM Policy Bindings. The Role will not be included in `ListRoles()` unless `show_deleted` is set in the `ListRolesRequest`. The Role contains the deleted boolean set. Existing Bindings remains, but are inactive. The Role can be undeleted within 7 days. After 7 days the Role is deleted and all Bindings associated with the role are removed.
See: Identity and Access Management (IAM) API Reference for iam.organizations.roles.delete
.
Synopsis
- type OrganizationsRolesDeleteResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "etag" Bytes :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Role))))))))
- organizationsRolesDelete :: Text -> OrganizationsRolesDelete
- data OrganizationsRolesDelete
- ordXgafv :: Lens' OrganizationsRolesDelete (Maybe Xgafv)
- ordEtag :: Lens' OrganizationsRolesDelete (Maybe ByteString)
- ordUploadProtocol :: Lens' OrganizationsRolesDelete (Maybe Text)
- ordAccessToken :: Lens' OrganizationsRolesDelete (Maybe Text)
- ordUploadType :: Lens' OrganizationsRolesDelete (Maybe Text)
- ordName :: Lens' OrganizationsRolesDelete Text
- ordCallback :: Lens' OrganizationsRolesDelete (Maybe Text)
REST Resource
type OrganizationsRolesDeleteResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "etag" Bytes :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Role)))))))) Source #
A resource alias for iam.organizations.roles.delete
method which the
OrganizationsRolesDelete
request conforms to.
Creating a Request
organizationsRolesDelete Source #
Creates a value of OrganizationsRolesDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsRolesDelete Source #
Soft deletes a role. The role is suspended and cannot be used to create new IAM Policy Bindings. The Role will not be included in `ListRoles()` unless `show_deleted` is set in the `ListRolesRequest`. The Role contains the deleted boolean set. Existing Bindings remains, but are inactive. The Role can be undeleted within 7 days. After 7 days the Role is deleted and all Bindings associated with the role are removed.
See: organizationsRolesDelete
smart constructor.
Instances
Request Lenses
ordEtag :: Lens' OrganizationsRolesDelete (Maybe ByteString) Source #
Used to perform a consistent read-modify-write.
ordUploadProtocol :: Lens' OrganizationsRolesDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ordAccessToken :: Lens' OrganizationsRolesDelete (Maybe Text) Source #
OAuth access token.
ordUploadType :: Lens' OrganizationsRolesDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ordName :: Lens' OrganizationsRolesDelete Text Source #
The resource name of the role in one of the following formats: `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` `projects/{PROJECT_ID}/roles/{ROLE_NAME}`
ordCallback :: Lens' OrganizationsRolesDelete (Maybe Text) Source #
JSONP