import * as cdk from '@aws-cdk/core';
declare const instance: rds.DatabaseInstance;
instance.addRotationSingleUser({
automaticallyAfter: cdk.Duration.days(7), // defaults to 30 days
excludeCharacters: '!@#$%^&*', // defaults to the set " %+~`#$&*()|[]{}:;<>?!'/@\"\\"
});
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloudwatch from '@aws-cdk/aws-cloudwatch';
import * as ecs from '@aws-cdk/aws-ecs';
import * as cdk from '@aws-cdk/core';
declare const metric: cloudwatch.Metric;
const trackCustomMetricProps: ecs.TrackCustomMetricProps = {
metric: metric,
targetValue: 123,
// the properties below are optional
disableScaleIn: false,
policyName: 'policyName',
scaleInCooldown: cdk.Duration.minutes(30),
scaleOutCooldown: cdk.Duration.minutes(30),
};
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lambda from '@aws-cdk/aws-lambda';
import * as lambda_event_sources from '@aws-cdk/aws-lambda-event-sources';
import * as cdk from '@aws-cdk/core';
declare const eventSourceDlq: lambda.IEventSourceDlq;
const streamEventSourceProps: lambda_event_sources.StreamEventSourceProps = {
startingPosition: lambda.StartingPosition.TRIM_HORIZON,
// the properties below are optional
batchSize: 123,
bisectBatchOnError: false,
enabled: false,
maxBatchingWindow: cdk.Duration.minutes(30),
maxRecordAge: cdk.Duration.minutes(30),
onFailure: eventSourceDlq,
parallelizationFactor: 123,
reportBatchItemFailures: false,
retryAttempts: 123,
tumblingWindow: cdk.Duration.minutes(30),
};
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appmesh from '@aws-cdk/aws-appmesh';
import * as cdk from '@aws-cdk/core';
const tcpHealthCheckOptions: appmesh.TcpHealthCheckOptions = {
healthyThreshold: 123,
interval: cdk.Duration.minutes(30),
timeout: cdk.Duration.minutes(30),
unhealthyThreshold: 123,
};
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cloudfront from '@aws-cdk/aws-cloudfront';
import * as cloudfront_origins from '@aws-cdk/aws-cloudfront-origins';
import * as cdk from '@aws-cdk/core';
const httpOriginProps: cloudfront_origins.HttpOriginProps = {
connectionAttempts: 123,
connectionTimeout: cdk.Duration.minutes(30),
customHeaders: {
customHeadersKey: 'customHeaders',
},
httpPort: 123,
httpsPort: 123,
keepaliveTimeout: cdk.Duration.minutes(30),
originPath: 'originPath',
originShieldRegion: 'originShieldRegion',
originSslProtocols: [cloudfront.OriginSslPolicy.SSL_V3],
protocolPolicy: cloudfront.OriginProtocolPolicy.HTTP_ONLY,
readTimeout: cdk.Duration.minutes(30),
};