SonarJS linter helper functions
    Preparing search index...

    Function getBucketProperty

    • Extracts a property from the configuration argument of S3 Bucket's constructor

      new s3.Bucket(_, _, { // config
      key1: value1,
      ...
      keyN: valueN
      });

      Parameters

      • context: RuleContext

        the rule context

      • bucket: NewExpression

        the invocation of S3 Bucket's constructor

      • key: string

        the key of the property to extract

      Returns undefined | null | Property

      the extracted property