Skip to main content

logging_configurations

Creates, updates, deletes or gets a logging_configuration resource or lists logging_configurations in a region

Overview

Namelogging_configurations
TypeResource
DescriptionResource type definition for AWS::IVSChat::LoggingConfiguration.
Idaws.ivschat.logging_configurations

Fields

NameDatatypeDescription
arnstringLoggingConfiguration ARN is automatically generated on creation and assigned as the unique identifier.
idstringThe system-generated ID of the logging configuration.
destination_configurationobjectDestination configuration for IVS Chat logging.
namestringThe name of the logging configuration. The value does not need to be unique.
statestringThe state of the logging configuration. When the state is ACTIVE, the configuration is ready to log chat content.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

Methods

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

SELECT examples

Gets all logging_configurations in a region.

SELECT
region,
arn,
id,
destination_configuration,
name,
state,
tags
FROM aws.ivschat.logging_configurations
WHERE region = 'us-east-1';

Gets all properties from an individual logging_configuration.

SELECT
region,
arn,
id,
destination_configuration,
name,
state,
tags
FROM aws.ivschat.logging_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.ivschat.logging_configurations (
DestinationConfiguration,
region
)
SELECT
'{{ DestinationConfiguration }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.ivschat.logging_configurations
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

ivschat:CreateLoggingConfiguration,
ivschat:GetLoggingConfiguration,
logs:CreateLogDelivery,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
s3:PutBucketPolicy,
s3:GetBucketPolicy,
iam:CreateServiceLinkedRole,
firehose:TagDeliveryStream,
ivschat:TagResource

Read

ivschat:GetLoggingConfiguration,
ivschat:ListTagsForResource

Update

ivschat:UpdateLoggingConfiguration,
ivschat:GetLoggingConfiguration,
ivschat:TagResource,
ivschat:UntagResource,
ivschat:ListTagsForResource,
logs:CreateLogDelivery,
logs:GetLogDelivery,
logs:UpdateLogDelivery,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
s3:PutBucketPolicy,
s3:GetBucketPolicy,
iam:CreateServiceLinkedRole,
firehose:TagDeliveryStream

Delete

ivschat:DeleteLoggingConfiguration,
ivschat:GetLoggingConfiguration,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
ivschat:UntagResource,
logs:GetLogDelivery

List

ivschat:ListLoggingConfigurations,
ivschat:ListTagsForResource