AmplifyGen3 / Client / list_access_controls
list_access_controls¶
- AmplifyGen3.Client.list_access_controls(**kwargs)¶
Returns a list of the access control configurations for a Gen 3 app.
See also: AWS API Documentation
Request Syntax
response = client.list_access_controls( AppName='string', MaxResults=123, NextToken='string' )
- Parameters:
AppName (string) –
[REQUIRED]
The name of the app.
MaxResults (integer) – The maximum number of results to return in a single response.
NextToken (string) – The pagination token returned in a previous response, used to retrieve the next page of results.
- Return type:
dict
- Returns:
Response Syntax
{ 'AccessControls': [ { 'EnvironmentName': 'string', 'ProviderType': 'OIDC'|'IAM_IDENTITY_CENTER', 'Scope': 'ALL_DEPLOYMENTS'|'NON_ACTIVE_DEPLOYMENTS', 'Rule': { 'AnyAuthenticatedUser': {}, 'UserClaims': [ { 'Key': 'string', 'Operator': 'EQUALS'|'CONTAINS'|'BEGINS_WITH'|'ENDS_WITH', 'Value': 'string' }, ] }, 'Status': 'ENABLING'|'ENABLED'|'ENABLE_FAILED'|'UPDATING'|'UPDATE_FAILED'|'DISABLING'|'DISABLED'|'DISABLE_FAILED', 'EnabledAt': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
AccessControls (list) –
The access control configurations.
(dict) –
Summary information for an environment’s access control configuration.
EnvironmentName (string) –
The name of the environment.
ProviderType (string) –
The type of identity provider.
Scope (string) –
The scope that the access control configuration applies to.
Rule (dict) –
The rule that determines which users are granted access.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
AnyAuthenticatedUser,UserClaims. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
AnyAuthenticatedUser (dict) –
Admits any user who signs in successfully.
UserClaims (list) –
Admits users whose token claims match the specified conditions.
(dict) –
A condition that a user’s claims must satisfy to be granted access.
Key (string) –
The name of the user claim to evaluate.
Operator (string) –
The operator used to compare the claim value.
Value (string) –
The value to compare the claim against.
Status (string) –
The status of the access control configuration.
EnabledAt (datetime) –
The time at which access control was enabled for the environment.
NextToken (string) –
The pagination token returned in a previous response, used to retrieve the next page of results.
Exceptions