id_namespace_associations
Creates, updates, deletes or gets an id_namespace_association resource or lists id_namespace_associations in a region
Overview
| Name | id_namespace_associations |
| Type | Resource |
| Description | Represents an association between an ID namespace and a collaboration |
| Id | awscc.cleanrooms.id_namespace_associations |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
id_namespace_association_identifier | string | |
arn | string | |
membership_arn | string | |
collaboration_arn | string | |
input_reference_config | object | |
tags | array | |
name | string | |
description | string | |
id_mapping_config | object | |
input_reference_properties | object | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id_namespace_association_identifier | string | |
name | string | |
region | string | AWS region. |
For more information, see AWS::CleanRooms::IdNamespaceAssociation.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | id_namespace_associations | INSERT | MembershipIdentifier, InputReferenceConfig, Name, region |
delete_resource | id_namespace_associations | DELETE | Identifier, region |
update_resource | id_namespace_associations | UPDATE | Identifier, PatchDocument, region |
list_resources | id_namespace_associations_list_only | SELECT | region |
get_resource | id_namespace_associations | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual id_namespace_association.
SELECT
region,
id_namespace_association_identifier,
arn,
membership_identifier,
membership_arn,
collaboration_identifier,
collaboration_arn,
input_reference_config,
tags,
name,
description,
id_mapping_config,
input_reference_properties
FROM awscc.cleanrooms.id_namespace_associations
WHERE
region = '{{ region }}' AND
Identifier = '{{ id_namespace_association_identifier }}|{{ membership_identifier }}';
Lists all id_namespace_associations in a region.
SELECT
region,
id_namespace_association_identifier,
membership_identifier
FROM awscc.cleanrooms.id_namespace_associations_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new id_namespace_association resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.cleanrooms.id_namespace_associations (
MembershipIdentifier,
InputReferenceConfig,
Name,
region
)
SELECT
'{{ membership_identifier }}',
'{{ input_reference_config }}',
'{{ name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.cleanrooms.id_namespace_associations (
MembershipIdentifier,
InputReferenceConfig,
Tags,
Name,
Description,
IdMappingConfig,
region
)
SELECT
'{{ membership_identifier }}',
'{{ input_reference_config }}',
'{{ tags }}',
'{{ name }}',
'{{ description }}',
'{{ id_mapping_config }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: id_namespace_association
props:
- name: membership_identifier
value: '{{ membership_identifier }}'
- name: input_reference_config
value:
input_reference_arn: '{{ input_reference_arn }}'
manage_resource_policies: '{{ manage_resource_policies }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: name
value: '{{ name }}'
- name: description
value: '{{ description }}'
- name: id_mapping_config
value:
allow_use_as_dimension_column: '{{ allow_use_as_dimension_column }}'
UPDATE example
Use the following StackQL query and manifest file to update a id_namespace_association resource, using stack-deploy.
/*+ update */
UPDATE awscc.cleanrooms.id_namespace_associations
SET PatchDocument = string('{{ {
"Tags": tags,
"Name": name,
"Description": description,
"IdMappingConfig": id_mapping_config
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id_namespace_association_identifier }}|{{ membership_identifier }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.cleanrooms.id_namespace_associations
WHERE
Identifier = '{{ id_namespace_association_identifier }}|{{ membership_identifier }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the id_namespace_associations resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
cleanrooms:CreateIdNamespaceAssociation,
cleanrooms:GetIdNamespaceAssociation,
cleanrooms:ListIdNamespaceAssociations,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:GetMembership,
cleanrooms:GetCollaboration,
entityresolution:GetIdNamespace,
entityresolution:AddPolicyStatement
cleanrooms:GetIdNamespaceAssociation,
cleanrooms:ListTagsForResource,
cleanrooms:GetMembership,
cleanrooms:GetCollaboration,
entityresolution:GetIdNamespace
cleanrooms:UpdateIdNamespaceAssociation,
cleanrooms:GetIdNamespaceAssociation,
cleanrooms:GetMembership,
cleanrooms:GetCollaboration,
cleanrooms:ListTagsForResource,
cleanrooms:TagResource,
cleanrooms:UntagResource,
entityresolution:GetIdNamespace,
entityresolution:AddPolicyStatement
cleanrooms:DeleteIdNamespaceAssociation,
cleanrooms:GetIdNamespaceAssociation,
cleanrooms:ListIdNamespaceAssociations,
cleanrooms:GetMembership,
cleanrooms:GetCollaboration,
cleanrooms:ListTagsForResource,
cleanrooms:UntagResource,
entityresolution:GetIdNamespace,
entityresolution:DeletePolicyStatement
cleanrooms:ListIdNamespaceAssociations,
cleanrooms:GetMembership,
cleanrooms:GetCollaboration