Skip to main content

user_associations

Creates, updates, deletes, gets or lists a user_associations resource.

Overview

Nameuser_associations
TypeResource
Idaws.license_manager_user_subscriptions.user_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
association_datestringThe date a user was associated with an EC2 instance.
disassociation_datestringThe date a user was disassociated from an EC2 instance.
domainstringThe domain name of the Active Directory that contains the user information for the product subscription.
identity_providerobjectRefers to an identity provider.
instance_idstringThe ID of the EC2 instance that provides user-based subscriptions.
instance_user_arnstringThe Amazon Resource Name (ARN) that identifies the instance user. (pattern: <code>arn:[a-z0-9-.]{1,63}:[a-z0-9-.]{1,63}:[a-z0-9-.]{1,63}:[a-z0-9-.]{1,63}:[a-zA-Z0-9-.]{1,510}/[a-zA-Z0-9-.]{1,510}</code>)
statusstringThe status of a user associated with an EC2 instance.
status_messagestringThe status message for users of an EC2 instance.
usernamestringThe user name from the identity provider for the user.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_user_associationsselectregionLists user associations for an identity provider.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Lists user associations for an identity provider.

SELECT
association_date,
disassociation_date,
domain,
identity_provider,
instance_id,
instance_user_arn,
status,
status_message,
username
FROM aws.license_manager_user_subscriptions.user_associations
WHERE region = '{{ region }}' -- required
;