Skip to main content

organizational_units

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

Overview

Nameorganizational_units
TypeResource
Idaws.notifications.organizational_units

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
organizational_unitstringThe list of organizational units that match the specified criteria.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_organizational_unitsselectnotificationConfigurationArn, regionmaxResults, nextTokenReturns a list of organizational units associated with a notification configuration.
associate_organizational_unitupdateorganizational_unit_id, region, notificationConfigurationArnAssociates an organizational unit with a notification configuration.
disassociate_organizational_unitexecorganizational_unit_id, region, notificationConfigurationArnRemoves the association between an organizational unit and a notification configuration.

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
notificationConfigurationArnstringThe Amazon Resource Name (ARN) of the notification configuration used to filter the organizational units.
organizational_unit_idstringThe unique identifier of the organizational unit to disassociate.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of organizational units to return in a single call. Valid values are 1-100.
nextTokenstringThe token for the next page of results. Use the value returned in the previous response.

SELECT examples

Returns a list of organizational units associated with a notification configuration.

SELECT
organizational_unit
FROM aws.notifications.organizational_units
WHERE notificationConfigurationArn = '{{ notificationConfigurationArn }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

UPDATE examples

Associates an organizational unit with a notification configuration.

UPDATE aws.notifications.organizational_units
SET
notificationConfigurationArn = '{{ notificationConfigurationArn }}'
WHERE
organizational_unit_id = '{{ organizational_unit_id }}' --required
AND region = '{{ region }}' --required
AND notificationConfigurationArn = '{{ notificationConfigurationArn }}' --required;

Lifecycle Methods

Removes the association between an organizational unit and a notification configuration.

EXEC aws.notifications.organizational_units.disassociate_organizational_unit
@organizational_unit_id='{{ organizational_unit_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"notificationConfigurationArn": "{{ notificationConfigurationArn }}"
}'
;