LicenseManagerUserSubscriptions / Client / list_user_associations
list_user_associations¶
- LicenseManagerUserSubscriptions.Client.list_user_associations(**kwargs)¶
Lists user associations for an identity provider.
See also: AWS API Documentation
Request Syntax
response = client.list_user_associations( InstanceId='string', IdentityProvider={ 'ActiveDirectoryIdentityProvider': { 'DirectoryId': 'string', 'ActiveDirectorySettings': { 'DomainName': 'string', 'DomainIpv4List': [ 'string', ], 'DomainCredentialsProvider': { 'SecretsManagerCredentialsProvider': { 'SecretId': 'string' } }, 'DomainNetworkSettings': { 'Subnets': [ 'string', ] } }, 'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED', 'IsSharedActiveDirectory': True|False } }, MaxResults=123, Filters=[ { 'Attribute': 'string', 'Operation': 'string', 'Value': 'string' }, ], NextToken='string' )
- Parameters:
InstanceId (string) –
[REQUIRED]
The ID of the EC2 instance, which provides user-based subscriptions.
IdentityProvider (dict) –
[REQUIRED]
An object that specifies details for the identity provider.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
ActiveDirectoryIdentityProvider
.ActiveDirectoryIdentityProvider (dict) –
The
ActiveDirectoryIdentityProvider
resource contains settings and other details about a specific Active Directory identity provider.DirectoryId (string) –
The directory ID for an Active Directory identity provider.
ActiveDirectorySettings (dict) –
The
ActiveDirectorySettings
resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.DomainName (string) –
The domain name for the Active Directory.
DomainIpv4List (list) –
A list of domain IPv4 addresses that are used for the Active Directory.
(string) –
DomainCredentialsProvider (dict) –
Points to the
CredentialsProvider
resource that contains information about the credential provider for user administration.Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
SecretsManagerCredentialsProvider
.SecretsManagerCredentialsProvider (dict) –
Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.
SecretId (string) –
The ID of the Secrets Manager secret that contains credentials.
DomainNetworkSettings (dict) –
The
DomainNetworkSettings
resource contains an array of subnets that apply for the Active Directory.Subnets (list) – [REQUIRED]
Contains a list of subnets that apply for the Active Directory domain.
(string) –
ActiveDirectoryType (string) –
The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.
IsSharedActiveDirectory (boolean) –
Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.
MaxResults (integer) – The maximum number of results to return from a single request.
Filters (list) –
You can use the following filters to streamline results:
Status
Username
Domain
(dict) –
A filter name and value pair that is used to return more specific results from a describe or list operation. You can use filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
Attribute (string) –
The name of an attribute to use as a filter.
Operation (string) –
The type of search (For example, eq, geq, leq)
Value (string) –
Value of the filter.
NextToken (string) – A token to specify where to start paginating. This is the nextToken from a previously truncated response.
- Return type:
dict
- Returns:
Response Syntax
{ 'InstanceUserSummaries': [ { 'Username': 'string', 'InstanceId': 'string', 'IdentityProvider': { 'ActiveDirectoryIdentityProvider': { 'DirectoryId': 'string', 'ActiveDirectorySettings': { 'DomainName': 'string', 'DomainIpv4List': [ 'string', ], 'DomainCredentialsProvider': { 'SecretsManagerCredentialsProvider': { 'SecretId': 'string' } }, 'DomainNetworkSettings': { 'Subnets': [ 'string', ] } }, 'ActiveDirectoryType': 'SELF_MANAGED'|'AWS_MANAGED', 'IsSharedActiveDirectory': True|False } }, 'Status': 'string', 'InstanceUserArn': 'string', 'StatusMessage': 'string', 'Domain': 'string', 'AssociationDate': 'string', 'DisassociationDate': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
InstanceUserSummaries (list) –
Metadata that describes the list user association operation.
(dict) –
Describes users of an EC2 instance providing user-based subscriptions.
Username (string) –
The user name from the identity provider for the user.
InstanceId (string) –
The ID of the EC2 instance that provides user-based subscriptions.
IdentityProvider (dict) –
The
IdentityProvider
resource specifies details about the identity provider.Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
ActiveDirectoryIdentityProvider
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
ActiveDirectoryIdentityProvider (dict) –
The
ActiveDirectoryIdentityProvider
resource contains settings and other details about a specific Active Directory identity provider.DirectoryId (string) –
The directory ID for an Active Directory identity provider.
ActiveDirectorySettings (dict) –
The
ActiveDirectorySettings
resource contains details about the Active Directory, including network access details such as domain name and IP addresses, and the credential provider for user administration.DomainName (string) –
The domain name for the Active Directory.
DomainIpv4List (list) –
A list of domain IPv4 addresses that are used for the Active Directory.
(string) –
DomainCredentialsProvider (dict) –
Points to the
CredentialsProvider
resource that contains information about the credential provider for user administration.Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
SecretsManagerCredentialsProvider
. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBER
is as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
SecretsManagerCredentialsProvider (dict) –
Identifies the Secrets Manager secret that contains credentials needed for user administration in the Active Directory.
SecretId (string) –
The ID of the Secrets Manager secret that contains credentials.
DomainNetworkSettings (dict) –
The
DomainNetworkSettings
resource contains an array of subnets that apply for the Active Directory.Subnets (list) –
Contains a list of subnets that apply for the Active Directory domain.
(string) –
ActiveDirectoryType (string) –
The type of Active Directory – either a self-managed Active Directory or an Amazon Web Services Managed Active Directory.
IsSharedActiveDirectory (boolean) –
Whether this directory is shared from an Amazon Web Services Managed Active Directory. The default value is false.
Status (string) –
The status of a user associated with an EC2 instance.
InstanceUserArn (string) –
The Amazon Resource Name (ARN) that identifies the instance user.
StatusMessage (string) –
The status message for users of an EC2 instance.
Domain (string) –
The domain name of the Active Directory that contains the user information for the product subscription.
AssociationDate (string) –
The date a user was associated with an EC2 instance.
DisassociationDate (string) –
The date a user was disassociated from an EC2 instance.
NextToken (string) –
The next token used for paginated responses. When this field isn’t empty, there are additional elements that the service hasn’t included in this request. Use this token with the next request to retrieve additional objects.
Exceptions
LicenseManagerUserSubscriptions.Client.exceptions.ServiceQuotaExceededException
LicenseManagerUserSubscriptions.Client.exceptions.ValidationException
LicenseManagerUserSubscriptions.Client.exceptions.ConflictException
LicenseManagerUserSubscriptions.Client.exceptions.ThrottlingException
LicenseManagerUserSubscriptions.Client.exceptions.InternalServerException
LicenseManagerUserSubscriptions.Client.exceptions.ResourceNotFoundException
LicenseManagerUserSubscriptions.Client.exceptions.AccessDeniedException