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 |
Submits a service-linked role deletion request and returns a
DeletionTaskId
, which you can use to check the status of the deletion.
Before you call this operation, confirm that the role has no active
sessions and that any resources used by the role in the linked service
are deleted. If you call this operation more than once for the same
service-linked role and an earlier deletion task is not complete, then
the DeletionTaskId
of the earlier request is returned.
If you submit a deletion request for a service-linked role whose linked service is still accessing a resource, then the deletion task fails. If it fails, the GetServiceLinkedRoleDeletionStatus operation returns the reason for the failure, usually including the resources that must be deleted. To delete the service-linked role, you must first remove those resources from the linked service and then submit the deletion request again. Resources are specific to the service that is linked to the role. For more information about removing resources from a service, see the Amazon Web Services documentation for your service.
For more information about service-linked roles, see Roles terms and concepts: Amazon Web Services service-linked role in the IAM User Guide.
Synopsis
- data DeleteServiceLinkedRole = DeleteServiceLinkedRole' {}
- newDeleteServiceLinkedRole :: Text -> DeleteServiceLinkedRole
- deleteServiceLinkedRole_roleName :: Lens' DeleteServiceLinkedRole Text
- data DeleteServiceLinkedRoleResponse = DeleteServiceLinkedRoleResponse' {
- httpStatus :: Int
- deletionTaskId :: Text
- newDeleteServiceLinkedRoleResponse :: Int -> Text -> DeleteServiceLinkedRoleResponse
- deleteServiceLinkedRoleResponse_httpStatus :: Lens' DeleteServiceLinkedRoleResponse Int
- deleteServiceLinkedRoleResponse_deletionTaskId :: Lens' DeleteServiceLinkedRoleResponse Text
Creating a Request
data DeleteServiceLinkedRole Source #
See: newDeleteServiceLinkedRole
smart constructor.
Instances
newDeleteServiceLinkedRole Source #
Create a value of DeleteServiceLinkedRole
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:roleName:DeleteServiceLinkedRole'
, deleteServiceLinkedRole_roleName
- The name of the service-linked role to be deleted.
Request Lenses
deleteServiceLinkedRole_roleName :: Lens' DeleteServiceLinkedRole Text Source #
The name of the service-linked role to be deleted.
Destructuring the Response
data DeleteServiceLinkedRoleResponse Source #
See: newDeleteServiceLinkedRoleResponse
smart constructor.
DeleteServiceLinkedRoleResponse' | |
|
Instances
Eq DeleteServiceLinkedRoleResponse Source # | |
Read DeleteServiceLinkedRoleResponse Source # | |
Show DeleteServiceLinkedRoleResponse Source # | |
Defined in Amazonka.IAM.DeleteServiceLinkedRole | |
Generic DeleteServiceLinkedRoleResponse Source # | |
NFData DeleteServiceLinkedRoleResponse Source # | |
Defined in Amazonka.IAM.DeleteServiceLinkedRole rnf :: DeleteServiceLinkedRoleResponse -> () # | |
type Rep DeleteServiceLinkedRoleResponse Source # | |
Defined in Amazonka.IAM.DeleteServiceLinkedRole type Rep DeleteServiceLinkedRoleResponse = D1 ('MetaData "DeleteServiceLinkedRoleResponse" "Amazonka.IAM.DeleteServiceLinkedRole" "libZSservicesZSamazonka-iamZSamazonka-iam" 'False) (C1 ('MetaCons "DeleteServiceLinkedRoleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "deletionTaskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) |
newDeleteServiceLinkedRoleResponse Source #
Create a value of DeleteServiceLinkedRoleResponse
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:httpStatus:DeleteServiceLinkedRoleResponse'
, deleteServiceLinkedRoleResponse_httpStatus
- The response's http status code.
$sel:deletionTaskId:DeleteServiceLinkedRoleResponse'
, deleteServiceLinkedRoleResponse_deletionTaskId
- The deletion task identifier that you can use to check the status of the
deletion. This identifier is returned in the format
task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>
.
Response Lenses
deleteServiceLinkedRoleResponse_httpStatus :: Lens' DeleteServiceLinkedRoleResponse Int Source #
The response's http status code.
deleteServiceLinkedRoleResponse_deletionTaskId :: Lens' DeleteServiceLinkedRoleResponse Text Source #
The deletion task identifier that you can use to check the status of the
deletion. This identifier is returned in the format
task/aws-service-role/<service-principal-name>/<role-name>/<task-uuid>
.