logging_configurations
Creates, updates, deletes or gets a logging_configuration resource or lists logging_configurations in a region
Overview
| Name | logging_configurations |
| Type | Resource |
| Description | Resource type definition for AWS::IVSChat::LoggingConfiguration. |
| Id | awscc.ivschat.logging_configurations |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
arn | string | LoggingConfiguration ARN is automatically generated on creation and assigned as the unique identifier. |
id | string | The system-generated ID of the logging configuration. |
destination_configuration | object | Destination configuration for IVS Chat logging. |
name | string | The name of the logging configuration. The value does not need to be unique. |
state | string | The state of the logging configuration. When the state is ACTIVE, the configuration is ready to log chat content. |
tags | array | An array of key-value pairs to apply to this resource. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
arn | string | LoggingConfiguration ARN is automatically generated on creation and assigned as the unique identifier. |
region | string | AWS region. |
For more information, see AWS::IVSChat::LoggingConfiguration.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | logging_configurations | INSERT | DestinationConfiguration, region |
delete_resource | logging_configurations | DELETE | Identifier, region |
update_resource | logging_configurations | UPDATE | Identifier, PatchDocument, region |
list_resources | logging_configurations_list_only | SELECT | region |
get_resource | logging_configurations | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual logging_configuration.
SELECT
region,
arn,
id,
destination_configuration,
name,
state,
tags
FROM awscc.ivschat.logging_configurations
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';
Lists all logging_configurations in a region.
SELECT
region,
arn
FROM awscc.ivschat.logging_configurations_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new logging_configuration resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.ivschat.logging_configurations (
DestinationConfiguration,
region
)
SELECT
'{{ destination_configuration }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.ivschat.logging_configurations (
DestinationConfiguration,
Name,
Tags,
region
)
SELECT
'{{ destination_configuration }}',
'{{ name }}',
'{{ tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: logging_configuration
props:
- name: destination_configuration
value:
cloud_watch_logs:
log_group_name: '{{ log_group_name }}'
firehose:
delivery_stream_name: '{{ delivery_stream_name }}'
s3:
bucket_name: '{{ bucket_name }}'
- name: name
value: '{{ name }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a logging_configuration resource, using stack-deploy.
/*+ update */
UPDATE awscc.ivschat.logging_configurations
SET PatchDocument = string('{{ {
"DestinationConfiguration": destination_configuration,
"Name": name,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';
DELETE example
/*+ delete */
DELETE FROM awscc.ivschat.logging_configurations
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';
Permissions
To operate on the logging_configurations resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
ivschat:CreateLoggingConfiguration,
ivschat:GetLoggingConfiguration,
logs:CreateLogDelivery,
logs:PutResourcePolicy,
logs:DescribeResourcePolicies,
logs:DescribeLogGroups,
s3:PutBucketPolicy,
s3:GetBucketPolicy,
iam:CreateServiceLinkedRole,
firehose:TagDeliveryStream,
ivschat:TagResource
ivschat:GetLoggingConfiguration,
ivschat:ListTagsForResource
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
ivschat:DeleteLoggingConfiguration,
ivschat:GetLoggingConfiguration,
logs:DeleteLogDelivery,
logs:ListLogDeliveries,
ivschat:UntagResource,
logs:GetLogDelivery
ivschat:ListLoggingConfigurations,
ivschat:ListTagsForResource