Skip to main content

aws_persona_mappings

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

Overview

Nameaws_persona_mappings
TypeResource
Iddatadog.integrations.aws_persona_mappings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier for the persona mapping (example: c5c758c6-18c2-4484-ae3f-46b84128404a)
attributesobjectAttributes for AWS cloud authentication persona mapping response
typestringType identifier for AWS cloud authentication persona mapping (aws_cloud_auth_config) (example: aws_cloud_auth_config)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_awscloud_auth_persona_mappingselectpersona_mapping_idGet a specific AWS cloud authentication persona mapping by ID. This endpoint retrieves a single configured persona mapping that associates an AWS IAM principal with a Datadog user.
list_awscloud_auth_persona_mappingsselectList all AWS cloud authentication persona mappings. This endpoint retrieves all configured persona mappings that associate AWS IAM principals with Datadog users.
create_awscloud_auth_persona_mappinginsertdataCreate an AWS cloud authentication persona mapping. This endpoint associates an AWS IAM principal with a Datadog user.
delete_awscloud_auth_persona_mappingdeletepersona_mapping_idDelete an AWS cloud authentication persona mapping by ID. This removes the association between an AWS IAM principal and a Datadog user.

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
persona_mapping_idstringThe ID of the persona mapping (example: c5c758c6-18c2-4484-ae3f-46b84128404a)
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

Get a specific AWS cloud authentication persona mapping by ID. This endpoint retrieves a single configured persona mapping that associates an AWS IAM principal with a Datadog user.

SELECT
id,
attributes,
type
FROM datadog.integrations.aws_persona_mappings
WHERE persona_mapping_id = '{{ persona_mapping_id }}' -- required
;

INSERT examples

Create an AWS cloud authentication persona mapping. This endpoint associates an AWS IAM principal with a Datadog user.

INSERT INTO datadog.integrations.aws_persona_mappings (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;

DELETE examples

Delete an AWS cloud authentication persona mapping by ID. This removes the association between an AWS IAM principal and a Datadog user.

DELETE FROM datadog.integrations.aws_persona_mappings
WHERE persona_mapping_id = '{{ persona_mapping_id }}' --required
;