Skip to main content

identity_sources

Creates, updates, deletes, gets or lists an identity_sources resource.

Overview

Nameidentity_sources
TypeResource
Idaws.mpa.identity_sources

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)Timestamp when the identity source was created.
identity_source_arnstringAmazon Resource Name (ARN) for the identity source.
identity_source_parametersobjectA IdentitySourceParameters object. Contains details for the resource that provides identities to the identity source. For example, an IAM Identity Center instance.
identity_source_typestringThe type of resource that provided identities to the identity source. For example, an IAM Identity Center instance. (IAM_IDENTITY_CENTER)
statusstringStatus for the identity source. For example, if the identity source is ACTIVE. (CREATING, ACTIVE, DELETING, ERROR)
status_codestringStatus code of the identity source. (ACCESS_DENIED, DELETION_FAILED, IDC_INSTANCE_NOT_FOUND, IDC_INSTANCE_NOT_VALID)
status_messagestringMessage describing the status for the identity source.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_identity_sourceselectidentity_source_arn, regionReturns details for an identity source. For more information, see Identity Source in the Multi-party approval User Guide.
list_identity_sourcesselectregionMaxResults, NextTokenReturns a list of identity sources. For more information, see Identity Source in the Multi-party approval User Guide.
create_identity_sourceinsertregion, IdentitySourceParametersCreates a new identity source. For more information, see Identity Source in the Multi-party approval User Guide.
delete_identity_sourcedeleteidentity_source_arn, regionDeletes an identity source. For more information, see Identity Source in the Multi-party approval User Guide.

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
identity_source_arnstringAmazon Resource Name (ARN) for identity source.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of items to return in the response. If more results exist than the specified MaxResults value, a token is included in the response so that you can retrieve the remaining results.
NextTokenstringIf present, indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a next call to the operation to get more output. You can repeat this until the NextToken response element returns null.

SELECT examples

Returns details for an identity source. For more information, see Identity Source in the Multi-party approval User Guide.

SELECT
creation_time,
identity_source_arn,
identity_source_parameters,
identity_source_type,
status,
status_code,
status_message
FROM aws.mpa.identity_sources
WHERE identity_source_arn = '{{ identity_source_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new identity source. For more information, see Identity Source in the Multi-party approval User Guide.

INSERT INTO aws.mpa.identity_sources (
IdentitySourceParameters,
ClientToken,
Tags,
region
)
SELECT
'{{ IdentitySourceParameters }}' /* required */,
'{{ ClientToken }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
creation_time,
identity_source_arn,
identity_source_type
;

DELETE examples

Deletes an identity source. For more information, see Identity Source in the Multi-party approval User Guide.

DELETE FROM aws.mpa.identity_sources
WHERE identity_source_arn = '{{ identity_source_arn }}' --required
AND region = '{{ region }}' --required
;