How to use where clause in Knex
Create refunds with Stripe
Load HTML with Cheerio
How to send POST request with Axios
Find intersection of array in Lodash
Powered by Official white Bloop logo with a period

Terms / Privacy / Search / Support

  •     // Set open cursors with parameter group
        const parameterGroup = new rds.ParameterGroup(this, 'ParameterGroup', {
          engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }),
          parameters: {
            open_cursors: '2500',
          },
        });
    
    Docs
    0
  •     // Set open cursors with parameter group
        const parameterGroup = new rds.ParameterGroup(this, 'ParameterGroup', {
          engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }),
          parameters: {
            open_cursors: '2500',
          },
        });
    
    
    Docs
    0
  • declare const instance: rds.DatabaseInstance;
    declare const fn: lambda.Function;
    const rule = instance.onEvent('InstanceEvent', { target: new targets.LambdaFunction(fn) });
    
    Docs
    0
  •     const optionGroup = new rds.OptionGroup(this, 'OptionGroup', {
          engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }),
          configurations: [
            {
              name: 'LOCATOR',
            },
            {
              name: 'OEM',
              port: 1158,
              vpc,
            },
          ],
        });
    
        // Allow connections to OEM
        optionGroup.optionConnections.OEM.connections.allowDefaultPortFromAnyIpv4();
    
        // Database instance with production values
        const instance = new rds.DatabaseInstance(this, 'Instance', {
          engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }),
          licenseModel: rds.LicenseModel.BRING_YOUR_OWN_LICENSE,
          instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MEDIUM),
          multiAz: true,
          storageType: rds.StorageType.IO1,
          credentials: rds.Credentials.fromUsername('syscdk'),
          vpc,
          databaseName: 'ORCL',
          storageEncrypted: true,
          backupRetention: cdk.Duration.days(7),
          monitoringInterval: cdk.Duration.seconds(60),
          enablePerformanceInsights: true,
          cloudwatchLogsExports: [
            'trace',
            'audit',
            'alert',
            'listener',
          ],
          cloudwatchLogsRetention: logs.RetentionDays.ONE_MONTH,
          autoMinorVersionUpgrade: false,
          optionGroup,
          parameterGroup,
        });
    
        // Allow connections on default port from any IPV4
        instance.connections.allowDefaultPortFromAnyIpv4();
    
        // Rotate the master user password every 30 days
        instance.addRotationSingleUser();
    
        // Add alarm for high CPU
        new cloudwatch.Alarm(this, 'HighCPU', {
          metric: instance.metricCPUUtilization(),
          threshold: 90,
          evaluationPeriods: 1,
        });
    
        // Trigger Lambda function on instance availability events
        const fn = new lambda.Function(this, 'Function', {
          code: lambda.Code.fromInline('exports.handler = (event) => console.log(event);'),
          handler: 'index.handler',
          runtime: lambda.Runtime.NODEJS_12_X,
        });
    
        const availabilityRule = instance.onEvent('Availability', { target: new targets.LambdaFunction(fn) });
        availabilityRule.addEventPattern({
          detail: {
            EventCategories: [
              'availability',
            ],
          },
        });
    
    Docs
    0
  • declare const instance: rds.DatabaseInstance;
    declare const myImportedSecret: rds.DatabaseSecret;
    instance.addRotationMultiUser('MyUser', {
      secret: myImportedSecret, // This secret must have the `masterarn` key
    });
    
    Docs
    0
  • declare const instance: rds.DatabaseInstance;
    const myUserSecret = new rds.DatabaseSecret(this, 'MyUserSecret', {
      username: 'myuser',
      secretName: 'my-user-secret', // optional, defaults to a CloudFormation-generated name
      masterSecret: instance.secret,
      excludeCharacters: '{}[]()\'"/\\', // defaults to the set " %+~`#$&*()|[]{}:;<>?!'/@\"\\"
    });
    const myUserSecretAttached = myUserSecret.attach(instance); // Adds DB connections information in the secret
    
    instance.addRotationMultiUser('MyUser', { // Add rotation using the multi user scheme
      secret: myUserSecretAttached,
    });
    
    Docs
    0
  •     const optionGroup = new rds.OptionGroup(this, 'OptionGroup', {
          engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }),
          configurations: [
            {
              name: 'LOCATOR',
            },
            {
              name: 'OEM',
              port: 1158,
              vpc,
            },
          ],
        });
    
        // Allow connections to OEM
        optionGroup.optionConnections.OEM.connections.allowDefaultPortFromAnyIpv4();
    
        // Database instance with production values
        const instance = new rds.DatabaseInstance(this, 'Instance', {
          engine: rds.DatabaseInstanceEngine.oracleSe2({ version: rds.OracleEngineVersion.VER_19_0_0_0_2020_04_R1 }),
          licenseModel: rds.LicenseModel.BRING_YOUR_OWN_LICENSE,
          instanceType: ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE3, ec2.InstanceSize.MEDIUM),
          multiAz: true,
          storageType: rds.StorageType.IO1,
          credentials: rds.Credentials.fromUsername('syscdk'),
          vpc,
          databaseName: 'ORCL',
          storageEncrypted: true,
          backupRetention: cdk.Duration.days(7),
          monitoringInterval: cdk.Duration.seconds(60),
          enablePerformanceInsights: true,
          cloudwatchLogsExports: [
            'trace',
            'audit',
            'alert',
            'listener',
          ],
          cloudwatchLogsRetention: logs.RetentionDays.ONE_MONTH,
          autoMinorVersionUpgrade: false,
          optionGroup,
          parameterGroup,
        });
    
        // Allow connections on default port from any IPV4
        instance.connections.allowDefaultPortFromAnyIpv4();
    
        // Rotate the master user password every 30 days
        instance.addRotationSingleUser();
    
        // Add alarm for high CPU
        new cloudwatch.Alarm(this, 'HighCPU', {
          metric: instance.metricCPUUtilization(),
          threshold: 90,
          evaluationPeriods: 1,
        });
    
        // Trigger Lambda function on instance availability events
        const fn = new lambda.Function(this, 'Function', {
          code: lambda.Code.fromInline('exports.handler = (event) => console.log(event);'),
          handler: 'index.handler',
          runtime: lambda.Runtime.NODEJS_12_X,
        });
    
        const availabilityRule = instance.onEvent('Availability', { target: new targets.LambdaFunction(fn) });
        availabilityRule.addEventPattern({
          detail: {
            EventCategories: [
              'availability',
            ],
          },
        });
    
    Docs
    0
  • // The code below shows an example of how to instantiate this type.
    // The values are placeholders you should change.
    import * as cx_api from '@aws-cdk/cx-api';
    
    const environmentUtils = new cx_api.EnvironmentUtils();
    
    Docs
    0
  • Powered by Official black Bloop logo with a period
    download the IDE extension

    View other examples