Skip to main content

logging_configurations

Creates, updates, deletes, gets or lists a logging_configurations resource.

Overview

Namelogging_configurations
TypeResource
Idaws.ivschat.logging_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringLogging-configuration ID, generated by the system. This is a relative identifier, the part of the ARN that uniquely identifies the logging configuration. (pattern: <code>[a-zA-Z0-9]+</code>)
namestringLogging-configuration name. This value does not need to be unique. (pattern: <code>[a-zA-Z0-9-_]*</code>)
arnstringLogging-configuration ARN, from the request (if identifier was an ARN). (pattern: <code>arn:aws:ivschat:[a-z0-9-]+:[0-9]+:logging-configuration/[a-zA-Z0-9-]+</code>)
create_timestring (date-time)Time when the logging configuration was created. This is an ISO 8601 timestamp; note that this is returned as a string.
destination_configurationobjectA complex type that describes a location where chat logs will be stored. Each member represents the configuration of one log destination. For logging, you define only one type of destination (for CloudWatch Logs, Kinesis Firehose, or S3).
statestringThe state of the logging configuration. When the state is ACTIVE, the configuration is ready to log chat content. (CREATING, CREATE_FAILED, DELETING, DELETE_FAILED, UPDATING, UPDATE_FAILED, ACTIVE)
tagsobjectTags attached to the resource. Array of maps, each of the form string:string (key:value).
update_timestring (date-time)Time of the logging configuration’s last update. This is an ISO 8601 timestamp; note that this is returned as a string.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_logging_configurationselectregionGets the specified logging configuration.
list_logging_configurationsselectregionGets summary information about all your logging configurations in the AWS region where the API request is processed.
create_logging_configurationinsertregion, destinationConfigurationCreates a logging configuration that allows clients to store and record sent messages.
update_logging_configurationupdateregion, identifierUpdates a specified logging configuration.
delete_logging_configurationdeleteregionDeletes the specified logging 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
regionstringAWS region (default: us-east-1)

SELECT examples

Gets the specified logging configuration.

SELECT
id,
name,
arn,
create_time,
destination_configuration,
state,
tags,
update_time
FROM aws.ivschat.logging_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a logging configuration that allows clients to store and record sent messages.

INSERT INTO aws.ivschat.logging_configurations (
name,
destinationConfiguration,
tags,
region
)
SELECT
'{{ name }}',
'{{ destinationConfiguration }}' /* required */,
'{{ tags }}',
'{{ region }}'
RETURNING
id,
name,
arn,
create_time,
destination_configuration,
state,
tags,
update_time
;

UPDATE examples

Updates a specified logging configuration.

UPDATE aws.ivschat.logging_configurations
SET
identifier = '{{ identifier }}',
name = '{{ name }}',
destinationConfiguration = '{{ destinationConfiguration }}'
WHERE
region = '{{ region }}' --required
AND identifier = '{{ identifier }}' --required
RETURNING
id,
name,
arn,
create_time,
destination_configuration,
state,
tags,
update_time;

DELETE examples

Deletes the specified logging configuration.

DELETE FROM aws.ivschat.logging_configurations
WHERE region = '{{ region }}' --required
;