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
Idawscc.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.

For more information, see AWS::WorkSpacesWeb::UserAccessLoggingSettings.

Methods

NameResourceAccessible byRequired Params
create_resourceuser_access_logging_settingsINSERTKinesisStreamArn, region
delete_resourceuser_access_logging_settingsDELETEIdentifier, region
update_resourceuser_access_logging_settingsUPDATEIdentifier, PatchDocument, region
list_resourcesuser_access_logging_settings_list_onlySELECTregion
get_resourceuser_access_logging_settingsSELECTIdentifier, region

SELECT examples

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 awscc.workspacesweb.user_access_logging_settings
WHERE
region = '{{ region }}' AND
Identifier = '{{ user_access_logging_settings_arn }}';

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 awscc.workspacesweb.user_access_logging_settings (
KinesisStreamArn,
region
)
SELECT
'{{ kinesis_stream_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.workspacesweb.user_access_logging_settings
SET PatchDocument = string('{{ {
"KinesisStreamArn": kinesis_stream_arn,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ user_access_logging_settings_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.workspacesweb.user_access_logging_settings
WHERE
Identifier = '{{ user_access_logging_settings_arn }}' 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:

ParameterDescription
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 user_access_logging_settings resource, the following permissions are required:

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