Skip to main content

user_access_logging_settings

Creates, updates, deletes or gets an user_access_logging_setting resource or lists user_access_logging_settings in a region

Overview

Nameuser_access_logging_settings
TypeResource
DescriptionDefinition of AWS::WorkSpacesWeb::UserAccessLoggingSettings Resource Type
Idaws.workspacesweb.user_access_logging_settings

Fields

NameDatatypeDescription
associated_portal_arnsarray
kinesis_stream_arnstringKinesis stream ARN to which log events are published.
tagsarray
user_access_logging_settings_arnstring
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTKinesisStreamArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all user_access_logging_settings in a region.

SELECT
region,
associated_portal_arns,
kinesis_stream_arn,
tags,
user_access_logging_settings_arn
FROM aws.workspacesweb.user_access_logging_settings
WHERE region = 'us-east-1';

Gets all properties from an individual user_access_logging_setting.

SELECT
region,
associated_portal_arns,
kinesis_stream_arn,
tags,
user_access_logging_settings_arn
FROM aws.workspacesweb.user_access_logging_settings
WHERE region = 'us-east-1' AND data__Identifier = '<UserAccessLoggingSettingsArn>';

INSERT example

Use the following StackQL query and manifest file to create a new user_access_logging_setting resource, using stack-deploy.

/*+ create */
INSERT INTO aws.workspacesweb.user_access_logging_settings (
KinesisStreamArn,
region
)
SELECT
'{{ KinesisStreamArn }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.workspacesweb.user_access_logging_settings
WHERE data__Identifier = '<UserAccessLoggingSettingsArn>'
AND region = 'us-east-1';

Permissions

To operate on the user_access_logging_settings resource, the following permissions are required:

Create

workspaces-web:CreateUserAccessLoggingSettings,
workspaces-web:GetUserAccessLoggingSettings,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource

Read

workspaces-web:GetUserAccessLoggingSettings,
workspaces-web:ListTagsForResource

Update

workspaces-web:UpdateUserAccessLoggingSettings,
workspaces-web:TagResource,
workspaces-web:UntagResource,
workspaces-web:GetUserAccessLoggingSettings,
workspaces-web:ListTagsForResource,
kinesis:PutRecord,
kinesis:PutRecords

Delete

workspaces-web:GetUserAccessLoggingSettings,
workspaces-web:DeleteUserAccessLoggingSettings

List

workspaces-web:ListUserAccessLoggingSettings