Skip to content
v2.277.0

Experimental

@aws-cdk/integ-tests-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

AssertionsProviderProps Struct ​

Properties for defining an AssertionsProvider.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as integ_tests_alpha from '@aws-cdk/integ-tests-alpha';
import { aws_lambda as lambda } from 'aws-cdk-lib';
import { aws_logs as logs } from 'aws-cdk-lib';
const assertionsProviderProps: integ_tests_alpha.AssertionsProviderProps = {
  handler: 'handler',
  logRetention: logs.RetentionDays.ONE_DAY,
  providerLogLevel: lambda.ApplicationLogLevel.INFO,
  uuid: 'uuid',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.integ_tests_alpha as integ_tests_alpha
from aws_cdk import aws_lambda as lambda_
from aws_cdk import aws_logs as logs

assertions_provider_props = integ_tests_alpha.AssertionsProviderProps(
    handler="handler",
    log_retention=logs.RetentionDays.ONE_DAY,
    provider_log_level=lambda_.ApplicationLogLevel.INFO,
    uuid="uuid"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.integtests.alpha.*;
import software.amazon.awscdk.services.lambda.*;
import software.amazon.awscdk.services.logs.*;

AssertionsProviderProps assertionsProviderProps = AssertionsProviderProps.builder()
        .handler("handler")
        .logRetention(RetentionDays.ONE_DAY)
        .providerLogLevel(ApplicationLogLevel.INFO)
        .uuid("uuid")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.IntegTests.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.IntegTests.Alpha;
using Amazon.CDK.AWS.Lambda;
using Amazon.CDK.AWS.Logs;

var assertionsProviderProps = new AssertionsProviderProps {
    Handler = "handler",
    LogRetention = RetentionDays.ONE_DAY,
    ProviderLogLevel = ApplicationLogLevel.INFO,
    Uuid = "uuid"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdkintegtestsalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import integ_tests_alpha "github.com/aws/aws-cdk-go/awscdkintegtestsalpha"
import "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

assertionsProviderProps := &AssertionsProviderProps{
	Handler: jsii.String("handler"),
	LogRetention: awscdk.Aws_logs.RetentionDays_ONE_DAY,
	ProviderLogLevel: awscdk.Aws_lambda.ApplicationLogLevel_INFO,
	Uuid: jsii.String("uuid"),
}

Properties ​

handleroptionalstringhandleroptionalstrhandleroptionalStringHandleroptionalstringHandleroptional*string= index.handler#
The handler to use for the lambda function.
logRetentionoptionalRetentionDayslog_retentionoptionalRetentionDayslogRetentionoptionalRetentionDaysLogRetentionoptionalRetentionDaysLogRetentionoptionalRetentionDays#
How long, in days, the log contents will be retained.

Default: no retention days specified

providerLogLeveloptionalApplicationLogLevelprovider_log_leveloptionalApplicationLogLevelproviderLogLeveloptionalApplicationLogLevelProviderLogLeveloptionalApplicationLogLevelProviderLogLeveloptionalApplicationLogLevel= ApplicationLogLevel.FATAL#
The log level of the provider lambda function.
uuidoptionalstringuuidoptionalstruuidoptionalStringUuidoptionalstringUuidoptional*string#
This determines the uniqueness of each AssertionsProvider.

Default: the default uuid is used

You should only need to provide something different here if you know that you need a separate provider