InvocationLoggingConfiguration

class InvocationLoggingConfiguration : KotlinCustomResource

Manages Bedrock model invocation logging configuration.

Model invocation logging is configured per AWS region. To avoid overwriting settings, this resource should not be defined in multiple configurations.

Example Usage

Basic Usage

resources:
example:
type: aws:s3:BucketV2
properties:
bucket: example
forceDestroy: true
exampleBucketPolicy:
type: aws:s3:BucketPolicy
name: example
properties:
bucket: ${example.bucket}
policy: |
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "bedrock.amazonaws.com"
},
"Action": [
"s3:*"
],
"Resource": [
"${example.arn}/*"
],
"Condition": {
"StringEquals": {
"aws:SourceAccount": "${current.accountId}"
},
"ArnLike": {
"aws:SourceArn": "arn:aws:bedrock:us-east-1:${current.accountId}:*"
}
}
}
]
}
exampleInvocationLoggingConfiguration:
type: aws:bedrockmodel:InvocationLoggingConfiguration
name: example
properties:
loggingConfig:
- embeddingDataDeliveryEnabled: true
imageDataDeliveryEnabled: true
textDataDeliveryEnabled: true
videoDataDeliveryEnabled: true
s3Config:
- bucketName: ${example.id}
keyPrefix: bedrock
options:
dependsOn:
- ${exampleBucketPolicy}
variables:
current:
fn::invoke:
function: aws:getCallerIdentity
arguments: {}

Import

Using pulumi import, import Bedrock custom model using the id set to the AWS Region. For example:

$ pulumi import aws:bedrockmodel/invocationLoggingConfiguration:InvocationLoggingConfiguration my_config us-east-1

*/

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The logging configuration values to set. See logging_config Block for details.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>