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 |
Disables an account setting for a specified IAM user, IAM role, or the root user for an account.
Synopsis
- data DeleteAccountSetting = DeleteAccountSetting' {
- principalArn :: Maybe Text
- name :: SettingName
- newDeleteAccountSetting :: SettingName -> DeleteAccountSetting
- deleteAccountSetting_principalArn :: Lens' DeleteAccountSetting (Maybe Text)
- deleteAccountSetting_name :: Lens' DeleteAccountSetting SettingName
- data DeleteAccountSettingResponse = DeleteAccountSettingResponse' {
- setting :: Maybe Setting
- httpStatus :: Int
- newDeleteAccountSettingResponse :: Int -> DeleteAccountSettingResponse
- deleteAccountSettingResponse_setting :: Lens' DeleteAccountSettingResponse (Maybe Setting)
- deleteAccountSettingResponse_httpStatus :: Lens' DeleteAccountSettingResponse Int
Creating a Request
data DeleteAccountSetting Source #
See: newDeleteAccountSetting
smart constructor.
DeleteAccountSetting' | |
|
Instances
newDeleteAccountSetting Source #
Create a value of DeleteAccountSetting
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:principalArn:DeleteAccountSetting'
, deleteAccountSetting_principalArn
- The ARN of the principal, which can be an IAM user, IAM role, or the
root user. If you specify the root user, it disables the account setting
for all IAM users, IAM roles, and the root user of the account unless an
IAM user or role explicitly overrides these settings. If this field is
omitted, the setting is changed only for the authenticated user.
$sel:name:DeleteAccountSetting'
, deleteAccountSetting_name
- The resource name for which to disable the account setting. If
serviceLongArnFormat
is specified, the ARN for your Amazon ECS
services is affected. If taskLongArnFormat
is specified, the ARN and
resource ID for your Amazon ECS tasks is affected. If
containerInstanceLongArnFormat
is specified, the ARN and resource ID
for your Amazon ECS container instances is affected. If awsvpcTrunking
is specified, the ENI limit for your Amazon ECS container instances is
affected.
Request Lenses
deleteAccountSetting_principalArn :: Lens' DeleteAccountSetting (Maybe Text) Source #
The ARN of the principal, which can be an IAM user, IAM role, or the root user. If you specify the root user, it disables the account setting for all IAM users, IAM roles, and the root user of the account unless an IAM user or role explicitly overrides these settings. If this field is omitted, the setting is changed only for the authenticated user.
deleteAccountSetting_name :: Lens' DeleteAccountSetting SettingName Source #
The resource name for which to disable the account setting. If
serviceLongArnFormat
is specified, the ARN for your Amazon ECS
services is affected. If taskLongArnFormat
is specified, the ARN and
resource ID for your Amazon ECS tasks is affected. If
containerInstanceLongArnFormat
is specified, the ARN and resource ID
for your Amazon ECS container instances is affected. If awsvpcTrunking
is specified, the ENI limit for your Amazon ECS container instances is
affected.
Destructuring the Response
data DeleteAccountSettingResponse Source #
See: newDeleteAccountSettingResponse
smart constructor.
DeleteAccountSettingResponse' | |
|
Instances
newDeleteAccountSettingResponse Source #
Create a value of DeleteAccountSettingResponse
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:setting:DeleteAccountSettingResponse'
, deleteAccountSettingResponse_setting
- The account setting for the specified principal ARN.
$sel:httpStatus:DeleteAccountSettingResponse'
, deleteAccountSettingResponse_httpStatus
- The response's http status code.
Response Lenses
deleteAccountSettingResponse_setting :: Lens' DeleteAccountSettingResponse (Maybe Setting) Source #
The account setting for the specified principal ARN.
deleteAccountSettingResponse_httpStatus :: Lens' DeleteAccountSettingResponse Int Source #
The response's http status code.