AmplifyGen3 / Client / get_access_control
get_access_control¶
- AmplifyGen3.Client.get_access_control(**kwargs)¶
Retrieves the access control configuration for an environment of a Gen 3 app.
See also: AWS API Documentation
Request Syntax
response = client.get_access_control( AppName='string', EnvironmentName='string' )
- Parameters:
AppName (string) –
[REQUIRED]
The name of the app.
EnvironmentName (string) –
[REQUIRED]
The name of the environment.
- Return type:
dict
- Returns:
Response Syntax
{ 'AppName': 'string', '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', 'StatusReason': 'string', 'EnabledAt': datetime(2015, 1, 1), 'UpdatedAt': datetime(2015, 1, 1) }
Response Structure
(dict) –
AppName (string) –
The name of the app.
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.
StatusReason (string) –
The reason for the status.
EnabledAt (datetime) –
The time at which access control was enabled for the environment.
UpdatedAt (datetime) –
The time at which the access control configuration was last updated. The value is in ISO-8601 format.
Exceptions