| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.ECS.ListAccountSettings
Description
Lists the account settings for a specified principal.
This operation returns paginated results.
Synopsis
- data ListAccountSettings = ListAccountSettings' {
- effectiveSettings :: Maybe Bool
- maxResults :: Maybe Int
- name :: Maybe SettingName
- nextToken :: Maybe Text
- principalArn :: Maybe Text
- value :: Maybe Text
- newListAccountSettings :: ListAccountSettings
- listAccountSettings_effectiveSettings :: Lens' ListAccountSettings (Maybe Bool)
- listAccountSettings_maxResults :: Lens' ListAccountSettings (Maybe Int)
- listAccountSettings_name :: Lens' ListAccountSettings (Maybe SettingName)
- listAccountSettings_nextToken :: Lens' ListAccountSettings (Maybe Text)
- listAccountSettings_principalArn :: Lens' ListAccountSettings (Maybe Text)
- listAccountSettings_value :: Lens' ListAccountSettings (Maybe Text)
- data ListAccountSettingsResponse = ListAccountSettingsResponse' {}
- newListAccountSettingsResponse :: Int -> ListAccountSettingsResponse
- listAccountSettingsResponse_nextToken :: Lens' ListAccountSettingsResponse (Maybe Text)
- listAccountSettingsResponse_settings :: Lens' ListAccountSettingsResponse (Maybe [Setting])
- listAccountSettingsResponse_httpStatus :: Lens' ListAccountSettingsResponse Int
Creating a Request
data ListAccountSettings Source #
See: newListAccountSettings smart constructor.
Constructors
| ListAccountSettings' | |
Fields
| |
Instances
newListAccountSettings :: ListAccountSettings Source #
Create a value of ListAccountSettings 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:effectiveSettings:ListAccountSettings', listAccountSettings_effectiveSettings - Determines whether to return the effective settings. If true, the
account settings for the root user or the default setting for the
principalArn are returned. If false, the account settings for the
principalArn are returned if they're set. Otherwise, no account
settings are returned.
$sel:maxResults:ListAccountSettings', listAccountSettings_maxResults - The maximum number of account setting results returned by
ListAccountSettings in paginated output. When this parameter is used,
ListAccountSettings only returns maxResults results in a single page
along with a nextToken response element. The remaining results of the
initial request can be seen by sending another ListAccountSettings
request with the returned nextToken value. This value can be between 1
and 10. If this parameter isn't used, then ListAccountSettings
returns up to 10 results and a nextToken value if applicable.
ListAccountSettings, listAccountSettings_name - The name of the account setting you want to list the settings for.
ListAccountSettings, listAccountSettings_nextToken - The nextToken value returned from a ListAccountSettings request
indicating that more results are available to fulfill the request and
further calls will be needed. If maxResults was provided, it's
possible the number of results to be fewer than maxResults.
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
ListAccountSettings, listAccountSettings_principalArn - The ARN of the principal, which can be an IAM user, IAM role, or the
root user. If this field is omitted, the account settings are listed
only for the authenticated user.
Federated users assume the account setting of the root user and can't have explicit account settings set for them.
ListAccountSettings, listAccountSettings_value - The value of the account settings to filter results with. You must also
specify an account setting name to use this parameter.
Request Lenses
listAccountSettings_effectiveSettings :: Lens' ListAccountSettings (Maybe Bool) Source #
Determines whether to return the effective settings. If true, the
account settings for the root user or the default setting for the
principalArn are returned. If false, the account settings for the
principalArn are returned if they're set. Otherwise, no account
settings are returned.
listAccountSettings_maxResults :: Lens' ListAccountSettings (Maybe Int) Source #
The maximum number of account setting results returned by
ListAccountSettings in paginated output. When this parameter is used,
ListAccountSettings only returns maxResults results in a single page
along with a nextToken response element. The remaining results of the
initial request can be seen by sending another ListAccountSettings
request with the returned nextToken value. This value can be between 1
and 10. If this parameter isn't used, then ListAccountSettings
returns up to 10 results and a nextToken value if applicable.
listAccountSettings_name :: Lens' ListAccountSettings (Maybe SettingName) Source #
The name of the account setting you want to list the settings for.
listAccountSettings_nextToken :: Lens' ListAccountSettings (Maybe Text) Source #
The nextToken value returned from a ListAccountSettings request
indicating that more results are available to fulfill the request and
further calls will be needed. If maxResults was provided, it's
possible the number of results to be fewer than maxResults.
This token should be treated as an opaque identifier that is only used to retrieve the next items in a list and not for other programmatic purposes.
listAccountSettings_principalArn :: Lens' ListAccountSettings (Maybe Text) Source #
The ARN of the principal, which can be an IAM user, IAM role, or the root user. If this field is omitted, the account settings are listed only for the authenticated user.
Federated users assume the account setting of the root user and can't have explicit account settings set for them.
listAccountSettings_value :: Lens' ListAccountSettings (Maybe Text) Source #
The value of the account settings to filter results with. You must also specify an account setting name to use this parameter.
Destructuring the Response
data ListAccountSettingsResponse Source #
See: newListAccountSettingsResponse smart constructor.
Constructors
| ListAccountSettingsResponse' | |
Fields
| |
Instances
newListAccountSettingsResponse Source #
Create a value of ListAccountSettingsResponse 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:
ListAccountSettings, listAccountSettingsResponse_nextToken - The nextToken value to include in a future ListAccountSettings
request. When the results of a ListAccountSettings request exceed
maxResults, this value can be used to retrieve the next page of
results. This value is null when there are no more results to return.
ListAccountSettingsResponse, listAccountSettingsResponse_settings - The account settings for the resource.
$sel:httpStatus:ListAccountSettingsResponse', listAccountSettingsResponse_httpStatus - The response's http status code.
Response Lenses
listAccountSettingsResponse_nextToken :: Lens' ListAccountSettingsResponse (Maybe Text) Source #
The nextToken value to include in a future ListAccountSettings
request. When the results of a ListAccountSettings request exceed
maxResults, this value can be used to retrieve the next page of
results. This value is null when there are no more results to return.
listAccountSettingsResponse_settings :: Lens' ListAccountSettingsResponse (Maybe [Setting]) Source #
The account settings for the resource.
listAccountSettingsResponse_httpStatus :: Lens' ListAccountSettingsResponse Int Source #
The response's http status code.