CfnLogDeliveryConfigurationProps Struct
Properties for defining a CfnLogDeliveryConfiguration.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const cfnLogDeliveryConfigurationProps: cognito.CfnLogDeliveryConfigurationProps = {
userPoolId: 'userPoolId',
// the properties below are optional
logConfigurations: [{
cloudWatchLogsConfiguration: {
logGroupArn: 'logGroupArn',
},
eventSource: 'eventSource',
firehoseConfiguration: {
streamArn: 'streamArn',
},
logLevel: 'logLevel',
s3Configuration: {
bucketArn: 'bucketArn',
},
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cognito as cognito
cfn_log_delivery_configuration_props = cognito.CfnLogDeliveryConfigurationProps(
user_pool_id="userPoolId",
# the properties below are optional
log_configurations=[cognito.CfnLogDeliveryConfiguration.LogConfigurationProperty(
cloud_watch_logs_configuration=cognito.CfnLogDeliveryConfiguration.CloudWatchLogsConfigurationProperty(
log_group_arn="logGroupArn"
),
event_source="eventSource",
firehose_configuration=cognito.CfnLogDeliveryConfiguration.FirehoseConfigurationProperty(
stream_arn="streamArn"
),
log_level="logLevel",
s3_configuration=cognito.CfnLogDeliveryConfiguration.S3ConfigurationProperty(
bucket_arn="bucketArn"
)
)]
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cognito.*;
CfnLogDeliveryConfigurationProps cfnLogDeliveryConfigurationProps = CfnLogDeliveryConfigurationProps.builder()
.userPoolId("userPoolId")
// the properties below are optional
.logConfigurations(List.of(LogConfigurationProperty.builder()
.cloudWatchLogsConfiguration(CloudWatchLogsConfigurationProperty.builder()
.logGroupArn("logGroupArn")
.build())
.eventSource("eventSource")
.firehoseConfiguration(FirehoseConfigurationProperty.builder()
.streamArn("streamArn")
.build())
.logLevel("logLevel")
.s3Configuration(S3ConfigurationProperty.builder()
.bucketArn("bucketArn")
.build())
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Cognito;
var cfnLogDeliveryConfigurationProps = new CfnLogDeliveryConfigurationProps {
UserPoolId = "userPoolId",
// the properties below are optional
LogConfigurations = new [] { new LogConfigurationProperty {
CloudWatchLogsConfiguration = new CloudWatchLogsConfigurationProperty {
LogGroupArn = "logGroupArn"
},
EventSource = "eventSource",
FirehoseConfiguration = new FirehoseConfigurationProperty {
StreamArn = "streamArn"
},
LogLevel = "logLevel",
S3Configuration = new S3ConfigurationProperty {
BucketArn = "bucketArn"
}
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnLogDeliveryConfigurationProps := &CfnLogDeliveryConfigurationProps{
UserPoolId: jsii.String("userPoolId"),
// the properties below are optional
LogConfigurations: []interface{}{
&LogConfigurationProperty{
CloudWatchLogsConfiguration: &CloudWatchLogsConfigurationProperty{
LogGroupArn: jsii.String("logGroupArn"),
},
EventSource: jsii.String("eventSource"),
FirehoseConfiguration: &FirehoseConfigurationProperty{
StreamArn: jsii.String("streamArn"),
},
LogLevel: jsii.String("logLevel"),
S3Configuration: &S3ConfigurationProperty{
BucketArn: jsii.String("bucketArn"),
},
},
},
}
Properties
logConfigurationsoptionalIResolvable | IResolvable | CfnLogDeliveryConfiguration.log_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, LogConfigurationProperty]]]logConfigurationsoptionalIResolvableLogConfigurationsoptionalIResolvableLogConfigurationsoptionalinterface{} #A logging destination of a user pool.
User pools can have multiple logging destinations for message-delivery and user-activity logs.
The ID of the user pool where you configured logging.